MGeometryUtilities Class Reference
#include <MHWGeometryUtilities.h>
Utilities for Viewport 2.0.
This class is a utility class for rendering geometry in Viewport 2.0
Default geometry shapes.
Enumerator |
---|
kDefaultSphere |
Sphere with radius 1, centered at 0,0,0.
|
kDefaultPlane |
Plane with width and height of 1, centered at 0,0,0.
Assuming "Y-Up" orientation: width = x-axis, and height = y-axis.
|
kDefaultCube |
Cube with width, height and depth of 1, centered at 0,0,0.
|
Returns the wireframe color used in Viewport 2.0 for the given DAG path.
- Parameters
-
[in] | path | The DAG path to get wireframe color |
- Returns
- The wireframe color
- apiDirectionalLightShape/apiDirectionalLightShape.cpp, apiMeshShape/apiMeshGeometryOverride.cpp, footPrintManip/footPrintManip.cpp, footPrintNode/footPrintNode.cpp, footPrintNode_GeometryOverride/footPrintNode_GeometryOverride.cpp, footPrintNode_SubSceneOverride/footPrintNode_SubSceneOverride.cpp, gpuCache/gpuCacheDrawOverride.cpp, gpuCache/gpuCacheShapeNode.cpp, rawfootPrintNode/rawfootPrintNode.cpp, squaresNode_noDepthTest/squaresNode_noDepthTest.cpp, and swissArmyManip/swissArmyManip.cpp.
Returns the display status of the given DAG path.
Note that the last selected object will have status kLead instead of kActive and if only one object is selected the status will be kLead.
- Parameters
-
[in] | path | the DAG path to get. |
[out] | returnStatus | Status code. |
- Returns
- Display status for the DAG
- Status Codes:
-
Acquire reference geometry with required buffers.
The user is responsible for releasing the geometry when it is no longer needed, by calling MGeometryUtilities::releaseReferenceGeometry().
- Parameters
-
[in] | shape | The shape of the requested geometry |
[in] | requirements | The list of required index and vertex buffers |
- Returns
- The generated geometry, NULL on failure.
void releaseReferenceGeometry |
( |
MGeometry * |
geometry | ) |
|
|
static |
Release a generated reference geometry.
- Parameters
-
[in] | geometry | The geometry to delete |
const char * className |
( |
| ) |
|
|
static |
Returns the name of this class.
- Returns
- The name of this class.
The documentation for this class was generated from the following files:
- MHWGeometryUtilities.h
- MHWGeometryUtilities.cpp