Changeset 4436 in orxonox.OLD for orxonox/trunk/src/lib/coord
- Timestamp:
- Jun 1, 2005, 12:50:07 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r4435 r4436 29 29 #include "vector.h" 30 30 #include "null_parent.h" 31 #include "load_param.h" 31 32 32 33 //#include "vector.h" … … 45 46 init(NULL); 46 47 47 NullParent* np = NullParent::getInstance(); 48 np->addChild(this); 49 } 50 48 NullParent::getInstance()->addChild(this); 49 } 50 51 PNode::PNode(const TiXmlElement* root) 52 { 53 this->init(NULL); 54 NullParent::getInstance()->addChild(this); 55 } 51 56 52 57 … … 87 92 } 88 93 89 90 94 void PNode::init(PNode* parent) 91 95 { … … 98 102 } 99 103 100 104 void PNode::loadParams(const TiXmlElement* root) 105 { 106 static_cast<BaseObject*>(this)->loadParams(root); 107 } 101 108 102 109 /** -
orxonox/trunk/src/lib/coord/p_node.h
r4435 r4436 29 29 //class Quaternion; 30 30 //class Vector; 31 class TiXmlElement; 31 32 template<class T> class tList; 32 33 … … 49 50 public: 50 51 PNode (); 52 PNode(const TiXmlElement* root); 51 53 PNode (const Vector& absCoordinate, PNode* pNode); 52 54 virtual ~PNode (); 55 56 void loadParams(const TiXmlElement* root); 57 53 58 54 59 PNode* parent; //!< a pointer to the parent node
Note: See TracChangeset
for help on using the changeset viewer.