MeVisLabToolboxReference
|
Sampler node that uses 6 2D ML subimages to define a Cubemap sampler. More...
#include <SoMLSamplerCubeMap.h>
Public Member Functions | |
SoMLSamplerCubeMap () | |
Constructor. | |
Static Public Member Functions | |
static void | initClass () |
Initialize class with runtime type system. | |
Public Attributes | |
SoSFEnum | wrapT |
Wrapping mode. Default is REPEAT. | |
SoSFUInt32 | startZ |
Origin of the 2d slice in Z dimension. Default is 0. | |
SoSFEnum | texGenMode |
Protected Member Functions | |
virtual | ~SoMLSamplerCubeMap () |
Destructor. | |
virtual void | clearTexturData () |
Delete the texture buffer(s) | |
virtual void | updateTextureData (bool force) |
Calls imageChanged() if _textureData is empty or if force is true. | |
virtual void | uploadTextureData () |
Uploads data stored in _textureDataCube. | |
virtual void | setGlTexImage (GLenum target, XVImageSize textureSize, GLint internalFormat, GLint format, GLenum textureDataType, const GLvoid *textureData) |
Set the openGL texture. | |
virtual void | getTextureDataFromImage (XVImageSize size, XVImageSize pos) |
Extract the texture data from the input ML image and store it in the textureData buffer. | |
virtual void | getSubimageProperties (XVImageSize inputSize, XVImageSize &subimageSize, XVImageSize &subimagePosition) |
Get position and size of used sub image. |
Sampler node that uses 6 2D ML subimages to define a Cubemap sampler.
Definition at line 19 of file SoMLSamplerCubeMap.h.
SoMLSamplerCubeMap::SoMLSamplerCubeMap | ( | ) |
Constructor.
virtual SoMLSamplerCubeMap::~SoMLSamplerCubeMap | ( | ) | [protected, virtual] |
Destructor.
virtual void SoMLSamplerCubeMap::clearTexturData | ( | ) | [protected, virtual] |
Delete the texture buffer(s)
Reimplemented from SoImageSampler.
virtual void SoMLSamplerCubeMap::getSubimageProperties | ( | XVImageSize | inputSize, |
XVImageSize & | subimageSize, | ||
XVImageSize & | subimagePosition | ||
) | [protected, virtual] |
Get position and size of used sub image.
Implements SoMLSampler.
virtual void SoMLSamplerCubeMap::getTextureDataFromImage | ( | XVImageSize | size, |
XVImageSize | pos | ||
) | [protected, virtual] |
Extract the texture data from the input ML image and store it in the textureData buffer.
Reimplemented from SoMLSampler.
static void SoMLSamplerCubeMap::initClass | ( | ) | [static] |
Initialize class with runtime type system.
Reimplemented from SoMLSampler.
virtual void SoMLSamplerCubeMap::setGlTexImage | ( | GLenum | target, |
XVImageSize | textureSize, | ||
GLint | internalFormat, | ||
GLint | format, | ||
GLenum | textureDataType, | ||
const GLvoid * | textureData | ||
) | [protected, virtual] |
Set the openGL texture.
Reimplemented from SoImageSampler.
virtual void SoMLSamplerCubeMap::updateTextureData | ( | bool | force | ) | [protected, virtual] |
Calls imageChanged() if _textureData is empty or if force is true.
Reimplemented from SoImageSampler.
virtual void SoMLSamplerCubeMap::uploadTextureData | ( | ) | [protected, virtual] |
Uploads data stored in _textureDataCube.
Reimplemented from SoImageSampler.
SoSFUInt32 SoMLSamplerCubeMap::startZ |
Origin of the 2d slice in Z dimension. Default is 0.
Definition at line 31 of file SoMLSamplerCubeMap.h.
SoSFEnum SoMLSamplerCubeMap::texGenMode |
Definition at line 34 of file SoMLSamplerCubeMap.h.
SoSFEnum SoMLSamplerCubeMap::wrapT |
Wrapping mode. Default is REPEAT.
Definition at line 28 of file SoMLSamplerCubeMap.h.