MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoView2D/SoExtText2.h
Go to the documentation of this file.
00001 #ifndef __SoExtText2_H
00002 #define __SoExtText2_H
00003 //----------------------------------------------------------------------------------
00004 // **InsertLicense** code
00005 //----------------------------------------------------------------------------------
00008 
00016 //----------------------------------------------------------------------------------
00017 
00018 
00019 #ifndef __SoView2DSystem_H
00020 #include "SoView2DSystem.h"
00021 #endif
00022 
00023 #include <XVEnterScope.h>
00024 
00025 #include <Inventor/nodes/SoSubNode.h>
00026 #include <Inventor/nodes/SoShape.h>
00027 #include <Inventor/fields/SoSFString.h>
00028 #include <Inventor/fields/SoSFFloat.h>
00029 #include <Inventor/fields/SoSFEnum.h>
00030 #include <Inventor/fields/SoSFBool.h>
00031 #include <Inventor/fields/SoSFColor.h>
00032 
00033 #include <XVLeaveScope.h>
00034 
00038 class SOVIEW2D_API SoExtText2 : public SoShape {
00039   typedef SoShape inherited;
00040 
00041   SO_NODE_HEADER(SoExtText2);
00042 
00043 public:
00044   static void initClass(void);
00045   SoExtText2(void);
00046 
00048   enum Justification {
00049     LEFT = 1,
00050     RIGHT,
00051     CENTER
00052   };
00053 
00055   enum FontType {
00056     USE_FONTSTYLE = -1,
00057     HELVETICA_10 = 0,
00058     HELVETICA_12,
00059     HELVETICA_18,
00060     TIMES_ROMAN_24
00061   };
00062 
00064   SoSFString string;
00066   SoSFEnum   justification;
00068   SoSFEnum   font;
00070   SoSFColor  color;
00072   SoSFBool   shadow;
00074   SoSFBool   alwaysOnTop;
00075 
00076   // Added by Wolf:Disable clipping planes if off.
00078   SoSFBool   applyClippingPlanes;
00079 
00081   SoSFBool   background;
00083   SoSFColor  backgroundColor;
00085   SoSFFloat  backgroundAlpha;
00086 
00088   virtual void GLRender(SoGLRenderAction * action);
00090   virtual void rayPick(SoRayPickAction * action);
00091 #ifndef SGIOIV
00092 
00093   virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
00094 #endif
00095 
00096 protected:
00097   virtual ~SoExtText2();
00098 
00100   virtual void generatePrimitives(SoAction * action);
00102   virtual void computeBBox(SoAction * action, SbBox3f & box, SbVec3f & center);
00103 
00104 };
00105 
00106 #endif