Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4509 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Jun 4, 2005, 2:36:34 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: hotpoint of TrackManager loadable

Location:
orxonox/trunk/src/util/track
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/track/track_manager.cc

    r4508 r4509  
    419419       
    420420  element = root->FirstChildElement();
    421 
    422        
    423421  while( element != NULL)
    424422    {
     
    431429      LoadParam<TrackManager>(element, "Duration", this, &TrackManager::setDuration, true)
    432430        .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");
    433434     
    434435      LoadParam<TrackManager>(element, "SavePoint", this, &TrackManager::setSavePointS, true)
     
    640641
    641642/**
     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*/
     649void TrackManager::addHotPoint(float x, float y, float z)
     650{
     651  this->addHotPointV(Vector(x, y, z));
     652}
     653
     654/**
    642655   \brief adds save/splitpoint.
    643656   \param newPoint The point to add.
     
    645658   \returns A Pointer to a newly appended Curve
    646659*/
    647 int TrackManager::addHotPoint(Vector newPoint, TrackElement* trackElem)
     660int TrackManager::addHotPointV(Vector newPoint, TrackElement* trackElem)
    648661{
    649662  if (!trackElem)
  • orxonox/trunk/src/util/track/track_manager.h

    r4508 r4509  
    158158  void addPoint(float x, float y, float z);
    159159  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);
    161162  void setSavePointS(const char* nextElementName);
    162163  void setSavePoint(TrackElement* trackElem = NULL);
Note: See TracChangeset for help on using the changeset viewer.