Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4448 in orxonox.OLD for orxonox/trunk/src/lib/coord/p_node.cc


Ignore:
Timestamp:
Jun 1, 2005, 10:55:53 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: doxygen-tags, and cleanup of NullParent

File:
1 edited

Legend:

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

    r4444 r4448  
    3939/**
    4040   \brief standard constructor
    41 
    42    \todo this constructor is not jet implemented - do it
    4341*/
    4442PNode::PNode ()
     
    4947}
    5048
     49/**
     50   \param root the load-Element for the PNode
     51*/
    5152PNode::PNode(const TiXmlElement* root)
    5253{
     
    9495}
    9596
     97/**
     98   \brief initializes a PNode
     99   \param parent the parent for this PNode
     100*/
    96101void PNode::init(PNode* parent)
    97102{
     
    104109}
    105110
     111/**
     112   \brief loads parameters of the PNode
     113   \param root the XML-element to load the properties of
     114*/
    106115void PNode::loadParams(const TiXmlElement* root)
    107116{
    108117  static_cast<BaseObject*>(this)->loadParams(root);
    109118}
    110 
    111 /**
    112    \brief get relative coordinates
    113    \returns relative coordinates to its parent
    114    
    115    the reference that is returned is a pointer to the real relCoor, so don't
    116    change it unless you realy know what you are doing.
    117 */
    118 //Vector* PNode::getRelCoor () const
    119 
    120 
    121119
    122120/**
     
    128126   has changed and won't update the children Nodes.
    129127*/
    130 /*
    131 void PNode::setRelCoor (Vector* relCoord)
    132 {
    133   this->bRelCoorChanged = true;
    134   *this->relCoordinate = *relCoord;
    135 }
    136 */
    137 
    138 
    139 /**
    140    \brief set relative coordinates
    141    \param relCoord relative coordinates to its parent
    142 
    143    it is very importand, that you use this function, if you want to update the
    144    relCoordinates. If you don't use this, the PNode won't recognize, that something
    145    has changed and won't update the children Nodes.
    146 */
    147128void PNode::setRelCoor (const Vector& relCoord)
    148129{
     
    150131  this->relCoordinate = relCoord;
    151132}
    152 
    153 
    154 /**
    155    \brief get absolute coordinates
    156    \returns absolute coordinates from (0,0,0)
    157 */
    158 //Vector PNode::getAbsCoor () const
    159 
    160 
    161 
    162 
    163133
    164134/**
     
    175145}
    176146
    177 
    178147/**
    179148   \brief shift coordinate (abs and rel)
    180    \param shift vector
     149   \param shift shift vector
    181150
    182151   this function shifts the current coordinates about the vector shift. this is
     
    210179}
    211180
    212 
    213 
    214 /**
    215    \brief get relative direction
    216    \returns relative direction to its parent
    217 */
    218 //Quaternion* PNode::getRelDir () const
    219 
    220 
    221 
    222181/**
    223182   \brief set relative direction
     
    234193}
    235194
    236 
    237 /**
    238    \brief gets the absolute direction (0,0,1)
    239    \returns absolute coordinates
    240 */
    241 //Quaternion PNode::getAbsDir () const
    242 
    243 
    244 
    245195/**
    246196   \brief sets the absolute direction (0,0,1)
     
    256206  this->absDirection = absDir;
    257207}
    258 
    259 
    260208
    261209/**
     
    289237   \brief adds a child and makes this node to a parent
    290238   \param pNode child reference
    291    \param mode on which changes the child should also change ist state
     239   \param parentMode on which changes the child should also change ist state
    292240
    293241   use this to add a child to this node.
     
    304252  this->children->add(pNode);
    305253}
    306 
    307254
    308255/**
     
    354301/**
    355302   \brief set the mode of this parent manualy
    356    \param mode the mode of the bind-type.
     303   \param parentMode the mode of the bind-type.
    357304*/
    358305void PNode::setParentMode (unsigned int parentMode)
     
    375322*/
    376323
    377 
    378 /**
    379    \brief has to be called, if the parent direction has changed
    380    
    381    normaly this will be done by the parent itself automaticaly. If you call this, you
    382    will force an update of the direction of the node.
    383 */
    384 /*
    385 void PNode::parentDirChanged ()
    386 {
    387   this->bRelDirChanged = true;
    388 }
    389 */
    390 
    391 
    392324/**
    393325   \brief updates the absCoordinate/absDirection
    394    \param timeStamp The timestanp used for to look if calculations should be done
     326   \param dt The time passed since the last update
    395327
    396328   this is used to go through the parent-tree to update all the absolute coordinates
     
    512444}
    513445
    514 
    515 /**
    516   \brief tick
    517   \param dt time to tick
    518 */
    519 void PNode::processTick (float dt)
    520 {
    521   //this->tick (dt);
    522   /*
    523   PNode* pn = this->children->enumerate();
    524   while( pn != NULL)
    525     {
    526       pn->processTick (dt);
    527       pn = this->children->nextElement();
    528     }
    529   */
    530 }
    531 
    532 
    533446/**
    534447   \brief displays some information about this pNode
Note: See TracChangeset for help on using the changeset viewer.