#include <mxsPlugin.h>
Public Member Functions |
|
MSPluginTrackViewUtility () | |
MSPluginTrackViewUtility (MSPluginClass *pc, BOOL loading) | |
~MSPluginTrackViewUtility () | |
virtual void | BeginEditParams (Interface *ip, ITVUtility *iu) |
virtual void | EndEditParams (Interface *ip, ITVUtility *iu) |
virtual void | TrackSelectionChanged () |
virtual void | NodeSelectionChanged () |
virtual void | KeySelectionChanged () |
virtual void | TimeSelectionChanged () |
virtual void | MajorModeChanged () |
virtual void | TrackListChanged () |
virtual int | FilterAnim (Animatable *anim, Animatable *client, int subNum) |
virtual HWND | AddRollupPage (HINSTANCE hInst, MCHAR *dlgTemplate, DLGPROC dlgProc, MCHAR *title, LPARAM param=0, DWORD flags=0, int category=ROLLUP_CAT_STANDARD) |
virtual void | DeleteRollupPage (HWND hRollup) |
virtual IRollupWindow * | GetRollupWindow () |
virtual ReferenceTarget * | get_delegate () |
void | DeleteThis () |
void | GetClassName (MSTR &s) |
Retrieves the name of the plugin class.
|
|
Class_ID | ClassID () |
void | FreeCaches () |
int | NumSubs () |
Animatable * | SubAnim (int i) |
MSTR | SubAnimName (int i) |
int | NumParamBlocks () |
IParamBlock2 * | GetParamBlock (int i) |
IParamBlock2 * | GetParamBlockByID (BlockID id) |
virtual void * | GetInterface (ULONG id) |
Inherited from Animatable. |
|
RefResult | NotifyRefChanged (Interval changeInt, RefTargetHandle hTarget, PartID &partID, RefMessage message) |
int | NumRefs () |
Returns the total number of references this
ReferenceMaker can hold. |
|
RefTargetHandle | GetReference (int i) |
Returns the 'i-th' reference. |
|
RefTargetHandle | Clone (RemapDir &remap) |
This method is used by 3ds Max to clone an
object. |
|
Static Public Member Functions |
|
static TrackViewUtility * | create (MSPluginClass *pc, BOOL loading) |
Public Attributes |
|
Interface * | ip |
ITVUtility * | iu |
Protected Member Functions |
|
virtual void | SetReference (int i, RefTargetHandle rtarg) |
Stores a
ReferenceTarget as its 'i-th' reference`. |
MSPluginTrackViewUtility | ( | ) | [inline] |
{ }
MSPluginTrackViewUtility | ( | MSPluginClass * | pc, |
BOOL | loading | ||
) |
~MSPluginTrackViewUtility | ( | ) | [inline] |
{ DeleteAllRefsFromMe(); }
virtual void BeginEditParams | ( | Interface * | ip, |
ITVUtility * | iu | ||
) | [virtual] |
Reimplemented from TrackViewUtility.
virtual void EndEditParams | ( | Interface * | ip, |
ITVUtility * | iu | ||
) | [virtual] |
Reimplemented from TrackViewUtility.
virtual void TrackSelectionChanged | ( | ) | [virtual] |
Reimplemented from TrackViewUtility.
virtual void NodeSelectionChanged | ( | ) | [virtual] |
Reimplemented from TrackViewUtility.
virtual void KeySelectionChanged | ( | ) | [virtual] |
Reimplemented from TrackViewUtility.
virtual void TimeSelectionChanged | ( | ) | [virtual] |
Reimplemented from TrackViewUtility.
virtual void MajorModeChanged | ( | ) | [virtual] |
Reimplemented from TrackViewUtility.
virtual void TrackListChanged | ( | ) | [virtual] |
Reimplemented from TrackViewUtility.
virtual int FilterAnim | ( | Animatable * | anim, |
Animatable * | client, | ||
int | subNum | ||
) | [virtual] |
Reimplemented from TrackViewUtility.
static TrackViewUtility* create | ( | MSPluginClass * | pc, |
BOOL | loading | ||
) | [static] |
virtual HWND AddRollupPage | ( | HINSTANCE | hInst, |
MCHAR * | dlgTemplate, | ||
DLGPROC | dlgProc, | ||
MCHAR * | title, | ||
LPARAM | param = 0 , |
||
DWORD | flags = 0 , |
||
int | category =
ROLLUP_CAT_STANDARD |
||
) | [virtual] |
Implements MSPlugin.
virtual void DeleteRollupPage | ( | HWND | hRollup | ) | [virtual] |
Implements MSPlugin.
virtual IRollupWindow* GetRollupWindow | ( | ) | [virtual] |
Implements MSPlugin.
virtual ReferenceTarget* get_delegate | ( | ) | [inline, virtual] |
void DeleteThis | ( | ) | [inline, virtual] |
Implements TrackViewUtility.
{ MSPlugin::DeleteThis(); }
void GetClassName | ( | MSTR & | s | ) | [inline, virtual] |
Retrieves the name of the plugin class.
This name is usually used internally for debugging purposes. For Material plug-ins this method is used to put up the material "type" name in the Material Editor.
s | Reference to a string filled in with the name of the plugin class |
Reimplemented from ReferenceTarget.
Class_ID ClassID | ( | ) | [inline, virtual] |
void FreeCaches | ( | ) | [inline, virtual] |
Reimplemented from Animatable.
{ }
int NumSubs | ( | ) | [inline, virtual] |
Reimplemented from Animatable.
Animatable* SubAnim | ( | int | i | ) | [inline, virtual] |
i | This is the index of the sub-anim to return. |
Reimplemented from Animatable.
{ return pblocks[i]; }
MSTR SubAnimName | ( | int | i | ) | [inline, virtual] |
i | The index of the parameter name to return |
Reimplemented from Animatable.
{ return pblocks[i]->GetLocalName(); }
int NumParamBlocks | ( | ) | [inline, virtual] |
Reimplemented from Animatable.
IParamBlock2* GetParamBlock | ( | int | i | ) | [inline, virtual] |
i | The zero based index of the ParamBlock2 to return. |
Reimplemented from Animatable.
{ return pblocks[i]; }
IParamBlock2* GetParamBlockByID | ( | BlockID | id | ) | [inline] |
virtual void* GetInterface | ( | ULONG | id | ) | [inline, virtual] |
Inherited from Animatable.
Returns a pointer to the interface.
id | - The id of the interface. |
Reimplemented from ReferenceTarget.
{ if (id == I_MAXSCRIPTPLUGIN) return (MSPlugin*)this; else return ReferenceTarget::GetInterface(id); }
RefResult NotifyRefChanged | ( | Interval | changeInt, |
RefTargetHandle | hTarget, | ||
PartID & | partID, | ||
RefMessage | message | ||
) | [inline] |
int NumRefs | ( | ) | [virtual] |
Returns the total number of references this ReferenceMaker can hold.
The plugin implements this method to indicate the total number of of references it can make. This includes all references whether they are NULL (inactive) or non-NULL (active) at the time when this method is called. A plugin can hold a variable number of references, thus the return value of this method is not to be cached and reused by client code.
Reimplemented from ReferenceMaker.
RefTargetHandle GetReference | ( | int | i | ) | [virtual] |
Returns the 'i-th' reference.
The plugin implements this method to return its 'i-th' reference. The plug-in simply keeps track of its references using an integer index for each one. This method is normally called by the system.
i | - The index of the reference to retrieve. Valid values are from 0 to NumRefs()-1. |
Reimplemented from ReferenceMaker.
virtual void SetReference | ( | int | i, |
RefTargetHandle | rtarg | ||
) | [protected, virtual] |
Stores a ReferenceTarget as its 'i-th' reference`.
The plugin implements this method to store the reference handle passed to it as its 'i-th' reference. In its implementation of this method, the plugin should simply assign the reference handle passed in as a parameter to the member variable that holds the 'i-th' reference. Other reference handling methods such as ReferenceMaker::DeleteReference(), or ReferenceMaker::ReplaceReference() should not be called from within this method. The plugin itself or other plugins should not call this method directly. The system will call this method when a new reference is created or an existing one is replaced by calling ReferenceMaker::ReplaceReference().
i | - The index of the reference to store. Valid values are from 0 to NumRefs()-1. |
rtarg | - The reference handle to store. |
Reimplemented from ReferenceMaker.
RefTargetHandle Clone | ( | RemapDir & | remap | ) | [virtual] |
This method is used by 3ds Max to clone an object.
class MyDerivedPlugin : public MyBasePlugin { const int MY_REFERENCE = 1; ReferenceTarget* Clone(RemapDir& remap) { ReferenceTarget* result = new MyDerivedPlugin(); BaseClone(this, result, remap); return result; } void BaseClone(ReferenceTarget* from, ReferenceTarget* to, RemapDir& remap) { if (!to || !from || from == to) return; MyBasePlugin::BaseClone(from, to, remap); to->ReplaceReference(MY_REFERENCE, remap->CloneRef(from->GetReference(MY_REFERENCE))); } };
This method should not be directly called by plug-ins. Instead, either RemapDir::CloneRef() or CloneRefHierachy() should be used to perform cloning. These methods ensure that the mapping from the original object to the clone is added to the RemapDir used for cloning, which may be used during backpatch operations
remap | - A RemapDir instance used for remapping references during a Clone. |
Reimplemented from ReferenceTarget.