Class SoShapeHintsElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoShapeHintsElement
-
public class SoShapeHintsElement extends SoElement
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:
SoShapeHints
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoShapeHintsElement.FaceTypes
Hints about faces of shape.static class
SoShapeHintsElement.ShapeTypes
Hints about entire shape.static class
SoShapeHintsElement.VertexOrderings
Hints about ordering of face vertices.static class
SoShapeHintsElement.WindingTypes
Hints 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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SoShapeHintsElement.WindingTypes
get(SoState state)
Return current shape winding type from the state.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9300.static SoShapeHintsElement.FaceTypes
getDefaultFaceType()
Returns default hint.static SoShapeHintsElement.ShapeTypes
getDefaultShapeType()
Returns default hint.static boolean
getDefaultVBOUsage()
Returns default hint.static SoShapeHintsElement.VertexOrderings
getDefaultVertexOrdering()
Returns default hint.static SoShapeHintsElement.WindingTypes
getDefaultWindingType()
Returns default hint.static boolean
isVBOUsed(SoState state)
Indicates if VBO is used from the state.void
push(SoState state)
Push copies the values from the previous element, so set doesn't have to set them if they are set AS_IS.static void
set(SoState state, boolean useVBO)
Sets the current shape hints in the state.static void
set(SoState state, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType)
Sets the current shape hints in the state.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.static void
set(SoState state, SoShapeHintsElement.WindingTypes windingType)
Sets the current shape hints in the state.static void
set(SoState state, SoNode name_21737, boolean useVBO)
Indicates if VBO is used from the state.static void
set(SoState state, SoNode name_21729, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType)
Sets the current shape hints in the state.static void
set(SoState state, SoNode name_21734, SoShapeHintsElement.WindingTypes windingType)
-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
set
public static void set(SoState state, SoNode name_21729, SoShapeHintsElement.VertexOrderings vertexOrdering, SoShapeHintsElement.ShapeTypes shapeType, SoShapeHintsElement.FaceTypes faceType)
Sets the current shape hints in the state.
-
push
public void push(SoState state)
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.
-
set
public static void set(SoState state, boolean useVBO)
Sets the current shape hints in the state. Only for VBO usage.
-
getClassStackIndex
@Deprecated public static int getClassStackIndex()
Deprecated.As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
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
public static void set(SoState state, SoShapeHintsElement.WindingTypes windingType)
Sets the current shape hints in the state. Only for the winding type. Call virtual method that subclasses can override.
-
getDefaultShapeType
public static SoShapeHintsElement.ShapeTypes getDefaultShapeType()
Returns default hint.
-
getDefaultFaceType
public static SoShapeHintsElement.FaceTypes getDefaultFaceType()
Returns default hint.
-
getDefaultVertexOrdering
public static SoShapeHintsElement.VertexOrderings getDefaultVertexOrdering()
Returns default hint.
-
getDefaultVBOUsage
public static boolean getDefaultVBOUsage()
Returns default hint.
-
getDefaultWindingType
public static SoShapeHintsElement.WindingTypes getDefaultWindingType()
Returns default hint.
-
isVBOUsed
public static boolean isVBOUsed(SoState state)
Indicates if VBO is used from the state.
-
set
public static void set(SoState state, SoNode name_21737, boolean useVBO)
Indicates if VBO is used from the state.
-
set
public static void set(SoState state, SoNode name_21734, SoShapeHintsElement.WindingTypes windingType)
-
get
public static SoShapeHintsElement.WindingTypes get(SoState state)
Return current shape winding type from the state.
-
-