Drawing and refresh
The drawing of custom shapes can be done using class deriving from MPxGeometryOverride
, MPxSubSceneOverride
, or MPxDrawOverride
class in Viewport 2.0.
See apiMeshGeometryOverride
class and apiMeshSubSceneOverride
class in the apiMeshShape
example plug-in for an example of drawing custom shapes.
MPxGeometryOverride
MPxGeometryOverride
is the API entry point for defining high level, draw API agnostic support for custom DAG objects in Viewport 2.0. It is relatively simple to work with; but as a result, only limited control of the draw is available.
See more details in the section: Geometry Overrides.
MPxSubSceneOverride
MPxSubSceneOverride
is the API entry point for defining high-level Viewport 2.0 drawing of plug-in DAG objects that require a large number of drawable entities. MPxSubSceneOverride
falls in between MPxDrawOverride
and MPxGeometryOverride
with respect to the amount of control given to the implementation.
See more details in the section: Sub-scene Overrides.
MPxDrawOverride
MPxDrawOverride
is the API entry point for defining low-level drawing of plug-in DAG objects in Viewport 2.0. MPxDrawOverride
allows full control over the entire draw of the object, but as a result the implementation is entirely responsible for the draw.
See more details in the section: Draw Overrides.