MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoMLSampler3D.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_MLSAMPLER3_D_H
14
#define SO_MLSAMPLER3_D_H
15
16
18
19
#include "
SoShaderSystem.h
"
20
#include "
Inventor/nodes/SoMLSampler.h
"
21
#include <Inventor/SbLinear.h>
22
#include <
mlGLResources.h
>
23
25
class
INVENTOR_SHADER_API
SoMLSampler3D
:
public
SoMLSampler
26
{
27
typedef
SoMLSampler
inherited;
28
29
SO_NODE_HEADER(
SoMLSampler3D
);
30
31
public
:
33
SoSFEnum
wrapT
;
34
36
SoSFEnum
wrapR
;
37
39
SoMLSampler3D
();
40
41
SoINTERNAL public :
42
44
static
void
initClass
();
45
46
protected
:
48
~SoMLSampler3D
()
override
;
49
51
void
updateTextureWrappingParameters
()
override
;
52
54
void
setGLTexImage
(GLenum target,
const
XVImageSize
& textureSize, GLint internalFormat, GLint format,
55
GLenum textureDataType,
const
GLvoid* textureData)
override
;
56
58
void
calcSubImgProps
(
XVImageSize
& subImgPosition,
XVImageSize
& subImgSize)
override
;
59
};
60
61
#endif
// _SO_ML_SAMPLER_3D_
SoMLSampler.h
SoShaderSystem.h
INVENTOR_SHADER_API
#define INVENTOR_SHADER_API
Define class export specifier.
Definition
SoShaderSystem.h:20
SoMLSampler3D::initClass
static void initClass()
Initialize class with runtime type system.
SoMLSampler3D::updateTextureWrappingParameters
void updateTextureWrappingParameters() override
Sets parameters for texture wrapping in OpenGL.
SoMLSampler3D::setGLTexImage
void setGLTexImage(GLenum target, const XVImageSize &textureSize, GLint internalFormat, GLint format, GLenum textureDataType, const GLvoid *textureData) override
Set the OpenGL texture.
SoMLSampler3D::SoMLSampler3D
SoMLSampler3D()
Constructor.
SoMLSampler3D::wrapT
SoSFEnum wrapT
Wrapping mode. Default is REPEAT.
Definition
SoMLSampler3D.h:33
SoMLSampler3D::calcSubImgProps
void calcSubImgProps(XVImageSize &subImgPosition, XVImageSize &subImgSize) override
Calculate position and size of used sub image by evaluation of fields.
SoMLSampler3D::wrapR
SoSFEnum wrapR
Wrapping mode. Default is REPEAT.
Definition
SoMLSampler3D.h:36
SoMLSampler3D::~SoMLSampler3D
~SoMLSampler3D() override
Destructor.
SoMLSampler::SoMLSampler
SoMLSampler()
Constructor.
XVImageSize
SoSFMLImage - field interface to ML images and related classes.
Definition
SoSFMLImage.h:32
mlGLResources.h
MeVisLab
Standard
Sources
Inventor
SoShader
Inventor
nodes
SoMLSampler3D.h
Generated by
1.18.0