MeVisLab Resolution Independence API
Toggle main menu visibility
Loading...
Searching...
No Matches
SoMLSamplerCubeMap.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_MLSAMPLER_CUBE_MAP_H
14
#define SO_MLSAMPLER_CUBE_MAP_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
SoMLSamplerCubeMap
:
public
SoMLSampler
26
{
27
typedef
SoMLSampler
inherited;
28
29
SO_NODE_HEADER(
SoMLSamplerCubeMap
);
30
31
public
:
33
SoSFEnum
wrapT
;
34
36
SoSFUInt32
startZ
;
37
39
SoSFEnum
texGenMode
;
40
42
SoMLSamplerCubeMap
();
43
44
SoINTERNAL public :
45
47
static
void
initClass
();
48
49
protected
:
51
~SoMLSamplerCubeMap
()
override
;
52
54
void
freeTextureBuffer
()
override
;
55
57
void
updateTextureBuffer
()
override
;
58
60
void
uploadTextureBuffer
()
override
;
61
63
void
setGLTexImage
(GLenum target,
const
XVImageSize
& textureSize, GLint internalFormat, GLint format,
64
GLenum textureDataType,
const
GLvoid* textureData)
override
;
65
67
void
getTextureDataFromImage
(
const
XVImageSize
& pos,
const
XVImageSize
& size)
override
;
68
70
void
calcSubImgProps
(
XVImageSize
& subImgPosition,
XVImageSize
& subImgSize)
override
;
71
72
private
:
73
MLuint8* _textureDataCube[6];
74
};
75
76
#endif
// _SO_ML_SAMPLER_CUBEMAP_
SoMLSampler.h
SoShaderSystem.h
INVENTOR_SHADER_API
#define INVENTOR_SHADER_API
Define class export specifier.
Definition
SoShaderSystem.h:20
SoMLSamplerCubeMap::startZ
SoSFUInt32 startZ
Origin of the 2d slice in Z dimension. Default is 0.
Definition
SoMLSamplerCubeMap.h:36
SoMLSamplerCubeMap::updateTextureBuffer
void updateTextureBuffer() override
Calls imageChanged() if _textureBuffer is empty.
SoMLSamplerCubeMap::calcSubImgProps
void calcSubImgProps(XVImageSize &subImgPosition, XVImageSize &subImgSize) override
Calculate position and size of used sub image by evaluation of fields.
SoMLSamplerCubeMap::~SoMLSamplerCubeMap
~SoMLSamplerCubeMap() override
Destructor.
SoMLSamplerCubeMap::freeTextureBuffer
void freeTextureBuffer() override
Delete the texture buffer(s).
SoMLSamplerCubeMap::getTextureDataFromImage
void getTextureDataFromImage(const XVImageSize &pos, const XVImageSize &size) override
Extract the texture data from the input ML image and store it in the textureData buffer.
SoMLSamplerCubeMap::SoMLSamplerCubeMap
SoMLSamplerCubeMap()
Constructor.
SoMLSamplerCubeMap::wrapT
SoSFEnum wrapT
Wrapping mode. Default is REPEAT.
Definition
SoMLSamplerCubeMap.h:33
SoMLSamplerCubeMap::initClass
static void initClass()
Initialize class with runtime type system.
SoMLSamplerCubeMap::texGenMode
SoSFEnum texGenMode
Definition
SoMLSamplerCubeMap.h:39
SoMLSamplerCubeMap::uploadTextureBuffer
void uploadTextureBuffer() override
Uploads data stored in _textureDataCube.
SoMLSamplerCubeMap::setGLTexImage
void setGLTexImage(GLenum target, const XVImageSize &textureSize, GLint internalFormat, GLint format, GLenum textureDataType, const GLvoid *textureData) override
Set the OpenGL texture.
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
SoMLSamplerCubeMap.h
Generated by
1.18.0