Class LocalModData
See Also: Class ModContext.
class LocalModData : public InterfaceServer
Description:
This class allows a modifier to store application specific data. A reference to a pointer to an instance of this class is passed in to ModifyObject() as part of the ModContext. The value of the pointer starts out as NULL, but the modifier can set it to point at an actual instance of a derived class. When the mod app is deleted, if the pointer is not NULL, the LocalModData will be deleted - the virtual destructor allows this to work.
Methods:
Prototype:
virtual ~LocalModData()
Remarks:
Implemented by the Plug-In.
A plug-in using local data should implement this method to free its local data.
Prototype:
virtual LocalModData *Clone()=0;
Remarks:
Implemented by the Plug-In.
This method is called to allow a plug-in to copy its local data. It is called when the system is copying a ModContext.
Return Value:
The plug-in should return a pointer to a new instance of its LocalModData.