Cortex
10.0.0-a4
|
#include <PostLoadCallback.h>
Public Member Functions | |
PostLoadCallback () | |
Construct a new callback instance. | |
![]() | |
IE_CORE_DECLAREMEMBERPTR (RefCounted) | |
void | addRef () const |
Add a reference to the current object. | |
void | removeRef () const |
Remove a reference from the current object. | |
RefCount | refCount () const |
Returns the current reference count. | |
Protected Member Functions | |
virtual void | postLoad ()=0 |
To be overridden by derived classes to implement custom behaviour. | |
Protected Attributes | |
PostLoadCallbackData * | m_data |
Friends | |
class | PostLoadCallbackData |
Additional Inherited Members | |
![]() | |
typedef size_t | RefCount |
A base class which executes a callback whenever a Maya scene is opened, referenced, or imported. In the case of opening a scene with many references, care is taken that only one callback is made once the entire scene is loaded, rather than a whole series of callbacks with the scene in various stages of validity. User-defined classes should derive from this, and implement any custom behaviour in the postLoad() method. All Maya callbacks are removed when the instance is deleted.