MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 00006 00007 00008 #ifndef _SO_ML_SAMPLER_1D_ 00009 #define _SO_ML_SAMPLER_1D_ 00010 00011 #include "SoShaderSystem.h" 00012 #include "Inventor/nodes/SoMLSampler.h" 00013 #include <Inventor/SbLinear.h> 00014 #ifdef MEVISLAB 00015 #include <mlGLResources.h> 00016 #endif 00017 00019 class INVENTOR_SHADER_API SoMLSampler1D : public SoMLSampler 00020 { 00021 typedef SoMLSampler inherited; 00022 00023 SO_NODE_HEADER(SoMLSampler1D); 00024 00025 public: 00026 00028 SoSFUInt32 startY; 00029 00031 SoSFUInt32 startZ; 00032 00034 SoMLSampler1D(); 00035 00036 00037 SoINTERNAL public: 00038 00040 static void initClass(); 00041 00042 00043 protected: 00044 00046 virtual ~SoMLSampler1D(); 00047 00049 virtual void getSubimageProperties(XVImageSize inputSize, XVImageSize &subimageSize, XVImageSize &subimagePosition); 00050 00051 private: 00052 00053 SoFieldSensor *_startYSensor; 00054 SoFieldSensor *_startZSensor; 00055 }; 00056 00057 #endif // _SO_ML_SAMPLER_1D_