class MTextureEditorDrawInfo

Jump to documentation

Drawing state for drawing to the UV texture window with custom shapes. See MPxSurfaceShapeUI (OpenMayaUI) for more information.

public members:

MTextureEditorDrawInfo ()
MTextureEditorDrawInfo ( const MTextureEditorDrawInfo & in )
virtual ~MTextureEditorDrawInfo ()
enum DrawingFunction
kDrawFunctionFirst
kDrawWireframe
Draw wireframe only (default)
kDrawEverything
Draw vertices, uvs, faces, and edges
kDrawVertexForSelect
Draw vertices for selection
kDrawEdgeForSelect
Draw edges for selection
kDrawFacetForSelect
Draw faces for selection
kDrawUVForSelect
Draw uvs for selection
kDrawFunctionLast
DrawingFunction drawingFunction () const
void setDrawingFunction ( DrawingFunction func )

Documentation

Description

This class is used by drawUV method of MPxSurfaceShapeUI to specify the current UV drawing state for a user defined shape. API users must override the canDrawUV method on MPxSurfaceShapeUI to recieve drawUV calls. The only situation where the drawing style can change is during a selection event. However, selection events are currently not passed onto the API user. Therefore, most of the functionality in this class is place holder for future work.

See MPxSurfaceShapeUI for more information.

Functions

MTextureEditorDrawInfo:: MTextureEditorDrawInfo ()

Description

Constructor.

MTextureEditorDrawInfo:: MTextureEditorDrawInfo ( const MTextureEditorDrawInfo & other )

Description

Copy constructor.

Arguments

  • other texture draw info object to copy

MTextureEditorDrawInfo:: ~MTextureEditorDrawInfo ()

Description

Destructor.

MTextureEditorDrawInfo::DrawingFunction MTextureEditorDrawInfo:: drawingFunction () const

Description

Indicates the current drawing state for a drawUV method call.

Arguments

None.

Return Values

The current drawing function.

void MTextureEditorDrawInfo:: setDrawingFunction ( MTextureEditorDrawInfo::DrawingFunction func )

Description

Sets the current drawing state. Currently the API user is unable to set these values. All drawing state values are determined internally and passed onto the API programmer.

Arguments

  • func drawing function.

Return Values

None.

This class has no child classes.


Autodesk® Maya® 2008 © 1997-2007 Autodesk, Inc. All rights reserved. doc++ Copyright