SoShapeHintsElement Class Reference
[Elements]

Stores the current shape hints. More...

#include <Inventor/elements/SoShapeHintsElement.h>

Inheritance diagram for SoShapeHintsElement:
SoElement SoTypedObject SoGLShapeHintsElement

List of all members.

Public Types

enum  VertexOrdering {
  UNKNOWN_ORDERING,
  CLOCKWISE,
  COUNTERCLOCKWISE,
  ORDERING_AS_IS
}
enum  ShapeType {
  UNKNOWN_SHAPE_TYPE,
  SOLID,
  SHAPE_TYPE_AS_IS
}
enum  FaceType {
  UNKNOWN_FACE_TYPE,
  CONVEX,
  FACE_TYPE_AS_IS
}
enum  WindingType {
  NO_WINDING_TYPE,
  ODD_TYPE,
  NON_ZERO_TYPE,
  POSITIVE_TYPE,
  NEGATIVE_TYPE,
  ABS_GEQ_TWO_TYPE
}

Public Member Functions

virtual void push (SoState *state)
virtual void print (FILE *fp) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, VertexOrdering vertexOrdering, ShapeType shapeType, FaceType faceType)
static void set (SoState *state, WindingType windingType)
static void set (SoState *state, SbBool useVBO)
static void set (SoState *state, SoNode *, VertexOrdering vertexOrdering, ShapeType shapeType, FaceType faceType)
static void set (SoState *state, SoNode *, WindingType windingType)
static void set (SoState *state, SoNode *, SbBool useVBO)
static void get (SoState *state, VertexOrdering &vertexOrdering, ShapeType &shapeType, FaceType &faceType)
static void get (SoState *state, WindingType &windingType)
static SbBool isVBOUsed (SoState *state)
static VertexOrdering getDefaultVertexOrdering ()
static ShapeType getDefaultShapeType ()
static FaceType getDefaultFaceType ()
static WindingType getDefaultWindingType ()
static SbBool getDefaultVBOUsage ()

Detailed Description

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


Member Enumeration Documentation

Hints about faces of shape.

Enumerator:
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.

Enumerator:
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.

Enumerator:
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.

Hints about winding type.

Enumerator:
NO_WINDING_TYPE 

No hole.

ODD_TYPE 
NON_ZERO_TYPE 
POSITIVE_TYPE 
NEGATIVE_TYPE 
ABS_GEQ_TWO_TYPE 

Member Function Documentation

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.

static SbBool SoShapeHintsElement::isVBOUsed ( SoState state  )  [static]

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.

static void SoShapeHintsElement::set ( SoState state,
SoNode ,
SbBool  useVBO 
) [inline, static]

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,
SbBool  useVBO 
) [static]

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.


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

Open Inventor Toolkit reference manual, generated on 11 Nov 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/