Class AnimProperty

3DS Max Plug-In SDK

Class AnimProperty

See Also: Class Animatable.

class AnimProperty

Description:

This is the base class for classes that can be hung off an animatable's property list. When an animatable is deleted, its properties will be deleted and their virtual destructor will be called.

Methods:

Prototype:

virtual BOOL DontDelete();

Remarks:

Implemented by the Plug-In.

When the animatable is destroyed it will normally delete all the properties. If a plug-in wants to add a property to the list that it does not want deleted it can implement this method to return TRUE.

Return Value:

TRUE if the item should not be deleted; otherwise FALSE.

Default Implementation:

{return FALSE;}

Prototype:

virtual DWORD ID()=0;

Remarks:

Implemented by the Plug-In.

Returns the ID of the property. Values above PROPID_USER can be used by plug-ins. Note: that a plug-in should only put user defined properties on its own list. So IDs only have to be unique within a plug-in. If a plug-in needs to attach data to another object, it can do so via APP_DATA.