MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoView2D/extensions/SoView2DBorder.h
Go to the documentation of this file.
00001 #ifndef __SoView2DBorder_H
00002 #define __SoView2DBorder_H
00003 // **InsertLicense** code
00004 //----------------------------------------------------------------------------------
00007 
00014 //----------------------------------------------------------------------------------
00015 
00016 #ifndef __SoView2DExtension_H
00017 #include "SoView2DExtension.h"
00018 #endif
00019 
00020 
00024 class SOVIEW2D_API SoView2DBorder : public SoView2DExtension {
00025 
00026   SO_NODE_HEADER(SoView2DBorder);
00027 
00028 public:
00030   SoSFFloat borderWidth;
00031   
00033   SoSFBool  evaluateFocus;
00034   
00036   SoSFColor focusColor;
00037   
00039   SoSFFloat focusBorderWidth;
00040   
00041 
00042   static void   initClass();
00043 
00044   SoView2DBorder();
00045 
00047   void   draw(View2DSliceList *dsl, View2DSlice* dslice, int slice);
00048 
00050   virtual void updateValues();
00051 
00052 protected:
00053 
00055   void drawBorder (View2DSlice *dslice, const float *rgbaColor, float width);
00056 
00058   float _rgbFocusColor[4];
00059 
00060 };
00061 
00062 #endif