#include <Envelope.h>
Inheritance diagram for csl::LineSegment:

Public Member Functions | |
| LineSegment () | |
| empty constructor | |
| LineSegment (float d, float s, float e, LineMode mode=kLine) | |
| Declare dur in sec, start, stop values. | |
| float | start () |
| Accessors Returns the initial value of the line segment. | |
| float | end () |
| Returns the target value of the line segment. | |
| float | duration () |
| Returns the total time it will take to get from start to end value. | |
| unsigned | currentFrame () |
| void | setEnd (float end) |
| void | setStart (float start) |
| void | setDuration (unsigned duration) |
| Overloaded to accept either float or unsigned. | |
| void | setDuration (float duration) |
| void | setMode (LineMode mode) |
| Sets the interpolation kind (linear or exponential). | |
| void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException) |
| next buffer interpolator | |
| void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum, Port *scalePort, Port *offsetPort) throw (CException) |
| handy version given Scalable port pointers | |
| void | reset () |
| reset counters | |
| void | trigger () |
| void | dump () |
| reset internal time to restart envelope Prints to screen the start and end values and the duration of the line. | |
Protected Attributes | |
| float | mStart |
| Start value. | |
| float | mEnd |
| Ending value. | |
| float | mDuration |
| Length of the line segment (IN SECONDS). | |
| LineMode | mMode |
| How am I to calculate the values from start to end values of the line. | |
| float | mCurrentValue |
| Internal book-keeping. | |
| unsigned | mCurrentFrame |
| cache | |
|
|
empty constructor
|
|
||||||||||||||||||||
|
Declare dur in sec, start, stop values.
|
|
|
Accessors Returns the initial value of the line segment.
|
|
|
Returns the target value of the line segment.
|
|
|
Returns the total time it will take to get from start to end value.
|
|
|
|
|
|
|
|
|
|
|
|
Overloaded to accept either float or unsigned.
|
|
|
|
|
|
Sets the interpolation kind (linear or exponential).
|
|
||||||||||||
|
next buffer interpolator
|
|
||||||||||||||||||||
|
handy version given Scalable port pointers calculate the increment for the linear interpolation, the number of frames to calculate and the number of frames that are constant (at the end of the interpolations) This test to see if we're at the end works for now, but we should use a bool to check if we are done in case mCurrentFrame loops < Generate the interpolated frames < Generate the interpolated frames < Generate the constant frames < if we're not already at the end increment my internal counters |
|
|
reset counters
|
|
|
|
|
|
reset internal time to restart envelope Prints to screen the start and end values and the duration of the line.
|
|
|
Start value.
|
|
|
Ending value.
|
|
|
Length of the line segment (IN SECONDS).
|
|
|
How am I to calculate the values from start to end values of the line.
|
|
|
Internal book-keeping.
|
|
|
cache
|
1.4.5-20051010