MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 00005 00006 00007 #ifndef _SO_ML_TEXTURE_2_ 00008 #define _SO_ML_TEXTURE_2_ 00009 00010 #include "SoUtilsSystem.h" 00011 #include <Inventor/nodes/SoTexture2.h> 00012 #include <Inventor/fields/SoSFUInt32.h> 00013 #include <SoSFMLImage.h> 00014 00015 class SoSensor; 00016 class SoFieldSensor; 00017 00018 class SOUTILS_EXPORT SoMLTexture2 : public SoTexture2 00019 { 00020 typedef SoTexture2 inherited; 00021 00022 SO_NODE_HEADER(SoMLTexture2); 00023 00024 public: 00025 00027 SoSFMLImage mlImage; 00028 00030 SoSFUInt32 startZ; 00031 00033 SoSFUInt32 startT; 00034 00036 SoSFUInt32 startU; 00037 00039 SoMLTexture2(); 00040 00041 SoINTERNAL public: 00042 00044 static void initClass(); 00045 00046 protected: 00047 00049 virtual ~SoMLTexture2(); 00050 00051 private: 00052 00053 SoFieldSensor *_mlImageSensor; 00054 SoFieldSensor *_startZSensor; 00055 SoFieldSensor *_startTSensor; 00056 SoFieldSensor *_startUSensor; 00057 static void mlImageChangedCB(void *data, SoSensor *sensor); 00058 }; 00059 00060 #endif // _SO_ML_TEXTURE_2_