Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4436 in orxonox.OLD for orxonox/trunk/src/lib/coord


Ignore:
Timestamp:
Jun 1, 2005, 12:50:07 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: baseObject now implements loading of objectNames

Location:
orxonox/trunk/src/lib/coord
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/p_node.cc

    r4435 r4436  
    2929#include "vector.h"
    3030#include "null_parent.h"
     31#include "load_param.h"
    3132
    3233//#include "vector.h"
     
    4546  init(NULL);
    4647
    47   NullParent* np = NullParent::getInstance();
    48   np->addChild(this);
    49 }
    50 
     48  NullParent::getInstance()->addChild(this);
     49}
     50
     51PNode::PNode(const TiXmlElement* root)
     52{
     53  this->init(NULL);
     54  NullParent::getInstance()->addChild(this);
     55}
    5156
    5257
     
    8792}
    8893
    89 
    9094void PNode::init(PNode* parent)
    9195{
     
    98102}
    99103
    100 
     104void PNode::loadParams(const TiXmlElement* root)
     105{
     106  static_cast<BaseObject*>(this)->loadParams(root);
     107}
    101108
    102109/**
  • orxonox/trunk/src/lib/coord/p_node.h

    r4435 r4436  
    2929//class Quaternion;
    3030//class Vector;
     31class TiXmlElement;
    3132template<class T> class tList;
    3233
     
    4950 public:
    5051  PNode ();
     52  PNode(const TiXmlElement* root);
    5153  PNode (const Vector& absCoordinate, PNode* pNode);
    5254  virtual ~PNode ();
     55
     56  void loadParams(const TiXmlElement* root);
     57
    5358
    5459  PNode* parent;            //!< a pointer to the parent node
Note: See TracChangeset for help on using the changeset viewer.