#include <ControllerC.h>
Inheritance diagram for Composition::ControllerC:
Controller class is used to control the animated parameter values in Demopaja. For user and coder the use of controllers are invisible. The parameter takes care of using the controller. In some cases it may be useful to use the controller directly.
Controller provides methods to add and delete keys, interpolate between set of keys,
This class is implemented by the system.
|
Default constructor.
|
|
Default constructor with reference to the original.
|
|
Default destructor.
|
|
Creates a new key at specified time and returns it.
|
|
Deep copy from a data block, see Edit::DataBlockI::copy().
Reimplemented from Edit::EditableI. |
|
Creates new controller (used internally), see Edit::EditableI::create().
Reimplemented from Edit::EditableI. |
|
Creates new controller. Use set_type() to set number of channels and the type of the controller. Reimplemented from Edit::EditableI. |
|
Creates new controller.
|
|
Deletes a key pointed by the argument.
|
|
Returns the end out fo range type.
|
|
Returns pointer to a key pointed by the argument.
|
|
Returns a key at specified time, else NULL.
|
|
Returns the number of keys inside the controller.
|
|
Returns the time of the last key.
|
|
Returns the maximum value of the cotnroller. The value is checked on keyframes and the result is maximum of the all channels. This method is mainly used internally. |
|
Returns the time of the first key.
|
|
Returns the minimum value of the controller. The value is checked on keyframes and the result is minimum of the all channels. This method is mainly used internally. |
|
Returns number of channels this cintroller controls. The channel count depends on the controller type.
|
|
Returns the start out fo range type.
|
|
Returns the type of the controller.
|
|
Returns the interpolated value of the controller at specified time as a color.
|
|
Returns the interpolated value of the controller at specified time as a 3D vector.
|
|
Returns the interpolated value of the controller at specified time as a 3D vector.
|
|
Returns the interpolated value of the controller at specified time as a floating point values.
|
|
Returns the interpolated value of the controller at specified time as a integer value.
|
|
Returns the interpolated value of the controller at specified time. This method calculates the interpolated value based in the keys inside the controller. If no keys are present the return value will be zero for all channels. Maximum of KEY_MAXCHANNELS (currently 4) values are stored in the array pointed by the pValues parmeter. For easier access should one of the other get_value() methods be used. |
|
Load editable from a Demopaja input stream.
Reimplemented from Edit::EditableI. |
|
Prepares controller for interpolation. This method has to be called after a new key is added to the controller, or the result of other methods may be incorrect. If the controller contains smooth keys the tangents are calculated by this method, else it does nothing. |
|
Shallow copy from a editable, see Edit::EditableI::restore().
Reimplemented from Edit::EditableI. |
|
Save editable to a Demopaja output stream.
Reimplemented from Edit::EditableI. |
|
Sets the end (time after last key) out of range type.
|
|
Sets the start (time before the first key) out of range type.
|
|
Sets the type of the controller. This method should only be called for a controller which does not have any keys. It doesn't convert the keys and will lead in serious trouble if misused. |
|
Sorts keys by time. This method has to be called after a new key is added to the controller, or the result of other methods may be incorrect. |