3ds Max C++ API Reference
Loading...
Searching...
No Matches
PluginClassDefPLCB1 Class Reference

#include <C:/adskgit/3dsmax/3dsmax/3dswin/src/maxsdk/include/maxscript/mxsplugin/mxsPlugin.h>

Inheritance diagram for PluginClassDefPLCB1:

Public Member Functions

bool isRegistered (ILoad *iload)
void Register (ILoad *iload)
void Unregister (ILoad *iload)
 PluginClassDefPLCB1 ()
int Priority () override
void proc (ILoad *iload) override
Public Member Functions inherited from PostLoadCallback
virtual INT_PTR Execute (int cmd, ULONG_PTR arg1=0, ULONG_PTR arg2=0, ULONG_PTR arg3=0)
Public Member Functions inherited from InterfaceServer
virtual UtilExport ~InterfaceServer ()
 Destructor.
virtual UtilExport BaseInterfaceGetInterface (Interface_ID id)
template<class InterfaceType>
InterfaceType * GetTypedInterface ()

Public Attributes

Tab< ILoad * > registeredILoads

Additional Inherited Members

Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.

Constructor & Destructor Documentation

◆ PluginClassDefPLCB1()

PluginClassDefPLCB1 ( )
inline
3208{ }

Member Function Documentation

◆ isRegistered()

bool isRegistered ( ILoad * iload)
inline
3189 { int count = registeredILoads.Count();
3190 for (int i = 0; i< count; i++)
3191 if (registeredILoads[i] == iload)
3192 return true;
3193 return false;
3194 }
Tab< ILoad * > registeredILoads
Definition mxsPlugin.h:3187

◆ Register()

void Register ( ILoad * iload)
inline
3196 { registeredILoads.Append(1,&iload);
3197 }

◆ Unregister()

void Unregister ( ILoad * iload)
inline
3199 { int count = registeredILoads.Count();
3200 for (int i = 0; i< count; i++)
3201 if (registeredILoads[i] == iload)
3202 {
3203 registeredILoads.Delete(i,1);
3204 return;
3205 }
3206 }

◆ Priority()

int Priority ( )
inlineoverridevirtual
Remarks
This method determines the order that the various registered callbacks execute. Lower priorities are run first– allowable values {0..10}: 0 is reserved for ParamBlock2PLCB & ParamBlockPLCB. This method is overridden, for example, by the ParmBlock2 PostLoadCallbacks to return 0 so it can execute before the others.
Returns
The allowable return values are 0 to 10, with 5 being the default. 0 is reserved for ParamBlock2PLCB and ParamBlockPLCB..
Default Implementation:
{ return 5; }
Note
Custom Attributes are added to their owner objects in a Priority 6 PostLoadCallback. Object Custom Attributes and object MetaData should be expected only in PostLoadCallbacks with a Priority of 7 or lower. Custom Attributes added in PostLoadCallbacks with a higher Priority may be replaced by the Priority 6 PostLoadCallback.
PostLoadCallbacks that could cause a node evaluation should have a Priority of 7 or lower, as in the evaluation attempts to access a Custom Attribute may occur, for example in a scripted controller. If the PostLoadCallback is just doing something like data collection, it should have a Priority of 10.
PostLoadCallbacks with a priority less than 0 will be treated as 0, greater than 10 will be treated as 10.

Reimplemented from PostLoadCallback.

3209{ return 5; }

◆ proc()

void proc ( ILoad * iload)
inlineoverridevirtual
Remarks
This method will be called when loading is complete.
Parameters
iloadThis class provides methods to load data from disk.

Implements PostLoadCallback.

3212 {
3213#ifdef _DEBUG
3214 if (dump_load_postload_callback_order)
3215 DebugPrint(_M("MXS: PostLoadCallback1 run: thePluginClassDefPLCB1\n"));
3216#endif
3217 MSPluginClass::post_load(iload,0);
3218 Unregister(iload);
3219 }
static void post_load(ILoad *iload, int which)
void Unregister(ILoad *iload)
Definition mxsPlugin.h:3198
UtilExport void DebugPrint(const MCHAR *format,...)
#define _M(x)
Used to wrap string literals.
Definition strbasic.h:67

Member Data Documentation

◆ registeredILoads

Tab<ILoad*> registeredILoads