Changeset 4448 in orxonox.OLD for orxonox/trunk/src/lib/coord/p_node.cc
- Timestamp:
- Jun 1, 2005, 10:55:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r4444 r4448 39 39 /** 40 40 \brief standard constructor 41 42 \todo this constructor is not jet implemented - do it43 41 */ 44 42 PNode::PNode () … … 49 47 } 50 48 49 /** 50 \param root the load-Element for the PNode 51 */ 51 52 PNode::PNode(const TiXmlElement* root) 52 53 { … … 94 95 } 95 96 97 /** 98 \brief initializes a PNode 99 \param parent the parent for this PNode 100 */ 96 101 void PNode::init(PNode* parent) 97 102 { … … 104 109 } 105 110 111 /** 112 \brief loads parameters of the PNode 113 \param root the XML-element to load the properties of 114 */ 106 115 void PNode::loadParams(const TiXmlElement* root) 107 116 { 108 117 static_cast<BaseObject*>(this)->loadParams(root); 109 118 } 110 111 /**112 \brief get relative coordinates113 \returns relative coordinates to its parent114 115 the reference that is returned is a pointer to the real relCoor, so don't116 change it unless you realy know what you are doing.117 */118 //Vector* PNode::getRelCoor () const119 120 121 119 122 120 /** … … 128 126 has changed and won't update the children Nodes. 129 127 */ 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 coordinates141 \param relCoord relative coordinates to its parent142 143 it is very importand, that you use this function, if you want to update the144 relCoordinates. If you don't use this, the PNode won't recognize, that something145 has changed and won't update the children Nodes.146 */147 128 void PNode::setRelCoor (const Vector& relCoord) 148 129 { … … 150 131 this->relCoordinate = relCoord; 151 132 } 152 153 154 /**155 \brief get absolute coordinates156 \returns absolute coordinates from (0,0,0)157 */158 //Vector PNode::getAbsCoor () const159 160 161 162 163 133 164 134 /** … … 175 145 } 176 146 177 178 147 /** 179 148 \brief shift coordinate (abs and rel) 180 \param shift vector149 \param shift shift vector 181 150 182 151 this function shifts the current coordinates about the vector shift. this is … … 210 179 } 211 180 212 213 214 /**215 \brief get relative direction216 \returns relative direction to its parent217 */218 //Quaternion* PNode::getRelDir () const219 220 221 222 181 /** 223 182 \brief set relative direction … … 234 193 } 235 194 236 237 /**238 \brief gets the absolute direction (0,0,1)239 \returns absolute coordinates240 */241 //Quaternion PNode::getAbsDir () const242 243 244 245 195 /** 246 196 \brief sets the absolute direction (0,0,1) … … 256 206 this->absDirection = absDir; 257 207 } 258 259 260 208 261 209 /** … … 289 237 \brief adds a child and makes this node to a parent 290 238 \param pNode child reference 291 \param mode on which changes the child should also change ist state239 \param parentMode on which changes the child should also change ist state 292 240 293 241 use this to add a child to this node. … … 304 252 this->children->add(pNode); 305 253 } 306 307 254 308 255 /** … … 354 301 /** 355 302 \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. 357 304 */ 358 305 void PNode::setParentMode (unsigned int parentMode) … … 375 322 */ 376 323 377 378 /**379 \brief has to be called, if the parent direction has changed380 381 normaly this will be done by the parent itself automaticaly. If you call this, you382 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 392 324 /** 393 325 \brief updates the absCoordinate/absDirection 394 \param timeStamp The timestanp used for to look if calculations should be done326 \param dt The time passed since the last update 395 327 396 328 this is used to go through the parent-tree to update all the absolute coordinates … … 512 444 } 513 445 514 515 /**516 \brief tick517 \param dt time to tick518 */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 533 446 /** 534 447 \brief displays some information about this pNode
Note: See TracChangeset
for help on using the changeset viewer.