MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 00006 00007 00008 #ifndef _SO_ML_IMAGE_PROPS_ 00009 #define _SO_ML_IMAGE_PROPS_ 00010 00011 #include "SoMLSupportSystem.h" 00012 #include "Inventor/elements/SoMLImageElement.h" 00013 #include <Inventor/nodes/SoSubNode.h> 00014 #include <SoSFMLImage.h> 00015 00016 class SoGLRenderAction; 00017 class SoFieldSensor; 00018 class SoSensor; 00019 00021 class INVENTOR_ML_SUPPORT_API SoMLImageProps : public SoNode 00022 { 00023 typedef SoNode inherited; 00024 00025 SO_NODE_HEADER(SoMLImageProps); 00026 00027 public: 00028 00030 SoSFMLImage image; 00031 00033 SoMLImageProps(); 00034 00035 SoEXTENDER public: 00036 00038 virtual void GLRender(SoGLRenderAction *action); 00039 00040 SoINTERNAL public: 00041 00043 static void initClass(); 00044 00045 protected: 00046 00047 SbMLImageProperties _imgProps; 00048 00050 virtual ~SoMLImageProps(); 00051 00052 static void imageChangedCB(void *data, SoSensor *sensor); 00053 00054 private: 00055 00056 SoFieldSensor *_imageSensor; 00057 }; 00058 00059 #endif // _SO_ML_IMAGE_PROPS_