MeVisLabToolboxReference
|
00001 #ifndef __SoMLTransform_H 00002 #define __SoMLTransform_H 00003 //---------------------------------------------------------------------------------- 00004 // **InsertLicense** code 00005 //---------------------------------------------------------------------------------- 00007 00012 //---------------------------------------------------------------------------------- 00013 00014 #ifndef __InventorWrapperDllInit_H 00015 #include "InventorWrapperDllInit.h" 00016 #endif 00017 00018 #include "XVEnterScope.h" 00019 00020 #include <Inventor/nodes/SoSubNode.h> 00021 #include <Inventor/nodes/SoMatrixTransform.h> 00022 #include <Inventor/sensors/SoFieldSensor.h> 00023 #include <Inventor/fields/SoSFBool.h> 00024 00025 #include "XVLeaveScope.h" 00026 00027 #ifndef __SoSFMLImage_H 00028 #include "SoSFMLImage.h" 00029 #endif 00030 00031 //============================================================= 00034 //============================================================= 00035 class INVENTORWRAPPER_API SoMLTransform : public SoMatrixTransform { 00036 00037 SO_NODE_HEADER(SoMLTransform); 00038 00039 public: 00041 SoSFBool inverse; 00043 SoSFBool shift; 00045 SoSFMLImage image; 00046 00047 static void initClass(); 00048 00049 SoMLTransform(); 00050 00051 static void imageChangedCB(void *data, SoSensor* a); 00052 void imageChanged(); 00053 00054 static void matChangedCB(void *data, SoSensor* a); 00055 void matChanged(); 00056 00057 private: 00058 virtual ~SoMLTransform(); 00059 00060 SoFieldSensor* _sensor; 00061 SoFieldSensor* _inverseSensor; 00062 SoFieldSensor* _shiftSensor; 00063 SoFieldSensor* _matsensor; 00064 }; 00065 #endif