This reference page is linked to from the following overview topics: Incremental Improvements, Global Function Publishing API Functions.
This class represents the directory of all plug-in classes known to the system.
The plug-in classes are grouped by super class id. The set of classes in each superclass group can be accessed. For each plug-in class, its ClassDesc can be then retrieved. All plug-in classes must have one of the super class ids pre-defined in the 3ds Max SDK. See List of Super Class IDs for a list of these super class ids. All methods of this class are implemented by the system. Clients can retrive the sole instance of ClassDirectory via DllDir::ClassDir() or via ClassDirectory::GetInstance()
#include <plugin.h>
Public Member Functions |
|
CoreExport SubClassList * | GetClassList (SClass_ID superClassID) const |
Accesses a
SubClassList instance that corresponds to all plug-in classes
of a certain super class id. |
|
CoreExport int | Count () const |
Returns the number of
SubClassList instances in the class directory. |
|
CoreExport SubClassList & | operator[] (int i) const |
Accesses the i-th
SubClassList. |
|
CoreExport ClassDesc * | FindClass (SClass_ID superClassID, const Class_ID &classID) const |
Returns a class descriptor that corresponds
to a certain super and class id combination. |
|
CoreExport ClassEntry * | FindClassEntry (SClass_ID superClassID, const Class_ID &classID) const |
Returns a class entry that corresponds to a
certain super and class id combination. |
|
CoreExport int | AddClass (ClassDesc *cdesc, int dllNum, int index, bool load) |
CoreExport int | DeleteClass (ClassDesc *cdesc) |
CoreExport bool | SetUIInfoForSClass (SClass_ID superClassID, SClassUIInfo *uiInfo) |
Allows for providing additional UI related
information pertaining to a superclass. |
|
CoreExport SClassUIInfo * | GetUIInfoForSClass (SClass_ID superClassID) const |
Retrieves additional UI related information
for a given superclass. |
|
ClassDirectory () | |
~ClassDirectory () | |
Static Public Member Functions |
|
static CoreExport ClassDirectory & | GetInstance () |
Retrieves the sole instance of class
ClassDirectory. |
ClassDirectory | ( | ) |
Constructor
~ClassDirectory | ( | ) |
Destructor
static CoreExport ClassDirectory& GetInstance | ( | ) | [static] |
Retrieves the sole instance of class ClassDirectory.
CoreExport SubClassList* GetClassList | ( | SClass_ID | superClassID | ) | const |
Accesses a SubClassList instance that corresponds to all plug-in classes of a certain super class id.
superClassID | - The super class ID |
CoreExport int Count | ( | ) | const |
Returns the number of SubClassList instances in the class directory.
CoreExport SubClassList& operator[] | ( | int | i | ) | const |
Accesses the i-th SubClassList.
i | - Specifies which sub class list to access. Must be in the range [0 and Count()-1]. |
Returns a class descriptor that corresponds to a certain super and class id combination.
superClassID | - The super class id |
classID | - The class id |
CoreExport ClassEntry* FindClassEntry | ( | SClass_ID | superClassID, |
const Class_ID & | classID | ||
) | const |
Returns a class entry that corresponds to a certain super and class id combination.
superClassID | - The super class id |
classID | - The class id |
CoreExport int AddClass | ( | ClassDesc * | cdesc, |
int | dllNum, | ||
int | index, | ||
bool | load | ||
) |
Registers a class descriptor with the class directory.
ClassDesc* | cdesc - Pointer to the class descriptor. If cdesc replaces an
existent class descriptor the system will broadcast a notification:
BroadcastNotification(NOTIFY_CLASSDESC_REPLACED, &cdr); |
int | dllNum - The index of the DllDesc hosting the class descriptor within DllDir |
int | index - The index |
CoreExport int DeleteClass | ( | ClassDesc * | cdesc | ) |
Deletes a class descriptor from the class directory.
CoreExport bool SetUIInfoForSClass | ( | SClass_ID | superClassID, |
SClassUIInfo * | uiInfo | ||
) |
Allows for providing additional UI related information pertaining to a superclass.
Currently this includes a descriptive string, a color, and a method which draws a representative image in a Windows DC.
superClassID | - The super class id the info pertains to |
uiInfo | - A pointer to a SClassUIInfo object that carries the information |
CoreExport SClassUIInfo* GetUIInfoForSClass | ( | SClass_ID | superClassID | ) | const |
Retrieves additional UI related information for a given superclass.
superClassID | - The super class id |