MPxComponentConverter Class Reference
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.
Maya calls this function to allow the converter to initialize itself for the selection on the given render item.
|[in]||renderItem||The render item. |
Maya calls this function for every selection hit on the render item.
The intersection gives information on the component that was hit.
|[in]||intersection||The selection intersection. |
Once all of the geometry hits have been passed to the converter through calls to addIntersection(), Maya will call this method to retrieve the components corresponding to those hits.
- The component selection.
Maya calls this function to allow the converter to specify the type of components it can handle.
- The selection mask.
|const char * className
Returns the name of this class.
- Name of this class.
The documentation for this class was generated from the following files: