Last change
on this file since 9744 was
6022,
checked in by bensch, 19 years ago
|
orxonox/trunk: merged the NewModel branche back to the trunk.
merged with command
svn merge branches/newModel/ trunk/ -r 6016:HEAD
no conflicts
|
File size:
921 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file primitive_model.h |
---|
3 | * a Class to handle different simple models like planes cubes spheres and so on. |
---|
4 | (cube is also an option of Model, but is extended here. |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _PRIMITIVE_MODEL_H |
---|
8 | #define _PRIMITIVE_MODEL_H |
---|
9 | |
---|
10 | #include "static_model.h" |
---|
11 | |
---|
12 | //! Specification of different primitives the Model knows |
---|
13 | enum PRIMITIVE { PRIM_CUBE, |
---|
14 | PRIM_SPHERE, |
---|
15 | PRIM_PLANE, |
---|
16 | PRIM_CYLINDER, |
---|
17 | PRIM_CONE }; |
---|
18 | |
---|
19 | //! A Class to create some default Models |
---|
20 | class PrimitiveModel : public StaticModel { |
---|
21 | |
---|
22 | public: |
---|
23 | PrimitiveModel(PRIMITIVE type, float size = 1.0, unsigned int detail = 10); |
---|
24 | virtual ~PrimitiveModel(); |
---|
25 | |
---|
26 | protected: |
---|
27 | void sphereModel(float size = 1.0, unsigned int detail = 10); |
---|
28 | void cylinderModel(float size = 1.0, unsigned int detail = 10); |
---|
29 | void coneModel(float size = 1.0, unsigned int detail = 10); |
---|
30 | void planeModel(float size = 1.0, unsigned int detail = 1); |
---|
31 | }; |
---|
32 | |
---|
33 | #endif /* _PRIMITIVE_MODEL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.