Changeset 4746 in orxonox.OLD for orxonox/trunk/src/util/animation
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- Location:
- orxonox/trunk/src/util/animation
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/animation/animation.cc
r4597 r4746 25 25 This also adds the Animation automatically to the AnimationPlayer's list 26 26 */ 27 Animation::Animation( void)27 Animation::Animation() 28 28 { 29 29 this->setClassID(CL_ANIMATION, "Animation"); … … 48 48 this also takes the animation out of the AnimationPlayer's list (if it is there) 49 49 */ 50 Animation::~Animation( void)50 Animation::~Animation() 51 51 { 52 52 this->doNotHandle(); … … 59 59 This means that it will not be ticked, and not be deleted with the AnimationPlayer 60 60 */ 61 void Animation::doNotHandle( void)61 void Animation::doNotHandle() 62 62 { 63 63 if (this->bHandled) … … 77 77 \brief handles the Animation if it gets out of boundraries eg. if animation is finished. 78 78 */ 79 void Animation::handleInfinity( void)79 void Animation::handleInfinity() 80 80 { 81 81 switch (this->postInfinity) -
orxonox/trunk/src/util/animation/animation.h
r4597 r4746 75 75 { 76 76 public: 77 virtual ~Animation( void);78 void doNotHandle( void);77 virtual ~Animation(); 78 void doNotHandle(); 79 79 80 80 void setInfinity(ANIM_INFINITY postInfinity = ANIM_INF_CONSTANT); … … 92 92 93 93 /** \returns the BaseObject, this animation operates on */ 94 BaseObject* getBaseObject( void) const { return this->baseObject; };94 BaseObject* getBaseObject() const { return this->baseObject; }; 95 95 96 96 /** \returns if the Animation should be deleted */ 97 inline bool ifDelete( void) { return bDelete; };97 inline bool ifDelete() { return bDelete; }; 98 98 99 99 protected: 100 Animation( void);100 Animation(); 101 101 102 void handleInfinity( void);102 void handleInfinity(); 103 103 104 104 protected: -
orxonox/trunk/src/util/animation/animation3d.cc
r4597 r4746 54 54 deletes all the Keyframes 55 55 */ 56 Animation3D::~Animation3D( void)56 Animation3D::~Animation3D() 57 57 { 58 58 // delete all the KeyFrames … … 71 71 \brief rewinds the Animation to the beginning (first KeyFrame and time == 0) 72 72 */ 73 void Animation3D::rewind( void)73 void Animation3D::rewind() 74 74 { 75 75 this->currentKeyFrame = keyFrameList->firstElement(); -
orxonox/trunk/src/util/animation/animation3d.h
r4597 r4746 32 32 public: 33 33 Animation3D(PNode* object); 34 virtual ~Animation3D( void);34 virtual ~Animation3D(); 35 35 36 virtual void rewind( void);36 virtual void rewind(); 37 37 38 38 void addKeyFrame(Vector position, Quaternion direction, float time, ANIM_FUNCTION animFuncMov = ANIM_DEFAULT_FUNCTION, ANIM_FUNCTION animFuncRot = ANIM_NULL); -
orxonox/trunk/src/util/animation/animation_player.cc
r4597 r4746 82 82 \brief empties the list AND deletes all the Animations 83 83 */ 84 void AnimationPlayer::flush( void)84 void AnimationPlayer::flush() 85 85 { 86 86 // deleting the Animation List AND all the elements of the List … … 126 126 \brief starts playing the AnimationPlayer 127 127 */ 128 void AnimationPlayer::play( void)128 void AnimationPlayer::play() 129 129 { 130 130 this->bRunning = true; … … 134 134 \brief pauses playing of the AnimationPlayer 135 135 */ 136 void AnimationPlayer::pause( void)136 void AnimationPlayer::pause() 137 137 { 138 138 this->bRunning = false; … … 166 166 \brief Outputs some nice debug-information 167 167 */ 168 void AnimationPlayer::debug( void)168 void AnimationPlayer::debug() 169 169 { 170 170 PRINT(0)("+------------------------------------+\n"); -
orxonox/trunk/src/util/animation/animation_player.h
r4597 r4746 30 30 public: 31 31 /** \returns a Pointer to the only object of this Class */ 32 inline static AnimationPlayer* getInstance( void) { if (!singletonRef) singletonRef = new AnimationPlayer(); return singletonRef; };32 inline static AnimationPlayer* getInstance() { if (!singletonRef) singletonRef = new AnimationPlayer(); return singletonRef; }; 33 33 34 virtual ~AnimationPlayer( void);34 virtual ~AnimationPlayer(); 35 35 36 36 // animation handling 37 37 void addAnimation(Animation* animation); 38 38 void removeAnimation(Animation* animation); 39 void flush( void);39 void flush(); 40 40 41 41 // time functions 42 42 void tick(float timePassed); 43 void play( void);44 void pause( void);43 void play(); 44 void pause(); 45 45 46 46 Animation* getAnimationFromBaseObject(const BaseObject* baseObject) const; 47 47 48 void debug( void);48 void debug(); 49 49 50 50 private: 51 51 /* singleton */ 52 AnimationPlayer( void);52 AnimationPlayer(); 53 53 static AnimationPlayer* singletonRef; //!< SingletonReference to this class. 54 54 -
orxonox/trunk/src/util/animation/t_animation.h
r4597 r4746 122 122 */ 123 123 template<class T> 124 void tAnimation<T>::rewind( void)124 void tAnimation<T>::rewind() 125 125 { 126 126 this->currentKeyFrame = keyFrameList->firstElement();
Note: See TracChangeset
for help on using the changeset viewer.