Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3247 in orxonox.OLD for orxonox/branches/parenting/src/p_node.h


Ignore:
Timestamp:
Dec 22, 2004, 2:12:36 PM (21 years ago)
Author:
patrick
Message:

orxonox/braches/parenting: added branch parenting, added function definition PNode

Location:
orxonox/branches/parenting
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/p_node.h

    r3246 r3247  
    1414    this conditions make it cheaper to recalculate the tree (reduces redundant work).
    1515
    16     remember: if you have to change the coordinates, because the object (point) did move,
    17     don't forget to reset both relCoor and absCoor (offset is the same)
     16    remember: if you have to change the coordinates or the directions, use the functions
     17    that are defined to execute this operation - otherwhise there will be big problems...
    1818*/
    1919
     
    2424#include "stdincl.h"
    2525
     26typedef enum parentingMode {};
    2627
    2728class PNode {
     
    3940  void setRelDir (Quaternion relDir);
    4041  Quaternion getAbsDir ();
    41   void setAbsCoor (Quaternion absDir);
     42  void setAbsDir (Quaternion absDir);
    4243
    4344  void addChild (PNode* pNode);
    4445  void removeChild (PNode* pNode);
     46  void setParent (PNode* parent);
    4547
    4648 private:
     
    5456  Quaternion absDirection; //! absolute direvtion in the world ( from (0,0,1) )
    5557
     58  PNode* parent;
    5659  tList<PNode>* children; //! list of the children
    5760
Note: See TracChangeset for help on using the changeset viewer.