00001 #ifndef COIN_SOFONTSTYLE_H
00002 #define COIN_SOFONTSTYLE_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/nodes/SoSubNode.h>
00028 #include <Inventor/nodes/SoFont.h>
00029 #include <Inventor/fields/SoSFEnum.h>
00030 #include <Inventor/fields/SoSFBitMask.h>
00031
00032 class COIN_DLL_API SoFontStyle : public SoFont {
00033 typedef SoFont inherited;
00034
00035 SO_NODE_HEADER(SoFontStyle);
00036
00037 public:
00038 static void initClass(void);
00039 SoFontStyle(void);
00040
00041 enum Family {
00042 SERIF, SANS, TYPEWRITER
00043 };
00044
00045 enum Style {
00046 NONE, BOLD, ITALIC
00047 };
00048
00049 SoSFEnum family;
00050 SoSFBitMask style;
00051
00052 SbString getFontName(void) const;
00053
00054 virtual void doAction(SoAction * action);
00055 virtual void getBoundingBox(SoGetBoundingBoxAction * action);
00056 virtual void GLRender(SoGLRenderAction * action);
00057 virtual void callback(SoCallbackAction * action);
00058 virtual void pick(SoPickAction * action);
00059 virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
00060
00061 protected:
00062 virtual ~SoFontStyle();
00063 };
00064
00065 #endif // !COIN_SOFONTSTYLE_H