Stores the current shape hints. More...
#include <Inventor/elements/SoShapeHintsElement.h>
Stores the current shape hints.
This element stores current shape hints. All hints must be set at the same time; to leave any hint as is, use the "AS_IS" enum value.
Hints about faces of shape.
UNKNOWN_FACE_TYPE |
Nothing is known about faces. |
CONVEX |
Faces are all convex. |
FACE_TYPE_AS_IS |
Indicates to set() to leave as is. |
Hints about entire shape.
UNKNOWN_SHAPE_TYPE |
Nothing is known about shape. |
SOLID |
Shape is known to be solid. |
SHAPE_TYPE_AS_IS |
Indicates to set() to leave as is. |
Hints about ordering of face vertices.
UNKNOWN_ORDERING |
No ordering info is known. |
CLOCKWISE |
Vertices are ordered CW around faces. |
COUNTERCLOCKWISE |
Vertices are ordered CCW around faces. |
ORDERING_AS_IS |
Indicates to set() to leave as is. |
static void SoShapeHintsElement::get | ( | SoState * | state, | |
WindingType & | windingType | |||
) | [static] |
Return current shape winding type from the state.
static void SoShapeHintsElement::get | ( | SoState * | state, | |
VertexOrdering & | vertexOrdering, | |||
ShapeType & | shapeType, | |||
FaceType & | faceType | |||
) | [static] |
Returns current shape hints from the state.
static int SoShapeHintsElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoElement.
static SoType SoShapeHintsElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoElement.
static FaceType SoShapeHintsElement::getDefaultFaceType | ( | ) | [inline, static] |
Returns default hint.
static ShapeType SoShapeHintsElement::getDefaultShapeType | ( | ) | [inline, static] |
Returns default hint.
static SbBool SoShapeHintsElement::getDefaultVBOUsage | ( | ) | [inline, static] |
Returns default hint.
static VertexOrdering SoShapeHintsElement::getDefaultVertexOrdering | ( | ) | [inline, static] |
Returns default hint.
static WindingType SoShapeHintsElement::getDefaultWindingType | ( | ) | [inline, static] |
Returns default hint.
Indicates if VBO is used from the state.
virtual void SoShapeHintsElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoElement.
virtual void SoShapeHintsElement::push | ( | SoState * | state | ) | [virtual] |
Push copies the values from the previous element, so set doesn't have to set them if they are set AS_IS.
Reimplemented from SoElement.
Indicates if VBO is used from the state.
static void SoShapeHintsElement::set | ( | SoState * | state, | |
SoNode * | , | |||
WindingType | windingType | |||
) | [inline, static] |
static void SoShapeHintsElement::set | ( | SoState * | state, | |
SoNode * | , | |||
VertexOrdering | vertexOrdering, | |||
ShapeType | shapeType, | |||
FaceType | faceType | |||
) | [inline, static] |
Sets the current shape hints in the state.
static void SoShapeHintsElement::set | ( | SoState * | state, | |
VertexOrdering | vertexOrdering, | |||
ShapeType | shapeType, | |||
FaceType | faceType, | |||
WindingType | windingType, | |||
SbBool | useVBO | |||
) | [static] |
Set shape hints by defining all options.
Sets the current shape hints in the state.
Only for VBO usage.
static void SoShapeHintsElement::set | ( | SoState * | state, | |
WindingType | windingType | |||
) | [static] |
Sets the current shape hints in the state.
Only for the winding type. Call virtual method that subclasses can override.
static void SoShapeHintsElement::set | ( | SoState * | state, | |
VertexOrdering | vertexOrdering, | |||
ShapeType | shapeType, | |||
FaceType | faceType | |||
) | [static] |
Sets the current shape hints in the state.
Calls virtual method that subclasses can override.