- Timestamp:
- Jul 7, 2005, 11:10:04 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/graphics/spatial_separation
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.cc
r4812 r4819 25 25 \todo this constructor is not jet implemented - do it 26 26 */ 27 Quadtree::Quadtree ( )27 Quadtree::Quadtree (modelInfo* pModelInfo) 28 28 { 29 29 this->setClassID(CL_QUADTREE, "Quadtree"); 30 this->pModelInfo = pModelInfo; 30 31 } 31 32 -
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.h
r4812 r4819 18 18 19 19 public: 20 Quadtree( );20 Quadtree(modelInfo* pModelInfo); 21 21 virtual ~Quadtree(); 22 22 -
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r4813 r4819 36 36 QuadtreeNode::~QuadtreeNode () 37 37 { 38 // delete what has to be deleted here39 38 } 39 40 40 41 41 42 42 /** 43 43 \brief gives the signal to separate the model into a quadtree 44 \param treeDepth the max depth, the steps to go if treeDept == 0 leaf reached 44 45 */ 45 void QuadtreeNode::separateNode() 46 void QuadtreeNode::separateNode(int treeDepth) 47 {} 48 49 50 /** 51 \brief gives the signal to separate the model into a quadtree 52 \param treeDepth the max depth, the steps to go if treeDept == 0 leaf reached 53 */ 54 void QuadtreeNode::separateNode(float minLength) 46 55 {} 47 56 -
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.h
r4813 r4819 22 22 virtual ~QuadtreeNode(); 23 23 24 void separateNode(); 24 void separateNode(int treeDepth); 25 void separateNode(float minLength); 25 26 26 27 void drawTree(int depth, int drawMode) const; -
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
r4810 r4819 18 18 #include "spatial_separation.h" 19 19 #include "abstract_model.h" 20 #include "quadtree.h" 20 21 21 22 using namespace std; … … 57 58 SpatialSeparation::~SpatialSeparation () 58 59 { 59 // delete what has to be deleted here60 60 } 61 62 63 /** 64 \brief creates a quadtree 65 \param model the model to do a quadtree on 66 \param minLength the minimal length of a quadtree node 67 \return the new quadtree 68 */ 69 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model, float minLength) 70 { 71 this->minLength = minLength; 72 73 } 74 75 76 /** 77 \brief creates a quadtree 78 \param model the model to do a quadtree on 79 \param minLength the minimal length of a quadtree node 80 \return the new quadtree 81 */ 82 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model, int treeDepth) 83 { 84 this->treeDepth = treeDepth; 85 } 86 87 88 /** 89 \brief creates a quadtree 90 \param model the model to do a quadtree on 91 \param minLength the minimal length of a quadtree node 92 \return the new quadtree 93 */ 94 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model) 95 { 96 this->quadtree = new Quadtree(model->getModelInfo()); 97 this->quadtree->separate(); 98 99 return this->quadtree; 100 } 101 102 103 /** 104 \brief gets the maximal dimension of a model 105 \param playerModel the model that this measurement is based on 106 \return the maximal dimension of the model 107 */ 108 float SpatialSeparation::getMaxDimension(AbstractModel* playerModel) 109 { 110 111 } 112 113 114 -
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.h
r4810 r4819 14 14 class Quadtree; 15 15 16 17 #define SEC_OFFSET 1.0 //!< the offset added to the overlapSize to ensure that there are no problems in cd 16 18 17 19 //! A class for spatial separation of vertices based arrays … … 33 35 private: 34 36 void separateZone(); 37 float getMaxDimension(AbstractModel* playerModel); 35 38 36 39
Note: See TracChangeset
for help on using the changeset viewer.