Changeset 6022 in orxonox.OLD for trunk/src/lib/graphics/spatial_separation
- Timestamp:
- Dec 10, 2005, 8:33:08 PM (19 years ago)
- Location:
- trunk/src/lib/graphics/spatial_separation
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/spatial_separation/quadtree.h
r5430 r6022 12 12 13 13 #include "base_object.h" 14 #include " abstract_model.h"14 #include "model.h" 15 15 16 16 -
trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r5819 r6022 21 21 #include "quadtree.h" 22 22 #include "material.h" 23 #include " abstract_model.h"23 #include "model.h" 24 24 #include "debug.h" 25 25 … … 346 346 /** 347 347 * gets the maximal dimension of a model 348 * @return the dimension of the AbstractModel as a Rectangle348 * @return the dimension of the Model as a Rectangle 349 349 350 350 The rectangle is x-z axis aligned. ATTENTION: if there are any vertices in the model, that exceed the -
trunk/src/lib/graphics/spatial_separation/quadtree_node.h
r5819 r6022 17 17 #include "base_object.h" 18 18 19 #include " abstract_model.h"19 #include "model.h" 20 20 21 21 // FORWARD DECLARATION -
trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
r5427 r6022 18 18 #include "spatial_separation.h" 19 19 20 #include " abstract_model.h"20 #include "model.h" 21 21 #include "quadtree.h" 22 22 #include "debug.h" … … 34 34 35 35 */ 36 SpatialSeparation::SpatialSeparation ( AbstractModel* model, float overlapSize)36 SpatialSeparation::SpatialSeparation (Model* model, float overlapSize) 37 37 { 38 38 PRINT(3)("+---------Debug Information SpatialSeparation----------\n"); … … 52 52 The boxes are overlaping because this makes collision detection a lot simpler 53 53 */ 54 SpatialSeparation::SpatialSeparation ( AbstractModel* model, AbstractModel* playerModel)54 SpatialSeparation::SpatialSeparation (Model* model, Model* playerModel) 55 55 { 56 56 this->setClassID(CL_SPATIAL_SEPARATION, "SpatialSeparation"); … … 75 75 * @return the new quadtree 76 76 */ 77 Quadtree* SpatialSeparation::createQuadtree( AbstractModel* model, float minLength)77 Quadtree* SpatialSeparation::createQuadtree(Model* model, float minLength) 78 78 { 79 79 this->minLength = minLength; … … 88 88 * @return the new quadtree 89 89 */ 90 Quadtree* SpatialSeparation::createQuadtree( AbstractModel* model, int treeDepth)90 Quadtree* SpatialSeparation::createQuadtree(Model* model, int treeDepth) 91 91 { 92 92 this->treeDepth = treeDepth; … … 100 100 * @return the new quadtree 101 101 */ 102 Quadtree* SpatialSeparation::createQuadtree( AbstractModel* model)102 Quadtree* SpatialSeparation::createQuadtree(Model* model) 103 103 { 104 104 this->quadtree = new Quadtree(model->getModelInfo(), 4); -
trunk/src/lib/graphics/spatial_separation/spatial_separation.h
r5356 r6022 9 9 10 10 11 class AbstractModel;11 class Model; 12 12 class Quadtree; 13 13 … … 21 21 22 22 public: 23 SpatialSeparation( AbstractModel* model, float overlapSize);24 SpatialSeparation( AbstractModel* model, AbstractModel* playerModel);23 SpatialSeparation(Model* model, float overlapSize); 24 SpatialSeparation(Model* model, Model* playerModel); 25 25 virtual ~SpatialSeparation(); 26 26 … … 28 28 void setMinLength(int minLength) { this->minLength = minLength; } 29 29 30 Quadtree* createQuadtree( AbstractModel* model, float minLength);31 Quadtree* createQuadtree( AbstractModel* model, int treeDepth);32 Quadtree* createQuadtree( AbstractModel* model);30 Quadtree* createQuadtree(Model* model, float minLength); 31 Quadtree* createQuadtree(Model* model, int treeDepth); 32 Quadtree* createQuadtree(Model* model); 33 33 34 34 inline Quadtree* getQuadtree() { return this->quadtree; } … … 41 41 42 42 private: 43 AbstractModel* model; //!< the reference to the model that has to be handled43 Model* model; //!< the reference to the model that has to be handled 44 44 Quadtree* quadtree; //!< the reference to the created quadtree 45 45 46 AbstractModel* playerModel; //!< referece to the player model, if needed for overlap calculations46 Model* playerModel; //!< referece to the player model, if needed for overlap calculations 47 47 float overlapSize; //!< the size of overlaping 48 48
Note: See TracChangeset
for help on using the changeset viewer.