Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Primitives.h
Go to the documentation of this file.
1 /* Project Magic 2.0
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Magic.exe
6  FILE: Primitives.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Commands for adding basic geometric primitives to a mesh
13 */
14 
15 #ifndef Primitives_h
16 #define Primitives_h
17 
18 #include "MagicDoc.h"
19 #include "Command.h"
20 #include "Polygon.h"
21 #include "Solid.h"
22 #include "Video.h"
23 #include "List.h"
24 
25 // +--------------------------------------------------------------------+
26 
27 class Selection;
28 class ModelView;
29 
30 // +--------------------------------------------------------------------+
31 
32 class CreatePolyCommand : public Command
33 {
34 public:
36  int nsides,
37  double lx,
38  double ly,
39  double lz);
40  virtual ~CreatePolyCommand();
41 
42  virtual void Do();
43  virtual void Undo();
44 
45 private:
46  int nsides;
47  double lx;
48  double ly;
49  double lz;
50 };
51 
52 // +--------------------------------------------------------------------+
53 
54 #endif Primitives_h
55