
Class Reference
DK_AnimParam(DK_Tool &owner,
const char *param_name,
float default_value,
const char *channel_0_name = "");
Creates a single animated floating-point channel. Use addChannel to create additional channels.
float getValue( float frame,
u_int channel_no = 0 );
Returns the value of the specified channel at the specified frame. If no channel is specified, channel 0 is assumed.
void setValue( float frame,
float value,
u_int channel_no = 0 );
Sets the specified channel number to the specified value at the specified frame. If no channel is specified, channel 0 is assumed.
Boolval nextKeyFrame( float frame,
float &next );
If the AnimParam has a keyframe after the specified frame, the frame number of the keyframe is passed in &next and the function returns TRUE.
Boolval prevKeyFrame( float frame,
float &prev );
If the AnimParam has a keyframe before the specified frame, the frame number of the keyframe is passed in &prev and the function returns TRUE.void removeKey( float frame );Removes a key from all channels at the specified frame.
void addKey ( float frame );Adds a key to all channels at the specified frame.
void setChannelName(const char *name,
u_int channel_no = 0);
Modifies the name of a channel. The corresponding GUI classes are updated automatically. If no channel is specified, channel 0 is assumed.
void addChannel(const char *channel_name,
float default_value);
Adds the specified channel name and sets it to the default value.
