Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2005, 9:12:19 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: minor update on quickAnimation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/particles/quick_animation.cc

    r4421 r4425  
    9494 
    9595  this->current = this->first;
     96
     97  return true;
    9698}
     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*/
     106bool 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*/
    97142
    98143/**
Note: See TracChangeset for help on using the changeset viewer.