Class TrackClipObject

3DS Max Plug-In SDK

Class TrackClipObject

See Also: Class Animatable.

class TrackClipObject

Description:

If a plug-in supports track view copy/paste operations this object is used. A plug-in should derive a class from this base class to store the data associated with the objects tracks, and implement the methods that identify the creator of the clip object.

Data Members:

public:

Interval clip;

Specifies the interval of time clipped.

Methods:

Prototype:

TrackClipObject(Interval iv);

Remarks:

Constructor.

Parameters:

Interval iv

The interval of the time clip.

Prototype:

virtual int NumKeys();

Remarks:

This method is available in release 2.0 and later only.

Implemented by the Plug-In.

Returns the number of keys in the clip object.

Default Implementation:

{return 0;}

Prototype:

virtual BOOL GetKeyVal(int i, void *val);

Remarks:

This method is available in release 2.0 and later only.

Implemented by the Plug-In.

Retrieves the value of the 'i-th' key.

Parameters:

int i

Specifies the key to return.

void *val

The value of the key is stored here.

Return Value:

TRUE if the value was retrieved; otherwise FALSE.

Default Implementation:

{return FALSE;}

Prototype:

virtual BOOL SetKeyVal(int i, void *val);

Remarks:

This method is available in release 2.0 and later only.

Implemented by the Plug-In.

Sets the value of the 'i-th' key.

Parameters:

int i

Specifies the key to store.

void *val

The value of the key is passed here.

Return Value:

TRUE if the value was stored; otherwise FALSE.

Default Implementation:

{return FALSE;}

Prototype:

virtual SClass_ID SuperClassID()=0;

Remarks:

Implemented by the Plug-In.

This method is used to identify the creator of the clip object by returning the SuperClassID of the creator.

Prototype:

virtual Class_ID ClassID()=0;

Remarks:

Implemented by the Plug-In.

Returns the ClassID of the creator of the clip object.

Prototype:

virtual void DeleteThis()=0;

Remarks:

Implemented by the Plug-In.

This method is called to delete this instance of the clip object.