Class Reference

DK_AnimParam

DK_AnimParam is the base data class for handling animated parameters, that is, sets of floating point numbers that can be keyframed.

Constructor

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.

getValue

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.

setValue

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.

nextKeyFrame

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.

prevKeyFrame

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.

removeKey

void removeKey( float frame );
Removes a key from all channels at the specified frame.

addKey

void addKey ( float frame );
Adds a key to all channels at the specified frame.

setChannelName

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.

addChannel

void addChannel(const char *channel_name,
                float default_value);
Adds the specified channel name and sets it to the default value.

Constructor
getValue
setValue
nextKeyFrame
prevKeyFrame
removeKey
addKey
setChannelName
addChannel

SOFTIMAGE Eddie 3.5 - 10 JAN 1997