MeVisLabToolboxReference
|
00001 #ifndef __SoBackground_H 00002 #define __SoBackground_H 00003 00004 //---------------------------------------------------------------------------------- 00005 // **InsertLicense** code 00006 //---------------------------------------------------------------------------------- 00008 00013 //---------------------------------------------------------------------------------- 00014 00015 #ifndef __SoUtilsSystem_H 00016 #include "SoUtilsSystem.h" 00017 #endif 00018 00019 #include <Inventor/fields/SoSFBool.h> 00020 00021 #ifndef __mlLUTFunction_H 00022 #include "mlLUTFunction.h" 00023 #endif 00024 #ifndef __mlLUTData_H 00025 #include "mlLUTData.h" 00026 #endif 00027 00029 #define SOBACKGROUND_LUT_SIZE 256 00030 00031 //============================================================= 00035 //============================================================= 00036 class SOUTILS_EXPORT SoBackground : public SoNode { 00037 00038 SO_NODE_HEADER(SoBackground); 00039 00040 public: 00042 SoSFBool on; 00043 SoSFBool rotate; 00044 SoSFBool flip; 00045 SoSFBool depthBuffer; 00047 00048 // Constructor 00049 SoBackground(); 00050 00052 static void initClass(); 00053 00055 virtual void GLRender(SoGLRenderAction *action); 00056 00057 protected: 00058 virtual ~SoBackground(); 00059 00060 private: 00062 ml::LUTData<MLuint8>* _lutData; 00063 ml::LUTFunction* _localLut; 00064 }; 00065 00066 #endif