Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 13, 2005, 10:38:39 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: changed pnode interface of setRelCoor and setRelDir

File:
1 edited

Legend:

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

    r3809 r3810  
    115115}
    116116
    117 /**
    118    \brief deletes the hole pnode tree
    119 
    120    cleans up all pnodes
    121 */
    122 /*
    123 void PNode::destroy ()
    124 {
    125   PNode* pn = this->children->enumerate();
    126   while( pn != NULL)
    127     {
    128       pn->destroy ();
    129       pn = this->children->nextElement();
    130     }
    131   // this deletes all children in the list
    132   this->children->destroy ();
    133 
    134   static_cast<BaseObject*>(this)->destroy();
    135 }
    136 */
     117
    137118
    138119/**
     
    155136   has changed and won't update the children Nodes.
    156137*/
     138/*
    157139void PNode::setRelCoor (Vector* relCoord)
    158140{
     
    160142  *this->relCoordinate = *relCoord;
    161143}
     144*/
    162145
    163146
     
    170153   has changed and won't update the children Nodes.
    171154*/
    172 void PNode::setRelCoor (Vector relCoord)
     155void PNode::setRelCoor (const Vector& relCoord)
    173156{
    174157  this->bRelCoorChanged = true;
     
    302285   has changed and won't update the children Nodes.
    303286*/
     287/*
    304288void PNode::setRelDir (Quaternion* relDir)
    305289{
     
    307291  *this->relDirection = *relDir;
    308292}
    309 
    310 
    311 void PNode::setRelDir (Quaternion relDir)
     293*/
     294
     295
     296void PNode::setRelDir (const Quaternion& relDir)
    312297{
    313298  this->bRelCoorChanged = true;
     
    332317   has changed and won't update the children Nodes.
    333318*/
     319/*
    334320void PNode::setAbsDir (Quaternion* absDir)
    335321{
     
    337323  *this->absDirection = *absDir;
    338324}
     325*/
    339326
    340327
     
    348335   has changed and won't update the children Nodes.
    349336*/
    350 void PNode::setAbsDir (Quaternion absDir)
     337void PNode::setAbsDir (const Quaternion& absDir)
    351338{
    352339  this->bAbsDirChanged = true;
     
    405392   \todo implement this
    406393*/
    407 void PNode::shiftDir (Quaternion shift)
     394/*
     395void PNode::shiftDir (Quaternion* shift)
    408396{}
     397*/
    409398
    410399
Note: See TracChangeset for help on using the changeset viewer.