00001 #ifndef COIN_SODRAWSTYLE_H
00002 #define COIN_SODRAWSTYLE_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/elements/SoDrawStyleElement.h>
00028 #include <Inventor/fields/SoSFEnum.h>
00029 #include <Inventor/fields/SoSFFloat.h>
00030 #include <Inventor/fields/SoSFUShort.h>
00031 #include <Inventor/nodes/SoSubNode.h>
00032
00033 class COIN_DLL_API SoDrawStyle : public SoNode {
00034 typedef SoNode inherited;
00035
00036 SO_NODE_HEADER(SoDrawStyle);
00037
00038 public:
00039 static void initClass(void);
00040 SoDrawStyle(void);
00041
00042 enum Style {
00043 FILLED = SoDrawStyleElement::FILLED,
00044 LINES = SoDrawStyleElement::LINES,
00045 POINTS = SoDrawStyleElement::POINTS,
00046 INVISIBLE = SoDrawStyleElement::INVISIBLE
00047 };
00048
00049 SoSFEnum style;
00050 SoSFFloat pointSize;
00051 SoSFFloat lineWidth;
00052 SoSFUShort linePattern;
00053
00054 virtual void doAction(SoAction * action);
00055 virtual void GLRender(SoGLRenderAction * action);
00056 virtual void callback(SoCallbackAction * action);
00057
00058 protected:
00059 virtual ~SoDrawStyle();
00060 };
00061
00062 #endif // !COIN_SODRAWSTYLE_H