Cortex  10.0.0-a4
Public Member Functions | List of all members
IECoreMaya::DisplayStyle Class Reference

#include <DisplayStyle.h>

Inherits noncopyable.

Public Member Functions

IECoreGL::State * baseState (M3dView::DisplayStyle style, M3dView::LightingMode lightingMode=M3dView::kLightDefault, bool transferCurrentColor=true)
 

Detailed Description

Maya specifies how things should be drawn using the M3dView::DisplayStyle enum, whereas IECoreGL uses State objects to specify the equivalent things (and more). When using IECoreGL to draw within maya nodes it then becomes necessary to translate from the maya definition into an IECoreGL::State object. This class performs that translation. Typically one would be held as member data in a node and baseState() would be called upon in the draw() method.

Member Function Documentation

IECoreGL::State* IECoreMaya::DisplayStyle::baseState ( M3dView::DisplayStyle  style,
M3dView::LightingMode  lightingMode = M3dView::kLightDefault,
bool  transferCurrentColor = true 
)

Returns a base state suitable for representing objects in the the style specified by maya. If setCurrentColor is true then the current gl color is also translated appropriately into the State (for bounding box, wireframe and points modes only).


The documentation for this class was generated from the following file: