This reference page is linked to from the following overview topics: General Best Practices, Animation Track Locking.
An interface to a track that can get locked.
Your animatable class should inherit from this class if it wants to support itself getting locked. Remember only items which can get locked can support local edits with containers. To get from an existing object, call GetLockedTrackInterface(anim) which is defined AnimatableInterfaceIDs.h
#include <ILockedTracks.h>
Public Member Functions |
|
virtual | ~ILockedTrack () |
deconstructor |
|
virtual void | SetLocked (bool val, bool lockSubanims, ReferenceTarget *anim, ReferenceTarget *client, int subNum)=0 |
Function to lock or unlock this track This
function will be called to lock or unlock this item. |
|
virtual bool | GetLocked (bool checkOverride=true) const =0 |
Return whether or not the track is locked.
|
|
virtual bool | IsComponent () |
Returns whether or not the object is a
component Returns whether or not an object is a component. |
virtual ~ILockedTrack | ( | ) | [inline, virtual] |
deconstructor
{};
virtual void SetLocked | ( | bool | val, |
bool | lockSubanims, | ||
ReferenceTarget * | anim, | ||
ReferenceTarget * | client, | ||
int | subNum | ||
) | [pure virtual] |
Function to lock or unlock this track This function will be called to lock or unlock this item.
The implementator of this function is responsible for setting and saving the locked state of the track based upon the value of the passed in flag. Also it's the responsible of the implementator to lock it's sub anims if the flag is set to also lock it's subanims. The system itself is responsible to making sure all of it's parents are unlocked when it gets unlocked.
[in] | val | If true the track gets locked, if false the track gets unlocked |
[in] | anim | A pointer to the reference target that contains this interface. |
[in] | client | A pointer to the parent of this interface. |
[in] | subNum | The subanim index of this track. |
Implemented in ILockedTrackImp.
virtual bool GetLocked | ( | bool | checkOverride =
true |
) | const [pure virtual] |
Return whether or not the track is locked.
[in] | checkOverride | If true we check the overrides first before testing to see if the track is locked, if false then we don't check the override state and rather just check the state of the locked item by itself. |
Implemented in ILockedTrackImp.
virtual bool IsComponent | ( | ) | [inline, virtual] |
Returns whether or not the object is a component Returns whether or not an object is a component.
A component is an object that when locked gets replaced by a wrapper object that hides the existing object inside it. Lockable Modifiers and Materials may be examples of components. Most basic 'tracks' and controllers aren't componenets. Thus the default returns false.
{return false;}