Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: setMode → setParentMode

File:
1 edited

Legend:

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

    r4440 r4444  
    5252{
    5353  this->init(NULL);
     54  this->loadParams(root);
     55 
    5456  NullParent::getInstance()->addChild(this);
    5557}
     
    291293   use this to add a child to this node.
    292294*/
    293 void PNode::addChild (PNode* pNode, int parentingMode)
     295void PNode::addChild (PNode* pNode, int parentMode)
    294296{
    295297  if( likely(pNode->parent != NULL))
     
    298300      pNode->parent->children->remove(pNode);
    299301    }
    300   pNode->mode = parentingMode;
     302  pNode->parentMode = parentMode;
    301303  pNode->parent = this;
    302304  this->children->add(pNode);
     
    332334  while( pn != NULL)
    333335    {
    334       nullParent->addChild(pn, pn->getMode());
     336      nullParent->addChild(pn, pn->getParentMode());
    335337      pn = iterator->nextElement();
    336338    }
     
    354356   \param mode the mode of the bind-type.
    355357*/
    356 void PNode::setMode (int parentingMode)
    357 {
    358   this->mode = parentingMode;
    359 }
    360 
    361 
    362 /**
    363    \brief gets the mode of this parent manualy
    364    \return the mode of the bind-type.
    365 */
    366 int PNode::getMode() const
    367 {
    368   return this->mode;
     358void PNode::setParentMode (unsigned int parentMode)
     359{
     360  this->parentMode = parentMode;
    369361}
    370362
     
    415407
    416408
    417       if( likely(this->mode & PNODE_MOVEMENT))
     409      if( likely(this->parentMode & PNODE_MOVEMENT))
    418410        {
    419411          if( unlikely(this->bAbsCoorChanged) /*&& this->timeStamp != DataTank::timeStamp*/)
     
    437429        }
    438430 
    439       if( this->mode & PNODE_LOCAL_ROTATE)
     431      if( this->parentMode & PNODE_LOCAL_ROTATE)
    440432        {
    441433          if( unlikely(this->bAbsDirChanged) /*&& this->timeStamp != DataTank::timeStamp*/)
     
    451443        }
    452444 
    453       if( this->mode & PNODE_ROTATE_MOVEMENT)
     445      if( this->parentMode & PNODE_ROTATE_MOVEMENT)
    454446        {
    455447          if( unlikely(this->bAbsCoorChanged) /*&& this->timeStamp != DataTank::timeStamp*/)
Note: See TracChangeset for help on using the changeset viewer.