MeVisLabToolboxReference
|
00001 #ifndef __SoView2DHintElement_H 00002 #define __SoView2DHintElement_H 00003 //---------------------------------------------------------------------------------- 00004 // **InsertLicense** code 00005 //---------------------------------------------------------------------------------- 00008 00014 //---------------------------------------------------------------------------------- 00015 00016 #include "XVEnterScope.h" 00017 00018 #include <Inventor/elements/SoInt32Element.h> 00019 00020 #include "XVLeaveScope.h" 00021 00024 00026 class SoView2DHintElement : public SoInt32Element { 00027 00028 SO_ELEMENT_HEADER(SoView2DHintElement); 00029 00030 public: 00031 00033 enum RenderMode { 00034 RenderSlices3D=1, 00035 RenderExtensions3D=2 00036 }; 00037 00039 static void initClass(); 00040 00042 virtual void init(SoState *state); 00043 00045 static void set(SoState *state, int renderHint); 00046 00048 static int get(SoState *state); 00049 00051 static bool renderSlices3D(SoState *state) { return (get(state) & RenderSlices3D)!=0; } 00052 00054 static bool renderExtensions3D(SoState *state) { return (get(state) & RenderExtensions3D)!=0; } 00055 00057 static int getDefault() { return 0; } 00058 00059 protected: 00060 virtual ~SoView2DHintElement(); 00061 }; 00062 00063 #endif