Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3836 in orxonox.OLD for orxonox/trunk/src/track_manager.h


Ignore:
Timestamp:
Apr 15, 2005, 5:51:17 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: TrackManager: nicer fuctionality… more to come

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/track_manager.h

    r3835 r3836  
    2121
    2222//! The Default Curve-Type to set for the whole path (if not chosen otherwise).
    23 #define TMAN_DEFAULT_CURVETYPE BEZIERCURVE
     23#define TMAN_DEFAULT_CURVETYPE CURVE_BEZIER
    2424#define TMAN_DEFAULT_DURATION 10
    2525#define TMAN_DEFAULT_WIDTH    10
     
    139139  PNode* trackNode;                   //!< The main TrackNode of this Track.
    140140 
    141   void initChildren(unsigned int childCount);
     141  void initChildren(unsigned int childCount, TrackElement* trackElem = NULL);
    142142
    143   TrackElement* findTrackElementByID(unsigned int trackID) const;
    144  
    145143 public:
    146144  virtual ~TrackManager(void);
     
    150148  // Methods to change the Path (initialisation)
    151149  void workOn(unsigned int trackID);
     150  void workOn(const char* trackName);
     151
    152152  /** \see setCurveType(CurveType curveType, TrackElement* trackElem); \param curveType the type of the Curve */
    153153  inline void setCurveType(CurveType curveType) { this->setCurveType (curveType, this->currentTrackElem);};
    154154  void setCurveType(CurveType curveType, TrackElement* trackElem);
    155   void setDuration(float time);
    156   bool addPoint(Vector newPoint);
    157   bool addPoint(Vector newPoint, TrackElement* trackElem);
    158   int addHotPoint(Vector newPoint);
     155  void setDuration(float duration, TrackElement* trackElem = NULL);
     156  bool addPoint(Vector newPoint, TrackElement* trackElem = NULL);
     157  int addHotPoint(Vector newPoint, TrackElement* trackElem = NULL);
    159158  int setSavePoint(void);
    160159  void fork(unsigned int count, ...);
Note: See TracChangeset for help on using the changeset viewer.