Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 7, 2005, 11:10:04 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: some more function definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc

    r4810 r4819  
    1818#include "spatial_separation.h"
    1919#include "abstract_model.h"
     20#include "quadtree.h"
    2021
    2122using namespace std;
     
    5758SpatialSeparation::~SpatialSeparation ()
    5859{
    59   // delete what has to be deleted here
    6060}
     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 */
     69Quadtree* 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 */
     82Quadtree* 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*/
     94Quadtree* 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 */
     108float SpatialSeparation::getMaxDimension(AbstractModel* playerModel)
     109{
     110
     111}
     112
     113
     114
Note: See TracChangeset for help on using the changeset viewer.