00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef COIN_SOSHAPEHINTS_H
00021 #define COIN_SOSHAPEHINTS_H
00022
00023 #include <Inventor/elements/SoShapeHintsElement.h>
00024 #include <Inventor/fields/SoSFEnum.h>
00025 #include <Inventor/fields/SoSFFloat.h>
00026 #include <Inventor/nodes/SoSubNode.h>
00027
00028
00029 class COIN_DLL_API SoShapeHints : public SoNode {
00030 typedef SoNode inherited;
00031
00032 SO_NODE_HEADER(SoShapeHints);
00033
00034 public:
00035 static void initClass(void);
00036 SoShapeHints(void);
00037
00038 enum VertexOrdering {
00039 UNKNOWN_ORDERING = SoShapeHintsElement::UNKNOWN_ORDERING,
00040 CLOCKWISE = SoShapeHintsElement::CLOCKWISE,
00041 COUNTERCLOCKWISE = SoShapeHintsElement::COUNTERCLOCKWISE
00042 };
00043
00044 enum ShapeType {
00045 UNKNOWN_SHAPE_TYPE = SoShapeHintsElement::UNKNOWN_SHAPE_TYPE,
00046 SOLID = SoShapeHintsElement::SOLID
00047 };
00048
00049 enum FaceType {
00050 UNKNOWN_FACE_TYPE = SoShapeHintsElement::UNKNOWN_FACE_TYPE,
00051 CONVEX = SoShapeHintsElement::CONVEX
00052 };
00053
00054 SoSFEnum vertexOrdering;
00055 SoSFEnum shapeType;
00056 SoSFEnum faceType;
00057 SoSFFloat creaseAngle;
00058
00059
00060 virtual void doAction(SoAction * action);
00061 virtual void GLRender(SoGLRenderAction * action);
00062 virtual void callback(SoCallbackAction * action);
00063 virtual void getBoundingBox(SoGetBoundingBoxAction * action);
00064 virtual void pick(SoPickAction * action);
00065
00066 protected:
00067 virtual ~SoShapeHints();
00068 };
00069
00070 #endif // !COIN_SOSHAPEHINTS_H