Changeset 4425 in orxonox.OLD for orxonox/trunk/src/lib/particles
- Timestamp:
- May 31, 2005, 9:12:19 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/particles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/quick_animation.cc
r4421 r4425 94 94 95 95 this->current = this->first; 96 97 return true; 96 98 } 99 100 /** 101 \brief changes an entry in the region of position 102 \param position the Position of an existing keyframe 103 \param region a deviation of the existing keyframe (like a delta in witch to search for 104 \param value the new Value 105 */ 106 bool QuickAnimation::changeEntry(float position, float value, float region) 107 { 108 this->current = this->first; 109 while (this->current) 110 { 111 if (this->current->position < position+region && this->current->position > position-region) 112 { 113 this->current->value = value; 114 return true; 115 } 116 this->current = this->current->next; 117 } 118 this->current = this->first; 119 return false; 120 } 121 122 /* 123 \param position The position where to find the Node to kill 124 125 bool QuickAnimation::removeEntry(float position) 126 { 127 this->current = this->first; 128 QuickKeyFrame* last = 129 130 while (this->current) 131 { 132 if (this->current->position == position) 133 { 134 135 136 } 137 this->current = this->current->next; 138 } 139 this->current = this->first; 140 } 141 */ 97 142 98 143 /** -
orxonox/trunk/src/lib/particles/quick_animation.h
r4421 r4425 38 38 39 39 bool addEntry(float position, float value); 40 bool changeEntry(float position, float value, float region = .04); 40 41 42 /** \todo implemente thos functions 43 bool removeEntry(float position); 44 bool moveEntry(float position); 45 */ 41 46 float getValue(float position); 42 47
Note: See TracChangeset
for help on using the changeset viewer.