Changeset 3810 in orxonox.OLD for orxonox/trunk/src/lib/coord
- Timestamp:
- Apr 13, 2005, 10:38:39 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
r3809 r3810 115 115 } 116 116 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 137 118 138 119 /** … … 155 136 has changed and won't update the children Nodes. 156 137 */ 138 /* 157 139 void PNode::setRelCoor (Vector* relCoord) 158 140 { … … 160 142 *this->relCoordinate = *relCoord; 161 143 } 144 */ 162 145 163 146 … … 170 153 has changed and won't update the children Nodes. 171 154 */ 172 void PNode::setRelCoor ( VectorrelCoord)155 void PNode::setRelCoor (const Vector& relCoord) 173 156 { 174 157 this->bRelCoorChanged = true; … … 302 285 has changed and won't update the children Nodes. 303 286 */ 287 /* 304 288 void PNode::setRelDir (Quaternion* relDir) 305 289 { … … 307 291 *this->relDirection = *relDir; 308 292 } 309 310 311 void PNode::setRelDir (Quaternion relDir) 293 */ 294 295 296 void PNode::setRelDir (const Quaternion& relDir) 312 297 { 313 298 this->bRelCoorChanged = true; … … 332 317 has changed and won't update the children Nodes. 333 318 */ 319 /* 334 320 void PNode::setAbsDir (Quaternion* absDir) 335 321 { … … 337 323 *this->absDirection = *absDir; 338 324 } 325 */ 339 326 340 327 … … 348 335 has changed and won't update the children Nodes. 349 336 */ 350 void PNode::setAbsDir ( QuaternionabsDir)337 void PNode::setAbsDir (const Quaternion& absDir) 351 338 { 352 339 this->bAbsDirChanged = true; … … 405 392 \todo implement this 406 393 */ 407 void PNode::shiftDir (Quaternion shift) 394 /* 395 void PNode::shiftDir (Quaternion* shift) 408 396 {} 397 */ 409 398 410 399 -
orxonox/trunk/src/lib/coord/p_node.h
r3809 r3810 58 58 59 59 inline Vector* getRelCoor () const { return this->relCoordinate; } 60 void setRelCoor (Vector* relCoord); 61 void setRelCoor (Vector relCoord); 60 void setRelCoor (const Vector& relCoord); 62 61 inline Vector getAbsCoor () const { return *this->absCoordinate; } 63 //void setAbsCoor (Vector* absCoord);64 62 void setAbsCoor (const Vector& absCoord); 65 63 void shiftCoor (Vector* shift); 66 64 void shiftCoor (const Vector& shift); 67 //void shiftCoor (Vector shift);68 65 69 66 inline Quaternion getRelDir () const { return *this->relDirection; } 70 void setRelDir (Quaternion* relDir);71 void setRelDir ( QuaternionrelDir);67 //void setRelDir (Quaternion* relDir); 68 void setRelDir (const Quaternion& relDir); 72 69 inline Quaternion getAbsDir () const { return *this->absDirection; } 73 void setAbsDir (Quaternion* absDir); 74 void setAbsDir (Quaternion absDir); 70 //void setAbsDir (Quaternion* absDir); 71 void setAbsDir (const Quaternion& absDir); 72 //void shiftDir (Quaternion* shift); 75 73 void shiftDir (const Quaternion& shift); 76 void shiftDir (Quaternion shift);77 74 78 75 float getSpeed() const;
Note: See TracChangeset
for help on using the changeset viewer.