Changeset 4509 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jun 4, 2005, 2:36:34 PM (19 years ago)
- Location:
- orxonox/trunk/src/util/track
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/track/track_manager.cc
r4508 r4509 419 419 420 420 element = root->FirstChildElement(); 421 422 423 421 while( element != NULL) 424 422 { … … 431 429 LoadParam<TrackManager>(element, "Duration", this, &TrackManager::setDuration, true) 432 430 .describe("Sets the Duration of the currently selected TrackElement"); 431 432 LoadParam<TrackManager>(element, "HotPoint", this, &TrackManager::addHotPoint, true) 433 .describe("Sets a new Point that acts as a hot point. meaning, the curve will flow through this Point"); 433 434 434 435 LoadParam<TrackManager>(element, "SavePoint", this, &TrackManager::setSavePointS, true) … … 640 641 641 642 /** 643 \brief adds a new Hot Point 644 \param x: the x coordinate of the hotpoint 645 \param y: the y coordinate of the hotpoint 646 \param z: the z coordinate of the hotpoint 647 \see int TrackManager::addHotPointV(Vector newPoint, TrackElement* trackElem) 648 */ 649 void TrackManager::addHotPoint(float x, float y, float z) 650 { 651 this->addHotPointV(Vector(x, y, z)); 652 } 653 654 /** 642 655 \brief adds save/splitpoint. 643 656 \param newPoint The point to add. … … 645 658 \returns A Pointer to a newly appended Curve 646 659 */ 647 int TrackManager::addHotPoint (Vector newPoint, TrackElement* trackElem)660 int TrackManager::addHotPointV(Vector newPoint, TrackElement* trackElem) 648 661 { 649 662 if (!trackElem) -
orxonox/trunk/src/util/track/track_manager.h
r4508 r4509 158 158 void addPoint(float x, float y, float z); 159 159 void addPointV(Vector newPoint, TrackElement* trackElem = NULL); 160 int addHotPoint(Vector newPoint, TrackElement* trackElem = NULL); 160 void addHotPoint(float x, float y, float z); 161 int addHotPointV(Vector newPoint, TrackElement* trackElem = NULL); 161 162 void setSavePointS(const char* nextElementName); 162 163 void setSavePoint(TrackElement* trackElem = NULL);
Note: See TracChangeset
for help on using the changeset viewer.