Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5430 in orxonox.OLD for trunk/src/lib/graphics/spatial_separation


Ignore:
Timestamp:
Oct 24, 2005, 9:21:15 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: static definitions

Location:
trunk/src/lib/graphics/spatial_separation
Files:
4 edited

Legend:

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

    r5234 r5430  
    3131 *  standard constructor
    3232 */
    33 Quadtree::Quadtree (modelInfo* pModelInfo, const int treeDepth)
     33Quadtree::Quadtree (const modelInfo* pModelInfo, const int treeDepth)
    3434{
    3535  this->setClassID(CL_QUADTREE, "Quadtree");
  • trunk/src/lib/graphics/spatial_separation/quadtree.h

    r5039 r5430  
    2424
    2525  public:
    26     Quadtree(modelInfo* pModelInfo, const int treeDepth);
     26    Quadtree(const modelInfo* pModelInfo, const int treeDepth);
    2727    virtual ~Quadtree();
    2828
     
    4242    QuadtreeNode*                   rootNode;              //!< reference to the root node of the quadtree
    4343    QuadtreeNode**                  nodes;                 //!< reference to all quadtree nodes (only leafs of the quad tree)
    44     modelInfo*                      pModelInfo;            //!< reference to the modelInfo of the object
     44    const modelInfo*                pModelInfo;            //!< reference to the modelInfo of the object
    4545    int                             treeDepth;             //!< depth of the tree
    4646
  • trunk/src/lib/graphics/spatial_separation/quadtree_node.cc

    r5427 r5430  
    6868 *  standard constructor
    6969 */
    70 QuadtreeNode::QuadtreeNode(modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth)
     70QuadtreeNode::QuadtreeNode(const modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth)
    7171{
    7272  /* save all important variables localy */
  • trunk/src/lib/graphics/spatial_separation/quadtree_node.h

    r5405 r5430  
    3232                 Rectangle* rect, int treeDepth, const int maxDepth, int index
    3333                );
    34     QuadtreeNode(modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth);
     34    QuadtreeNode(const modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth);
    3535    virtual ~QuadtreeNode();
    3636
     
    8282    unsigned int                    numTriangles;       //!< number of triangles of the Node
    8383    unsigned int                    numVertices;        //!< number of vertices of the node
    84     modelInfo*                      pModelInfo;         //!< reference to the modelInfo of the object
     84    const modelInfo*                pModelInfo;         //!< reference to the modelInfo of the object
    8585    Rectangle*                      pDimension;         //!< pointer to the local rectangle properties
    8686
Note: See TracChangeset for help on using the changeset viewer.