#include <simpmod.h>
Public Member Functions |
|
CoreExport | SimpleOSMToWSMMod2 () |
CoreExport | SimpleOSMToWSMMod2 (INode *node) |
void | GetClassName (MSTR &s) |
Retrieves the name of the plugin class.
|
|
SClass_ID | SuperClassID () |
Retrieves a constant representing the type
of the plugin. |
|
Class_ID | ClassID () |
Retrieves a constant that uniquely
identifies the plugin class. |
|
CoreExport void | DeleteThis () |
Deletes an instance of this class. |
|
CoreExport RefTargetHandle | Clone (RemapDir &remap) |
This method is used by 3ds Max to clone an
object. |
|
CoreExport MCHAR * | GetObjectName () |
CoreExport Deformer & | GetDeformer (TimeValue t, ModContext &mc, Matrix3 &mat, Matrix3 &invmat) |
CoreExport Interval | GetValidity (TimeValue t) |
CoreExport SimpleOSMToWSMMod2 | ( | ) |
CoreExport SimpleOSMToWSMMod2 | ( | INode * | node | ) |
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.
{s=GetObjectName();}
SClass_ID SuperClassID | ( | ) | [inline, virtual] |
Retrieves a constant representing the type of the plugin.
Reimplemented from Modifier.
{return WSM_CLASS_ID;}
Class_ID ClassID | ( | ) | [inline, virtual] |
Retrieves a constant that uniquely identifies the plugin class.
This method must return the unique ID for the plugin class. If two ClassIDs conflict, the system will only load the first conflicting one it finds. A program (gencid.exe) is provided to generate unique class id values.
Reimplemented from Animatable.
{return SIMPLEOSMTOWSM2_CLASSID;}
CoreExport void DeleteThis | ( | ) | [virtual] |
Deletes an instance of this class.
3ds Max calls this method when it needs to delete a plugin object (an instance of a class derived from Animatable). Similarly, plugins that need to delete instances of an Animatable or a class directly derived from it via an Animatable pointer, should call this method instead of calling directly operator delete. Following these rules will ensure that the same memory manager is used to allocate and deallocate the object. The default implementation of this method deletes the object. Plugin instances that never need to be deleted from the heap can overwrite this method to do nothing.
Reimplemented from Animatable.
CoreExport 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.
CoreExport MCHAR* GetObjectName | ( | ) | [virtual] |
Reimplemented from BaseObject.
CoreExport Deformer& GetDeformer | ( | TimeValue | t, |
ModContext & | mc, | ||
Matrix3 & | mat, | ||
Matrix3 & | invmat | ||
) | [virtual] |
Implements SimpleWSMMod.
CoreExport Interval GetValidity | ( | TimeValue | t | ) | [virtual] |
Reimplemented from SimpleWSMMod.