MeVisLab Resolution Independence API
Loading...
Searching...
No Matches
SoMLSampler2D.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef SO_MLSAMPLER2_D_H
14#define SO_MLSAMPLER2_D_H
15
16
18
19#include "SoShaderSystem.h"
21#include <Inventor/SbLinear.h>
22#include <mlGLResources.h>
23
26{
27 typedef SoMLSampler inherited;
28
29 SO_NODE_HEADER(SoMLSampler2D);
30
31public:
33 SoSFEnum wrapT;
34
36 SoSFUInt32 startZ;
37
40
41
42SoINTERNAL public :
43
45 static void initClass();
46
47
48protected:
50 ~SoMLSampler2D() override;
51
54
56 void setGLTexImage(GLenum target, const XVImageSize& textureSize, GLint internalFormat, GLint format,
57 GLenum textureDataType, const GLvoid* textureData) override;
58
60 void calcSubImgProps(XVImageSize& subImgPosition, XVImageSize& subImgSize) override;
61};
62
63#endif // _SO_ML_SAMPLER_2D_
#define INVENTOR_SHADER_API
Define class export specifier.
void updateTextureWrappingParameters() override
Sets parameters for texture wrapping in OpenGL.
SoSFEnum wrapT
Wrapping mode. Default is REPEAT.
void setGLTexImage(GLenum target, const XVImageSize &textureSize, GLint internalFormat, GLint format, GLenum textureDataType, const GLvoid *textureData) override
Set the OpenGL texture.
void calcSubImgProps(XVImageSize &subImgPosition, XVImageSize &subImgSize) override
Calculate position and size of used sub image by evaluation of fields.
~SoMLSampler2D() override
Destructor.
static void initClass()
Initialize class with runtime type system.
SoMLSampler2D()
Constructor.
SoSFUInt32 startZ
Origin of the 2d slice in Z dimension. Default is 0.
SoMLSampler()
Constructor.
SoSFMLImage - field interface to ML images and related classes.
Definition SoSFMLImage.h:32