Base class for user defined component converter.
More...
#include <MPxComponentConverter.h>
Base class for user defined component converter.
Implementations of MPxComponentConverter must be registered with Maya through MDrawRegistry.
MPxComponentConverters are registered with a unique render item name. A registered MPxComponentConverter will be used to perform custom viewport 2.0 selection.
They are used to convert selection intersection data to a list of object components (MFnComponent), by matching the index buffer positions (MIntersection::index()) to valid component ids.
The same converter can be registered against different render item name, meaning that different render items can share the same component converter.
- Examples:
- apiMeshShape/apiMeshGeometryOverride.cpp, and apiMeshShape/apiMeshSubSceneOverride.cpp.
Maya calls this function to allow the converter to initialize itself for the selection on the given render item.
- Parameters
-
[in] | renderItem | The render item. |
- Examples:
- apiMeshShape/apiMeshGeometryOverride.cpp.
Maya calls this function for every selection hit on the render item.
The intersection gives information on the component that was hit.
- Parameters
-
[in] | intersection | The selection intersection. |
- Examples:
- apiMeshShape/apiMeshGeometryOverride.cpp.
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:
- MPxComponentConverter.h
- MPxComponentConverter.cpp