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.
Reimplemented in SoGLShapeHintsElement.
static SoType SoShapeHintsElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoElement.
Reimplemented in SoGLShapeHintsElement.
static FaceType SoShapeHintsElement::getDefaultFaceType | ( | ) | [static] |
Returns default hint.
static ShapeType SoShapeHintsElement::getDefaultShapeType | ( | ) | [static] |
Returns default hint.
static SbBool SoShapeHintsElement::getDefaultVBOUsage | ( | ) | [static] |
Returns default hint.
static VertexOrdering SoShapeHintsElement::getDefaultVertexOrdering | ( | ) | [static] |
Returns default hint.
static WindingType SoShapeHintsElement::getDefaultWindingType | ( | ) | [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.
Reimplemented in SoGLShapeHintsElement.
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.
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.