Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 24, 2004, 1:45:15 PM (19 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: now finished the parenting class more or less - yet sill have som bugs that i have to find.

File:
1 edited

Legend:

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

    r3249 r3265  
    3333 public:
    3434  PNode ();
     35  PNode (Vector* absCoordinate, PNode* pNode);
    3536  ~PNode ();
     37
     38  PNode* parent; //! a pointer to the parent node
     39  tList<PNode>* children; //! list of the children
    3640
    3741  parentingMode mode;
     
    4145  Vector getAbsCoor ();
    4246  void setAbsCoor (Vector absCoord);
    43   void shiftCoor (Vector shift);
     47  void shiftCoor (Vector* shift);
    4448
    4549  Quaternion getRelDir ();
     
    4751  Quaternion getAbsDir ();
    4852  void setAbsDir (Quaternion absDir);
    49   void shiftDir (Quaternion shift);
     53  void shiftDir (Quaternion* shift);
    5054
    5155  void addChild (PNode* pNode);
     
    5357  void removeChild (PNode* pNode);
    5458  void setParent (PNode* parent);
    55   void update (long timeStamp);
     59  void parentCoorChanged ();
     60  void parentDirChanged ();
     61  void setMode (parentingMode mode);
     62  virtual void update (long timeStamp);
     63
     64  void debug ();
    5665
    5766 private:
    58   long timeStamp; //! this the timeStamp of when the abs{Coordinat, Direction} has been calculated
    59   bool bCoorChanged;
    60   bool bDirChanged;
     67  long timeStamp;   //! this the timeStamp of when the abs{Coordinat, Direction} has been calculated
     68  bool bAbsCoorChanged;
     69  bool bRelCoorChanged;
     70  bool bRelDirChanged;
     71  bool bAbsDirChanged;
    6172
    6273  Vector relCoordinate;  //! coordinates relative to the parent
     
    6576  Quaternion absDirection; //! absolute direvtion in the world ( from (0,0,1) )
    6677
    67   PNode* parent;
    68   tList<PNode>* children; //! list of the children
    69 
    7078};
    7179
Note: See TracChangeset for help on using the changeset viewer.