Changeset 9869 in orxonox.OLD for trunk/src/lib/graphics/spatial_separation
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- Location:
- trunk/src/lib/graphics/spatial_separation
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/spatial_separation/quadtree.cc
r9406 r9869 27 27 #define QUADTREE_MATERIAL_COUNT 4 28 28 29 ObjectListDefinition(Quadtree); 29 30 /** 30 31 * standard constructor … … 32 33 Quadtree::Quadtree (const modelInfo* pModelInfo, const int treeDepth) 33 34 { 34 this-> setClassID(CL_QUADTREE, "Quadtree");35 this->registerObject(this, Quadtree::_objectList); 35 36 this->pModelInfo = pModelInfo; 36 37 this->treeDepth = treeDepth; -
trunk/src/lib/graphics/spatial_separation/quadtree.h
r6022 r9869 21 21 //! A class for quadtree separation of the world 22 22 class Quadtree : public BaseObject { 23 23 ObjectListDeclaration(Quadtree); 24 24 25 25 public: -
trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r9406 r9869 27 27 28 28 29 29 ObjectListDefinition(QuadtreeNode); 30 30 31 31 /** … … 102 102 void QuadtreeNode::init() 103 103 { 104 this-> setClassID(CL_QUADTREE_NODE, "QuadtreeNode");104 this->registerObject(this, QuadtreeNode::_objectList); 105 105 106 106 /* init the rest of the variables for both init types */ -
trunk/src/lib/graphics/spatial_separation/quadtree_node.h
r6617 r9869 26 26 //! A class for a Quadtree Node representation 27 27 class QuadtreeNode : public BaseObject { 28 ObjectListDeclaration(QuadtreeNode); 28 29 29 30 public: -
trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
r9406 r9869 24 24 25 25 26 26 ObjectListDefinition(SpatialSeparation); 27 27 28 28 /** 29 * standard constructor29 * @brief standard constructor 30 30 * @param model the model that is to be separated 31 31 * @param overlapSize each box will overlap for a given size 32 33 34 32 * 33 * The boxes are overlaping because this makes collision detection a lot simpler 34 * 35 35 */ 36 36 SpatialSeparation::SpatialSeparation (Model* model, float overlapSize) … … 39 39 PRINT(3)("+-| (Event) Spatial Separation process kicked on\n"); 40 40 41 this-> setClassID(CL_SPATIAL_SEPARATION, "SpatialSeparation");41 this->registerObject(this, SpatialSeparation::_objectList); 42 42 /* debug vice */ 43 43 this->createQuadtree(model); … … 46 46 47 47 /** 48 * standard constructor48 * @brief standard constructor 49 49 * @param model the model that is to be separated 50 50 * @param overlapSize each box will overlap for a given size … … 54 54 SpatialSeparation::SpatialSeparation (Model* model, Model* playerModel) 55 55 { 56 this-> setClassID(CL_SPATIAL_SEPARATION, "SpatialSeparation");56 this->registerObject(this, SpatialSeparation::_objectList); 57 57 58 58 } … … 60 60 61 61 /** 62 * standard deconstructor62 * @brief standard deconstructor 63 63 */ 64 64 SpatialSeparation::~SpatialSeparation () … … 70 70 71 71 /** 72 * creates a quadtree72 * @brief creates a quadtree 73 73 * @param model the model to do a quadtree on 74 74 * @param minLength the minimal length of a quadtree node … … 83 83 84 84 /** 85 * 85 * @brief creates a quadtree 86 86 * @param model the model to do a quadtree on 87 87 * @param minLength the minimal length of a quadtree node … … 95 95 96 96 /** 97 * creates a quadtree97 * @brief creates a quadtree 98 98 * @param model the model to do a quadtree on 99 99 * @param minLength the minimal length of a quadtree node … … 109 109 110 110 /** 111 * draws all the quadtrees111 * @brief draws all the quadtrees 112 112 */ 113 113 void SpatialSeparation::drawQuadtree() … … 118 118 this->quadtree->drawTree(); 119 119 } 120 121 122 123 124 125 126 127 128 129 130 131 -
trunk/src/lib/graphics/spatial_separation/spatial_separation.h
r6022 r9869 19 19 //! A class for spatial separation of vertices based arrays 20 20 class SpatialSeparation : public BaseObject { 21 ObjectListDeclaration(SpatialSeparation); 21 22 22 23 public:
Note: See TracChangeset
for help on using the changeset viewer.