C++ API Reference
|
This method is obsolete. More...
#include <MGeometryPrimitive.h>
Public Types | |
enum | DrawPrimitiveType { kInvalidIndexType = 0, kPoints, kLines, kLineStrip, kLineLoop, kTriangles, kTriangleStrip, kTriangleFan, kQuads, kQuadStrip, kPolygon, kMaxDrawPrimitiveTypeIndex } |
Specifies the data primitive type constructed by the indexing array. More... | |
Public Member Functions | |
MGeometryPrimitive (const MGeometryPrimitive &other) | |
Copy constructor. More... | |
~MGeometryPrimitive () | |
Destructor. More... | |
int | uniqueID () const |
Return the per session unique identifier. More... | |
DrawPrimitiveType | drawPrimitiveType () const |
Get the data type for the data. More... | |
unsigned int | elementCount () const |
Return element count. More... | |
MGeometryData::ElementType | dataType () const |
Return element data type. More... | |
const void * | data () const |
Retrieve a pointer to the internal data. More... | |
Friends | |
class | MGeometryLegacy |
class | MVaryingParameter |
class | MHardwareRenderer |
This method is obsolete.
MGeometryPrimitive is a class describes the topology used for accessing MGeometryData.
Topology is specified as a set of index values which references into data elements in an MGeometryData. Index values can be assumed to be stored in contiguous memory.
A "draw primitive type" indicates the format of the indexing as follows:
Internal Maya data which is passed to the user via this class is always assumed to be non-modifiable. If modified, stability cannot be ensured.
enum DrawPrimitiveType |
Specifies the data primitive type constructed by the indexing array.
OPENMAYA_MAJOR_NAMESPACE_OPEN MGeometryPrimitive | ( | const MGeometryPrimitive & | other | ) |
Copy constructor.
[in] | other | MGeometryPrimitive to copy. |
The internal data pointer is copied and its reference count incremented.
~MGeometryPrimitive | ( | ) |
Destructor.
Class destructor.
int uniqueID | ( | ) | const |
Return the per session unique identifier.
MGeometryPrimitive::DrawPrimitiveType drawPrimitiveType | ( | ) | const |
Get the data type for the data.
unsigned int elementCount | ( | ) | const |
Return element count.
MGeometryData::ElementType dataType | ( | ) | const |
Return element data type.
const void * data | ( | ) | const |
Retrieve a pointer to the internal data.