MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoShader/Inventor/nodes/SoShaderParameterMLImageProps.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 
00007 
00008 
00009 #ifndef  _SO_SHADER_PARAMETER_ML_IMAGE_PROPS_
00010 #define  _SO_SHADER_PARAMETER_ML_IMAGE_PROPS_
00011 
00012 #include "SoShaderSystem.h"
00013 #include "Inventor/nodes/SoUniformShaderParameter.h"
00014 
00015 class SoSensor;
00016 class SoFieldSensor;
00017 
00019 class INVENTOR_SHADER_API SoShaderParameterMLImageProps : public SoUniformShaderParameter
00020 {
00021    typedef SoUniformShaderParameter inherited;
00022 
00023    SO_NODE_HEADER(SoShaderParameterMLImageProps);
00024   
00025    public:
00026 
00028       SoShaderParameterMLImageProps();
00029   
00030    SoINTERNAL public:
00031   
00033       static void initClass();
00034       
00036       virtual void updateParameter(SoUniformParameterBase *uniformBase, SoState *state);
00037 
00038    protected:
00039 
00040       virtual ~SoShaderParameterMLImageProps();
00041       
00042       SbString   _sizeUniformName;
00043       SbString   _voxelSizeUniformName;
00044       SbString   _rangeUniformName;
00045 
00046    private:
00047         
00048       SoFieldSensor *_nameSensor;
00049       
00050       static void nameChangedCB(void *data, SoSensor *sensor);
00051 };
00052 
00053 #endif  // _SO_SHADER_PARAMETER_ML_IMAGE_PROPS_