Class SoShapeHintsElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoShapeHintsElement
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumHints about faces of shape.static enumHints about entire shape.static enumHints about ordering of face vertices.static enumHints about winding type.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionReturn current shape winding type from the state.static intDeprecated.As of Open Inventor 9.3.0.0.Returns default hint.Returns default hint.static booleanReturns default hint.Returns default hint.Returns default hint.static booleanIndicates if VBO is used from the state.voidPush copies the values from the previous element, so set doesn't have to set them if they are set AS_IS.static voidSets the current shape hints in the state.static voidset(SoState state, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType) Sets the current shape hints in the state.static voidset(SoState state, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType, SoShapeHintsElement.WindingTypes windingType, boolean useVBO) Set shape hints by defining all options.static voidset(SoState state, SoShapeHintsElement.WindingTypes windingType) Sets the current shape hints in the state.static voidIndicates if VBO is used from the state.static voidset(SoState state, SoNode name_21246, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType) Sets the current shape hints in the state.static voidset(SoState state, SoNode name_21251, SoShapeHintsElement.WindingTypes windingType) Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, popMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
set
public static void set(SoState state, SoNode name_21246, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType) Sets the current shape hints in the state. -
push
Push copies the values from the previous element, so set doesn't have to set them if they are set AS_IS. -
set
public static void set(SoState state, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType, SoShapeHintsElement.WindingTypes windingType, boolean useVBO) Set shape hints by defining all options. -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
get
Return current shape winding type from the state. -
set
public static void set(SoState state, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType) Sets the current shape hints in the state. Calls virtual method that subclasses can override. -
set
Sets the current shape hints in the state. Only for VBO usage. -
set
Sets the current shape hints in the state. Only for the winding type. Call virtual method that subclasses can override. -
getDefaultShapeType
Returns default hint. -
getDefaultVBOUsage
public static boolean getDefaultVBOUsage()Returns default hint. -
getDefaultFaceType
Returns default hint. -
getDefaultWindingType
Returns default hint. -
getDefaultVertexOrdering
Returns default hint. -
set
Indicates if VBO is used from the state. -
set
public static void set(SoState state, SoNode name_21251, SoShapeHintsElement.WindingTypes windingType) -
isVBOUsed
Indicates if VBO is used from the state.
-