Public Member Functions

LocalModData Class Reference

This reference page is linked to from the following overview topics: Pipeline Overview, Sub-Object Selection in Edit Modifiers.


Search for all occurrences

Detailed 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.

See also:
Class ModContext

#include <object.h>

Inheritance diagram for LocalModData:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~LocalModData ()
  A plug-in using local data should implement this method to free its local data.
virtual LocalModData Clone ()=0
  This method is called to allow a plug-in to copy its local data.
virtual void *  GetInterface (ULONG id)

Constructor & Destructor Documentation

virtual ~LocalModData ( ) [inline, virtual]

A plug-in using local data should implement this method to free its local data.

{}

Member Function Documentation

virtual LocalModData* Clone ( ) [pure virtual]

This method is called to allow a plug-in to copy its local data.

It is called when the system is copying a ModContext.

Returns:
The plug-in should return a pointer to a new instance of its LocalModData.

Implemented in LagModData.

virtual void* GetInterface ( ULONG  id ) [inline, virtual]
{ return NULL; }  // to access sub-obj selection interfaces, JBW 2/5/99

LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData
LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData LocalModData