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

#include <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 void proc (ILoad *iload)=0
 
virtual int Priority ()
 
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
3238{ }

Member Function Documentation

◆ isRegistered()

bool isRegistered ( ILoad iload)
inline
3219 { int count = registeredILoads.Count();
3220 for (int i = 0; i< count; i++)
3221 if (registeredILoads[i] == iload)
3222 return true;
3223 return false;
3224 }
Tab< ILoad * > registeredILoads
Definition: mxsPlugin.h:3217
int Count() const
Retrieves the number of items in the Tab.
Definition: tab.h:219

◆ Register()

void Register ( ILoad iload)
inline
3226 { registeredILoads.Append(1,&iload);
3227 }
int Append(int num, T *el, int allocExtra=0)
Appends items at the end of the Tab.
Definition: tab.h:313

◆ Unregister()

void Unregister ( ILoad iload)
inline
3229 { int count = registeredILoads.Count();
3230 for (int i = 0; i< count; i++)
3231 if (registeredILoads[i] == iload)
3232 {
3234 return;
3235 }
3236 }
int Delete(int start, int num)
Deletes items from the Tab.
Definition: tab.h:322

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

3239{ 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.

3242 {
3243#ifdef _DEBUG
3244 if (dump_load_postload_callback_order)
3245 DebugPrint(_M("MXS: PostLoadCallback1 run: thePluginClassDefPLCB1\n"));
3246#endif
3247 MSPluginClass::post_load(iload,0);
3248 Unregister(iload);
3249 }
static void post_load(ILoad *iload, int which)
void Unregister(ILoad *iload)
Definition: mxsPlugin.h:3228
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