C++ API Reference

Virtual base class for user data caching. More...

#include <MUserData.h>

Public Member Functions

 MUserData (bool deleteAfterUse)
 Deprecated in 2022.0 More...
 
 MUserData ()
 Construct an MUserData.
 
virtual ~MUserData ()
 Destructor.
 
bool deleteAfterUse ()
 Deprecated in 2022.0 More...
 
void setDeleteAfterUse (bool shouldDelete)
 Deprecated in 2022.0 More...
 

Static Public Member Functions

static const char * className ()
 Returns the name of this class. More...
 

Detailed Description

Constructor & Destructor Documentation

OPENMAYA_MAJOR_NAMESPACE_OPEN MUserData ( bool  deleteAfterUse)

Deprecated in 2022.0

Construct an MUserData.

Deprecated:
Please use MUserData() instead. MUserData should be managed with MSharedPtr<MUserData>.
2022.0:
Deprecated in this version.
Parameters
[in]deleteAfterUseIf true, this user data will be deleted immediately after use, instead of being cached until the owning object is deleted.

Member Function Documentation

bool deleteAfterUse ( )

Deprecated in 2022.0

Returns whether or not this user data should be deleted immediately after use instead of being maintained until the internal owning object is deleted.

Deprecated:
Deallocation after use should be managed via MSharedPtr<MUserData>.
2022.0:
Deprecated in this version.
Returns
True if this user data should be deleted after use.
void setDeleteAfterUse ( bool  shouldDelete)

Deprecated in 2022.0

Sets whether or not this user data should be deleted immediately after use instead of being maintained until the internal owning object is deleted.

Deprecated:
Deallocation after use should be managed via MSharedPtr<MUserData>.
2022.0:
Deprecated in this version.

Setting this to false may allow the data to be reused in some situations. For example, if the MUserData returned by an MPxDrawOverride instance's prepareForDraw() method has its delete-after-use set to false, then Maya will retain the data between draws of that object, passing it back to the instance for reuse on subsequent draws.

Parameters
[in]shouldDeleteIf true this user data will be deleted after use
const char * className ( )
static

Returns the name of this class.

Returns
Name of this class.

The documentation for this class was generated from the following files: