Changeset 5091 in orxonox.OLD for trunk/src/lib/coord
- Timestamp:
- Aug 21, 2005, 10:14:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r5089 r5091 147 147 while (element != NULL) 148 148 { 149 LoadParam<PNode>( root, "parent", this, &PNode::addChild, true)149 LoadParam<PNode>(element, "parent", this, &PNode::addChild, true) 150 150 .describe("adds a new Child to the current Node."); 151 151 … … 210 210 /** 211 211 * @param absCoord set absolute coordinate 212 213 it is very importand, that you use this function, if you want to update the 214 absCoordinates. If you don't use this, the PNode won't recognize, that something 215 has changed and won't update the children Nodes. 216 217 @todo check if this does what it should 218 */ 212 */ 219 213 void PNode::setAbsCoor (const Vector& absCoord) 220 214 { … … 251 245 252 246 /** 253 * shift coordinate (abs and rel)247 * shift coordinate relative 254 248 * @param shift shift vector 255 249 … … 269 263 yea right... shorter... 270 264 * 271 * @todo this is ambiguous, from the outside one does not know it absCoor has been changed272 * this might lead to strange artefacts !!273 274 265 */ 275 266 void PNode::shiftCoor (const Vector& shift) … … 282 273 * set relative direction 283 274 * @param relDir to its parent 284 285 it is very importand, that you use this function, if you want to update the 286 relDirection. If you don't use this, the PNode won't recognize, that something 287 has changed and won't update the children Nodes. 288 */ 275 */ 289 276 void PNode::setRelDir (const Quaternion& relDir) 290 277 { … … 335 322 336 323 /** 337 * sets the absolute direction (0,0,1)324 * sets the absolute direction 338 325 * @param absDir absolute coordinates 339 * 340 * it is very importand, that you use this function, if you want to update the 341 * absDirection. If you don't use this, the PNode won't recognize, that something 342 * has changed and won't update the children Nodes. 343 */ 326 */ 344 327 void PNode::setAbsDir (const Quaternion& absDir) 345 328 { … … 366 349 367 350 /** 368 * shift coordinate (abs and rel) 369 * @param shift vector 370 * @todo implement this 371 */ 351 * shift Direction 352 * @param shift the direction around which to shift. 353 */ 372 354 void PNode::shiftDir (const Quaternion& shift) 373 355 { … … 378 360 /** 379 361 * adds a child and makes this node to a parent 380 * @param pNodechild reference362 * @param child child reference 381 363 * @param parentMode on which changes the child should also change ist state 382 364 * … … 397 379 398 380 /** 399 * @see PNode::addChild(PNode* parent);381 * @see PNode::addChild(PNode* child); 400 382 * @param childName the name of the child to add to this PNode 401 383 */ … … 409 391 /** 410 392 * removes a child from the node 411 * @param pNodethe child to remove from this pNode.393 * @param child the child to remove from this pNode. 412 394 * 413 395 * Children from pNode will not be lost, they are referenced to NullPointer … … 423 405 * remove this pnode from the tree and adds all following to NullParent 424 406 425 this can be the case, if an entity in the world is be endestroyed.407 this can be the case, if an entity in the world is being destroyed. 426 408 */ 427 409 void PNode::remove() … … 623 605 * displays some information about this pNode 624 606 * @param depth The deph into which to debug the children of this PNode to. 625 (0: all children will be debugged, 1: only this PNode, 2: this and direct children...)607 * (0: all children will be debugged, 1: only this PNode, 2: this and direct children...) 626 608 * @param level The n-th level of the Node we draw (this is internal and only for nice output) 627 609 */
Note: See TracChangeset
for help on using the changeset viewer.