Changeset 3657 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/primitive_model.h
- Timestamp:
- Mar 27, 2005, 12:22:09 AM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/primitive_model.h
r3655 r3657 1 1 /*! 2 \file proto_class.h 3 \brief Definition of the proto class template, used quickly start work 4 \todo Example: this shows how to use simply add a Marker that here has to be done something. 2 \file primitive_model.h 5 3 6 The Protoclass exists, to help you quikly getting the run for how to develop in orxonox.7 It is an example for the CODING-CONVENTION, and a starting-point for every class.8 4 */ 9 5 10 #ifndef _PR OTO_CLASS_H11 #define _PR OTO_CLASS_H6 #ifndef _PRIMITIVE_MODEL_H 7 #define _PRIMITIVE_MODEL_H 12 8 13 #include "what realy has to be included" 14 #include "base_object.h" 9 #include "model.h" 10 11 //! Specification of different primitives the Model knows 12 enum PRIMITIVE {PLANE, CUBE, SPHERE, CYLINDER, CONE}; 15 13 16 14 // FORWARD DEFINITION \\ 17 class someClassWeNeed;18 15 19 20 /*class Test;*/ /* forward definition of class Test (without including it here!)*/ 21 22 //! A default class that aids you to start creating a new class 23 /** 24 here can be some longer description of this class 25 */ 26 class ProtoClass : public BaseObject { 16 //! A Class to create some default Models 17 class PrimitiveModel : public Model { 27 18 28 19 public: 29 Pr otoClass();30 virtual ~ProtoClass();20 PrimitiveModel(); 21 PrimitiveModel(PRIMITIVE type, float size = 1.0, unsigned int detail = 10); 31 22 32 bool doNonSense (int nothing);23 virtual ~PrimitiveModel(); 33 24 34 private: 35 int nonSense; //!< doxygen tag here like this for all the variables - delete this variable if you use this 36 25 protected: 26 void cubeModel(void); 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); 37 31 }; 38 32 39 #endif /* _PR OTO_CLASS_H */33 #endif /* _PRIMITIVE_MODEL_H */
Note: See TracChangeset
for help on using the changeset viewer.