1#ifndef COIN_SOSHAPEHINTSELEMENT_H
2#define COIN_SOSHAPEHINTSELEMENT_H
27#include <Inventor/elements/SoSubElement.h>
29class COIN_DLL_API SoShapeHintsElement :
public SoElement {
30 typedef SoElement inherited;
32 SO_ELEMENT_HEADER(SoShapeHintsElement);
36 virtual ~SoShapeHintsElement();
58 virtual void init(SoState * state);
59 virtual void push(SoState * state);
60 virtual void pop(SoState * state,
const SoElement * prevtopelement);
62 virtual SbBool
matches(
const SoElement * element)
const;
65 static void set(SoState *
const state, SoNode *
const node,
66 const VertexOrdering vertexOrdering,
67 const ShapeType shapeType,
const FaceType faceType);
68 static void set(SoState *
const state,
69 const VertexOrdering vertexOrdering,
70 const ShapeType shapeType,
const FaceType faceType);
71 static void get(SoState *
const state, VertexOrdering & vertexOrdering,
72 ShapeType & shapeType, FaceType & faceType);
74 static VertexOrdering getVertexOrdering(SoState *
const state);
75 static ShapeType getShapeType(SoState *
const state);
76 static FaceType getFaceType(SoState *
const state);
78 static VertexOrdering getDefaultVertexOrdering();
79 static ShapeType getDefaultShapeType();
80 static FaceType getDefaultFaceType();
82 virtual void print(FILE * file)
const;
85 void updateLazyElement(SoState * state);
86 virtual void setElt(VertexOrdering vertexOrdering,
87 ShapeType shapeType, FaceType faceType);
89 VertexOrdering vertexOrdering;
SoElement is the abstract base class for all elements.
Definition SoElement.h:34
virtual void pop(SoState *state, const SoElement *prevTopElement)
Definition SoElement.cpp:585
virtual SbBool matches(const SoElement *element) const =0
Definition SoElement.cpp:609
static void initClass(void)
Definition SoElement.cpp:507
virtual SoElement * copyMatchInfo(void) const =0
virtual void init(SoState *state)
Definition SoElement.cpp:553
virtual void push(SoState *state)
Definition SoElement.cpp:570
virtual void print(FILE *file=stdout) const
Definition SoElement.cpp:595