Changeset 3265 in orxonox.OLD for orxonox/branches/parenting/src/p_node.h
- Timestamp:
- Dec 24, 2004, 1:45:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/p_node.h
r3249 r3265 33 33 public: 34 34 PNode (); 35 PNode (Vector* absCoordinate, PNode* pNode); 35 36 ~PNode (); 37 38 PNode* parent; //! a pointer to the parent node 39 tList<PNode>* children; //! list of the children 36 40 37 41 parentingMode mode; … … 41 45 Vector getAbsCoor (); 42 46 void setAbsCoor (Vector absCoord); 43 void shiftCoor (Vector shift);47 void shiftCoor (Vector* shift); 44 48 45 49 Quaternion getRelDir (); … … 47 51 Quaternion getAbsDir (); 48 52 void setAbsDir (Quaternion absDir); 49 void shiftDir (Quaternion shift);53 void shiftDir (Quaternion* shift); 50 54 51 55 void addChild (PNode* pNode); … … 53 57 void removeChild (PNode* pNode); 54 58 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 (); 56 65 57 66 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; 61 72 62 73 Vector relCoordinate; //! coordinates relative to the parent … … 65 76 Quaternion absDirection; //! absolute direvtion in the world ( from (0,0,1) ) 66 77 67 PNode* parent;68 tList<PNode>* children; //! list of the children69 70 78 }; 71 79
Note: See TracChangeset
for help on using the changeset viewer.