This method is used by 3ds Max to clone an object.
- See also:
- CloneRefHierarchy(), class RemapDir This method
is called by 3ds Max to have the plugin clone itself. The plug-in's
implementation of this method should copy both the data structure
and all the data residing in the data structure of this reference
target. The plugin should clone all its references as well. Also,
the plug-in's implementation of this method must call BaseClone().
In order for classes derived from this class to clone cleanly, the
Clone
method should just create
the new instance, and then call an implementation of BaseClone
that clones the references and copies any other necessary data. For
example:
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
- Note:
- See the remarks in method BaseClone()
below.
- Parameters:
-
remap |
- A RemapDir instance
used for remapping references during a Clone. |
- Returns:
- A pointer to the cloned item.
Reimplemented from MSPluginAtmos.