MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 00006 00007 00008 #ifndef _SO_ML_SAMPLER_3D_ 00009 #define _SO_ML_SAMPLER_3D_ 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 SoMLSampler3D : public SoMLSampler 00020 { 00021 typedef SoMLSampler inherited; 00022 00023 SO_NODE_HEADER(SoMLSampler3D); 00024 00025 public: 00026 00028 SoSFEnum wrapT; 00029 00031 SoSFEnum wrapR; 00032 00034 SoMLSampler3D(); 00035 00036 00037 SoINTERNAL public: 00038 00040 static void initClass(); 00041 00042 protected: 00043 00045 virtual ~SoMLSampler3D(); 00046 00048 virtual void updateTextureWrappingParameters(); 00049 00051 virtual void setGlTexImage(GLenum target, XVImageSize textureSize, GLint internalFormat, GLint format, GLenum textureDataType, const GLvoid* textureData); 00052 00054 virtual void getSubimageProperties(XVImageSize inputSize, XVImageSize &subimageSize, XVImageSize &subimagePosition); 00055 00056 }; 00057 00058 #endif // _SO_ML_SAMPLER_3D_