MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoShader/Inventor/nodes/SoMLSampler2D.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 
00006 
00007 
00008 #ifndef  _SO_ML_SAMPLER_2D_
00009 #define  _SO_ML_SAMPLER_2D_
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 SoMLSampler2D : public SoMLSampler
00020 {
00021    typedef SoMLSampler inherited;
00022 
00023    SO_NODE_HEADER(SoMLSampler2D);
00024 
00025    public:
00026 
00028       SoSFEnum     wrapT;
00029       
00031       SoSFUInt32   startZ;
00032 
00034       SoMLSampler2D();
00035 
00036 
00037    SoINTERNAL public:
00038 
00040       static void    initClass();
00041 
00042      
00043    protected:
00044 
00045 
00047       virtual ~SoMLSampler2D();
00048 
00050       virtual void updateTextureWrappingParameters();
00051 
00053       virtual void setGlTexImage(GLenum target, XVImageSize textureSize, GLint internalFormat, GLint format, GLenum textureDataType, const GLvoid* textureData);
00054 
00056       virtual void getSubimageProperties(XVImageSize inputSize, XVImageSize &subimageSize, XVImageSize &subimagePosition);
00057    
00058    private:
00059 
00060       SoFieldSensor *_startZSensor;
00061 };
00062 
00063 #endif  // _SO_ML_SAMPLER_2D_