OpenWalnut  1.5.0dev
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | List of all members
WGETexture< TextureType > Class Template Reference

This calls serves a simple purpose: have a texture and its scaling information together which allows very easy binding of textures to nodes with associated shaders. More...

#include <WGETexture.h>

+ Inheritance diagram for WGETexture< TextureType >:
+ Collaboration diagram for WGETexture< TextureType >:

Public Types

typedef osg::ref_ptr< WGETexture< TextureType > > RPtr
 Convenience type for OSG reference pointer on WGETextures. More...
 
typedef osg::ref_ptr< WGETexture< TextureType > > SPtr
 Convenience type for OSG reference pointer on WGETextures. More...
 

Public Member Functions

 WGETexture (double scale=1.0, double min=0.0)
 Default constructor. More...
 
 WGETexture (WGEImage::SPtr image, double scale=1.0, double min=0.0)
 Creates texture from given image. More...
 
 WGETexture (osg::Image *image, double scale=1.0, double min=0.0)
 Creates texture from given image. More...
 
 WGETexture (const WGETexture< TextureType > &texture, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy the texture. More...
 
virtual ~WGETexture ()
 Destructor. More...
 
WPropString name () const
 Returns the name property of the texture. More...
 
WPropInt sortIndex () const
 The sorting index in the colormapper's texture list. More...
 
WPropDouble minimum () const
 Get the minimum in the de-scaled value space. More...
 
WPropDouble scale () const
 Get the scaling factor for de-scaling the texture. More...
 
WPropDouble alpha () const
 Returns the alpha property. More...
 
WPropBool clipZero () const
 Clip the values assumed to be zero. More...
 
WPropDouble thresholdLower () const
 Returns the threshold property. More...
 
WPropDouble thresholdUpper () const
 Returns the threshold property. More...
 
WPropBool thresholdEnabled () const
 Returns the property responsible for enabling threshold based clipping. More...
 
WPropBool interpolation () const
 Returns the interpolation property. More...
 
WPropSelection colormap () const
 Returns the colormap property. More...
 
WPropBool active () const
 Returns the active property. More...
 
WPropInterval window () const
 Returns the window level definition for the colormap. More...
 
WPropBool windowEnabled () const
 Returns the property responsible for enabling window based interval scaling. More...
 
WPropMatrix4X4 transformation () const
 Returns the texture transformation matrix. More...
 
void bind (osg::ref_ptr< osg::Node > node, size_t unit=0)
 Binds the texture to the specified node and texture unit. More...
 
std::shared_ptr< WPropertiesgetProperties () const
 Return a pointer to the properties object of the dataset. More...
 
std::shared_ptr< WPropertiesgetInformationProperties () const
 Return a pointer to the information properties object of the dataset. More...
 
virtual void applyUniforms (std::string prefix, osg::StateSet *states) const
 Applies some custom uniforms to the specified state-set which directly relate to this texture. More...
 
void setFilterMinMag (osg::Texture::FilterMode mode)
 For all the lazy guys to set the filter MIN and MAG at once. More...
 
void setWrapSTR (osg::Texture::WrapMode mode)
 For all the lazy guys to set the wrapping for s,t and r directions at once. More...
 
virtual WBoundingBox getBoundingBox () const
 Returns the texture's bounding box. More...
 
virtual void copyPropertiesExceptTransformation (osg::ref_ptr< WGETexture< TextureType > > const &from)
 Copy the values of all properties except the texture transformation into the properties of this texture. More...
 

Static Public Member Functions

static WPVBaseTypes::PV_INT getUnsetSortIndex ()
 Get the index used to refer to an unset sort index. More...
 

Static Public Attributes

static std::size_t const MAX_NUMBER_OF_TEXTURES = 8
 We support only 8 textures because some known hardware does not support more texture coordinates. More...
 
static std::size_t const MAX_TEXTURE_DIMENSION = 2048
 The maximum texture dimension. More...
 

Protected Member Functions

virtual void handleUpdate ()
 Handles all property updates. More...
 
virtual void create ()
 Creates the texture data. More...
 
virtual void updateCallback (osg::StateAttribute *state)
 This method implements an update callback which updates the texture image if needed and several other properties like texture matrix. More...
 

Static Protected Member Functions

static void initTextureSize (osg::Texture1D *texture, int width, int height, int depth)
 Initialize the size of the texture properly according to real texture type (1D,2D,3D). More...
 
static void initTextureSize (osg::Texture2D *texture, int width, int height, int depth)
 Initialize the size of the texture properly according to real texture type (1D,2D,3D). More...
 
static void initTextureSize (osg::Texture3D *texture, int width, int height, int depth)
 Initialize the size of the texture properly according to real texture type (1D,2D,3D). More...
 

Private Member Functions

void setupProperties (double scale, double min)
 Creates and assigns all properties. More...
 

Private Attributes

std::shared_ptr< WConditionm_propCondition
 A condition used to notify about changes in several properties. More...
 
std::shared_ptr< WPropertiesm_properties
 The property object for the dataset. More...
 
std::shared_ptr< WPropertiesm_infoProperties
 The property object for the dataset containing only props whose purpose is "PV_PURPOSE_INFORMNATION". More...
 
bool m_needCreate
 If true, the texture gets created. More...
 
WPropString m_name
 The texture name. More...
 
WPropInt m_sortIdx
 The sort index of the texture. More...
 
WPropDouble m_min
 The minimum of each value in the texture in unscaled space. More...
 
WPropDouble m_scale
 The scaling factor to de-scale a [0-1] texture to original space. More...
 
std::shared_ptr< WItemSelectionm_colorMapSelectionsList
 A list of color map selection types. More...
 
WPropSelection m_colorMap
 Selection property for color map. More...
 
WPropDouble m_alpha
 Alpha blending value. More...
 
WPropBool m_clipZero
 If set to true, zero values are clipped by making them transparent. More...
 
WPropDouble m_thresholdLower
 Threshold for clipping areas. More...
 
WPropDouble m_thresholdUpper
 Threshold for clipping areas. More...
 
WPropBool m_thresholdEnabled
 Threshold-enable flag. More...
 
WPropBool m_interpolation
 True if interpolation should be used. More...
 
WPropBool m_active
 True if the texture is active. More...
 
WPropMatrix4X4 m_texMatrix
 The texture transformation matrix. More...
 
WPropInterval m_window
 Window level setting for the current colormap. More...
 
WPropBool m_windowEnabled
 Window-Level-Setting-enable flag. More...
 

Detailed Description

template<typename TextureType = osg::Texture>
class WGETexture< TextureType >

This calls serves a simple purpose: have a texture and its scaling information together which allows very easy binding of textures to nodes with associated shaders.

When this texture gets bind using the bindTo methods, uniforms get added containing needed scaling information.

Definition at line 52 of file WGETexture.h.

Member Typedef Documentation

◆ RPtr

template<typename TextureType = osg::Texture>
typedef osg::ref_ptr< WGETexture< TextureType > > WGETexture< TextureType >::RPtr

Convenience type for OSG reference pointer on WGETextures.

Definition at line 58 of file WGETexture.h.

◆ SPtr

template<typename TextureType = osg::Texture>
typedef osg::ref_ptr< WGETexture< TextureType > > WGETexture< TextureType >::SPtr

Convenience type for OSG reference pointer on WGETextures.

OW conform name.

Definition at line 63 of file WGETexture.h.

Constructor & Destructor Documentation

◆ WGETexture() [1/4]

template<typename TextureType >
WGETexture< TextureType >::WGETexture ( double  scale = 1.0,
double  min = 0.0 
)

Default constructor.

Creates an empty instance of the texture.

Parameters
scalethe scaling factor needed for de-scaling the texture values
minthe minimum value allowing negative values too.

Definition at line 468 of file WGETexture.h.

References WGETexture< TextureType >::scale(), and WGETexture< TextureType >::setupProperties().

+ Here is the call graph for this function:

◆ WGETexture() [2/4]

template<typename TextureType >
WGETexture< TextureType >::WGETexture ( WGEImage::SPtr  image,
double  scale = 1.0,
double  min = 0.0 
)

Creates texture from given image.

Scaling is set to identity.

Parameters
imagethe image to use as texture
scalethe scaling factor needed for de-scaling the texture values
minthe minimum value allowing negative values too.

Definition at line 491 of file WGETexture.h.

References WGETexture< TextureType >::initTextureSize(), WGETexture< TextureType >::scale(), and WGETexture< TextureType >::setupProperties().

+ Here is the call graph for this function:

◆ WGETexture() [3/4]

template<typename TextureType >
WGETexture< TextureType >::WGETexture ( osg::Image *  image,
double  scale = 1.0,
double  min = 0.0 
)

Creates texture from given image.

Scaling is set to identity.

Parameters
imagethe image to use as texture
scalethe scaling factor needed for de-scaling the texture values
minthe minimum value allowing negative values too.

Definition at line 479 of file WGETexture.h.

References WGETexture< TextureType >::initTextureSize(), WGETexture< TextureType >::scale(), and WGETexture< TextureType >::setupProperties().

+ Here is the call graph for this function:

◆ WGETexture() [4/4]

template<typename TextureType >
WGETexture< TextureType >::WGETexture ( const WGETexture< TextureType > &  texture,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy the texture.

Parameters
texturethe texture to copy
copyop

Definition at line 503 of file WGETexture.h.

◆ ~WGETexture()

template<typename TextureType >
WGETexture< TextureType >::~WGETexture
virtual

Destructor.

Definition at line 585 of file WGETexture.h.

Member Function Documentation

◆ active()

template<typename TextureType >
WPropBool WGETexture< TextureType >::active
inline

Returns the active property.

The property can be changed. A change affects all colormaps using this texture.

Returns
active property

Definition at line 669 of file WGETexture.h.

◆ alpha()

template<typename TextureType >
WPropDouble WGETexture< TextureType >::alpha
inline

Returns the alpha property.

The property can be changed. A change affects all colormaps using this texture.

Returns
alpha property

Definition at line 627 of file WGETexture.h.

◆ applyUniforms()

template<typename TextureType >
void WGETexture< TextureType >::applyUniforms ( std::string  prefix,
osg::StateSet *  states 
) const
virtual

Applies some custom uniforms to the specified state-set which directly relate to this texture.

Parameters
prefixthe prefix used for the uniforms
statesthe state where to add the uniforms

Definition at line 703 of file WGETexture.h.

◆ bind()

template<typename TextureType >
void WGETexture< TextureType >::bind ( osg::ref_ptr< osg::Node >  node,
size_t  unit = 0 
)

Binds the texture to the specified node and texture unit.

It also adds two uniforms: u_textureXMin and u_textureXScale, where X is the unit number. This can be used in shaders to unscale it.

Parameters
nodethe node where to bind the texture to
unitthe unit, by default 0

Definition at line 719 of file WGETexture.h.

References wge::bindTexture().

+ Here is the call graph for this function:

◆ clipZero()

template<typename TextureType >
WPropBool WGETexture< TextureType >::clipZero
inline

Clip the values assumed to be zero.

Returns
true to clip.

Definition at line 633 of file WGETexture.h.

◆ colormap()

template<typename TextureType >
WPropSelection WGETexture< TextureType >::colormap
inline

Returns the colormap property.

The property can be changed. A change affects all colormaps using this texture.

Returns
colormap property

Definition at line 663 of file WGETexture.h.

◆ copyPropertiesExceptTransformation()

template<typename TextureType >
void WGETexture< TextureType >::copyPropertiesExceptTransformation ( osg::ref_ptr< WGETexture< TextureType > > const &  from)
virtual

Copy the values of all properties except the texture transformation into the properties of this texture.

Parameters
fromThe texture to copy property values from.

Definition at line 783 of file WGETexture.h.

◆ create()

template<typename TextureType >
void WGETexture< TextureType >::create
protectedvirtual

Creates the texture data.

Overwrite this method if you want to provide a custom texture creation procedure.

Reimplemented in WDataTexture3D.

Definition at line 726 of file WGETexture.h.

◆ getBoundingBox()

template<typename TextureType >
WBoundingBox WGETexture< TextureType >::getBoundingBox
virtual

Returns the texture's bounding box.

This is const. Although there exists the transformation() property, it is an information property and can't be changed.

Returns
the bounding box.

Reimplemented in WDataTexture3D.

Definition at line 777 of file WGETexture.h.

◆ getInformationProperties()

template<typename TextureType >
std::shared_ptr< WProperties > WGETexture< TextureType >::getInformationProperties

Return a pointer to the information properties object of the dataset.

The dataset intends these properties to not be modified.

Returns
the properties.

Definition at line 597 of file WGETexture.h.

◆ getProperties()

template<typename TextureType >
std::shared_ptr< WProperties > WGETexture< TextureType >::getProperties

Return a pointer to the properties object of the dataset.

Add all the modifiable settings here. This allows the user to modify several properties of a dataset.

Returns
the properties.

Definition at line 591 of file WGETexture.h.

◆ getUnsetSortIndex()

template<typename TextureType >
WPVBaseTypes::PV_INT WGETexture< TextureType >::getUnsetSortIndex
static

Get the index used to refer to an unset sort index.

Returns
the value.

Definition at line 806 of file WGETexture.h.

Referenced by WGEColormapping::resetSortIndices().

+ Here is the caller graph for this function:

◆ handleUpdate()

template<typename TextureType >
void WGETexture< TextureType >::handleUpdate
protectedvirtual

Handles all property updates.

Called by m_propCondition.

Definition at line 693 of file WGETexture.h.

◆ initTextureSize() [1/3]

template<typename TextureType >
void WGETexture< TextureType >::initTextureSize ( osg::Texture1D *  texture,
int  width,
int  height,
int  depth 
)
staticprotected

Initialize the size of the texture properly according to real texture type (1D,2D,3D).

Note
This is needed because osg::Texture::setImage is not virtual and does not set the size from the image.
Parameters
texturethe texture where to set the size
widththe new width
heightthe new height
depththe new depth

Definition at line 759 of file WGETexture.h.

Referenced by WDataTexture3D::WDataTexture3D(), and WGETexture< TextureType >::WGETexture().

+ Here is the caller graph for this function:

◆ initTextureSize() [2/3]

template<typename TextureType >
void WGETexture< TextureType >::initTextureSize ( osg::Texture2D *  texture,
int  width,
int  height,
int  depth 
)
staticprotected

Initialize the size of the texture properly according to real texture type (1D,2D,3D).

Note
This is needed because osg::Texture::setImage is not virtual and does not set the size from the image.
Parameters
texturethe texture where to set the size
widththe new width
heightthe new height
depththe new depth

Definition at line 765 of file WGETexture.h.

◆ initTextureSize() [3/3]

template<typename TextureType >
void WGETexture< TextureType >::initTextureSize ( osg::Texture3D *  texture,
int  width,
int  height,
int  depth 
)
staticprotected

Initialize the size of the texture properly according to real texture type (1D,2D,3D).

Note
This is needed because osg::Texture::setImage is not virtual and does not set the size from the image.
Parameters
texturethe texture where to set the size
widththe new width
heightthe new height
depththe new depth

Definition at line 771 of file WGETexture.h.

◆ interpolation()

template<typename TextureType >
WPropBool WGETexture< TextureType >::interpolation
inline

Returns the interpolation property.

The property can be changed. A change affects all colormaps using this texture.

Returns
interpolation property

Definition at line 657 of file WGETexture.h.

◆ minimum()

template<typename TextureType >
WPropDouble WGETexture< TextureType >::minimum
inline

Get the minimum in the de-scaled value space.

The property can be changed. A change affects all colormaps using this texture. But be careful as the texture creating depends on these values.

Returns
the minimum

Definition at line 615 of file WGETexture.h.

Referenced by WDataTexture3D::createTexture().

+ Here is the caller graph for this function:

◆ name()

template<typename TextureType >
WPropString WGETexture< TextureType >::name
inline

Returns the name property of the texture.

You should set it if you create a texture.

Returns
texture name property

Definition at line 603 of file WGETexture.h.

◆ scale()

template<typename TextureType >
WPropDouble WGETexture< TextureType >::scale
inline

Get the scaling factor for de-scaling the texture.

The property can be changed. A change affects all colormaps using this texture. But be careful as the texture creating depends on these values.

Returns
the scale

Definition at line 621 of file WGETexture.h.

Referenced by WDataTexture3D::createTexture(), WDataTexture3D::WDataTexture3D(), and WGETexture< TextureType >::WGETexture().

+ Here is the caller graph for this function:

◆ setFilterMinMag()

template<typename TextureType >
void WGETexture< TextureType >::setFilterMinMag ( osg::Texture::FilterMode  mode)

For all the lazy guys to set the filter MIN and MAG at once.

Parameters
modethe new mode for MIN_FILTER and MAG_FILTER.

Definition at line 744 of file WGETexture.h.

◆ setupProperties()

template<typename TextureType >
void WGETexture< TextureType >::setupProperties ( double  scale,
double  min 
)
private

Creates and assigns all properties.

Parameters
minthe min value of the texture
scalethe scale value of the texture

Definition at line 512 of file WGETexture.h.

References WPropertyHelper::PC_SELECTONLYONE::addTo(), and WMatrixFixed< double, 4, 4 >::identity().

Referenced by WGETexture< TextureType >::WGETexture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWrapSTR()

template<typename TextureType >
void WGETexture< TextureType >::setWrapSTR ( osg::Texture::WrapMode  mode)

For all the lazy guys to set the wrapping for s,t and r directions at once.

Parameters
modethe new mode for WRAP_S, WRAP_T and WRAP_R.

Definition at line 751 of file WGETexture.h.

◆ sortIndex()

template<typename TextureType >
WPropInt WGETexture< TextureType >::sortIndex
inline

The sorting index in the colormapper's texture list.

Returns
the property.

Definition at line 609 of file WGETexture.h.

◆ thresholdEnabled()

template<typename TextureType >
WPropBool WGETexture< TextureType >::thresholdEnabled
inline

Returns the property responsible for enabling threshold based clipping.

If this is false, the threshold is ignored.

Returns
threshold-enable property.

Definition at line 651 of file WGETexture.h.

◆ thresholdLower()

template<typename TextureType >
WPropDouble WGETexture< TextureType >::thresholdLower
inline

Returns the threshold property.

The property can be changed. A change affects all colormaps using this texture.

Returns
threshold property

Definition at line 639 of file WGETexture.h.

Referenced by WDataTexture3D::WDataTexture3D().

+ Here is the caller graph for this function:

◆ thresholdUpper()

template<typename TextureType >
WPropDouble WGETexture< TextureType >::thresholdUpper
inline

Returns the threshold property.

The property can be changed. A change affects all colormaps using this texture.

Returns
threshold property

Definition at line 645 of file WGETexture.h.

Referenced by WDataTexture3D::WDataTexture3D().

+ Here is the caller graph for this function:

◆ transformation()

template<typename TextureType >
WPropMatrix4X4 WGETexture< TextureType >::transformation
inline

Returns the texture transformation matrix.

The property can be changed. A change affects all colormaps using this texture. This matrix converts an world-space coordinate to an texture coordinate! This can be seen as a scaled inverse matrix of the grid's transformation.

Returns
the matrix

Definition at line 687 of file WGETexture.h.

Referenced by WDataTexture3D::WDataTexture3D().

+ Here is the caller graph for this function:

◆ updateCallback()

template<typename TextureType >
void WGETexture< TextureType >::updateCallback ( osg::StateAttribute *  state)
protectedvirtual

This method implements an update callback which updates the texture image if needed and several other properties like texture matrix.

Parameters
statethe state to update

Definition at line 732 of file WGETexture.h.

◆ window()

template<typename TextureType >
WPropInterval WGETexture< TextureType >::window
inline

Returns the window level definition for the colormap.

The property can be changed. A change affects all colormaps using this texture.

Returns
window colormap

Definition at line 681 of file WGETexture.h.

Referenced by WDataTexture3D::WDataTexture3D().

+ Here is the caller graph for this function:

◆ windowEnabled()

template<typename TextureType >
WPropBool WGETexture< TextureType >::windowEnabled
inline

Returns the property responsible for enabling window based interval scaling.

If this is false, the window setting is ignored.

Returns
windowing-enable property.

Definition at line 675 of file WGETexture.h.

Member Data Documentation

◆ m_active

template<typename TextureType = osg::Texture>
WPropBool WGETexture< TextureType >::m_active
private

True if the texture is active.

Definition at line 431 of file WGETexture.h.

◆ m_alpha

template<typename TextureType = osg::Texture>
WPropDouble WGETexture< TextureType >::m_alpha
private

Alpha blending value.

Definition at line 401 of file WGETexture.h.

◆ m_clipZero

template<typename TextureType = osg::Texture>
WPropBool WGETexture< TextureType >::m_clipZero
private

If set to true, zero values are clipped by making them transparent.

Definition at line 406 of file WGETexture.h.

◆ m_colorMap

template<typename TextureType = osg::Texture>
WPropSelection WGETexture< TextureType >::m_colorMap
private

Selection property for color map.

Definition at line 396 of file WGETexture.h.

◆ m_colorMapSelectionsList

template<typename TextureType = osg::Texture>
std::shared_ptr< WItemSelection > WGETexture< TextureType >::m_colorMapSelectionsList
private

A list of color map selection types.

Definition at line 391 of file WGETexture.h.

◆ m_infoProperties

template<typename TextureType = osg::Texture>
std::shared_ptr< WProperties > WGETexture< TextureType >::m_infoProperties
private

The property object for the dataset containing only props whose purpose is "PV_PURPOSE_INFORMNATION".

It is useful to define some property to only be of informational nature. The GUI does not modify them. As it is a WProperties instance, you can use it the same way as m_properties.

Definition at line 361 of file WGETexture.h.

◆ m_interpolation

template<typename TextureType = osg::Texture>
WPropBool WGETexture< TextureType >::m_interpolation
private

True if interpolation should be used.

Definition at line 426 of file WGETexture.h.

◆ m_min

template<typename TextureType = osg::Texture>
WPropDouble WGETexture< TextureType >::m_min
private

The minimum of each value in the texture in unscaled space.

Definition at line 381 of file WGETexture.h.

◆ m_name

template<typename TextureType = osg::Texture>
WPropString WGETexture< TextureType >::m_name
private

The texture name.

This might be useful to identify textures.

Definition at line 371 of file WGETexture.h.

◆ m_needCreate

template<typename TextureType = osg::Texture>
bool WGETexture< TextureType >::m_needCreate
private

If true, the texture gets created.

This is used to create texture on demand.

Definition at line 366 of file WGETexture.h.

◆ m_propCondition

template<typename TextureType = osg::Texture>
std::shared_ptr< WCondition > WGETexture< TextureType >::m_propCondition
private

A condition used to notify about changes in several properties.

Definition at line 349 of file WGETexture.h.

◆ m_properties

template<typename TextureType = osg::Texture>
std::shared_ptr< WProperties > WGETexture< TextureType >::m_properties
private

The property object for the dataset.

Definition at line 354 of file WGETexture.h.

◆ m_scale

template<typename TextureType = osg::Texture>
WPropDouble WGETexture< TextureType >::m_scale
private

The scaling factor to de-scale a [0-1] texture to original space.

Definition at line 386 of file WGETexture.h.

◆ m_sortIdx

template<typename TextureType = osg::Texture>
WPropInt WGETexture< TextureType >::m_sortIdx
private

The sort index of the texture.

This is important for restoring and saving the colormapper's sorting.

Definition at line 376 of file WGETexture.h.

◆ m_texMatrix

template<typename TextureType = osg::Texture>
WPropMatrix4X4 WGETexture< TextureType >::m_texMatrix
private

The texture transformation matrix.

Definition at line 436 of file WGETexture.h.

◆ m_thresholdEnabled

template<typename TextureType = osg::Texture>
WPropBool WGETexture< TextureType >::m_thresholdEnabled
private

Threshold-enable flag.

Definition at line 421 of file WGETexture.h.

◆ m_thresholdLower

template<typename TextureType = osg::Texture>
WPropDouble WGETexture< TextureType >::m_thresholdLower
private

Threshold for clipping areas.

Definition at line 411 of file WGETexture.h.

◆ m_thresholdUpper

template<typename TextureType = osg::Texture>
WPropDouble WGETexture< TextureType >::m_thresholdUpper
private

Threshold for clipping areas.

Definition at line 416 of file WGETexture.h.

◆ m_window

template<typename TextureType = osg::Texture>
WPropInterval WGETexture< TextureType >::m_window
private

Window level setting for the current colormap.

Definition at line 441 of file WGETexture.h.

◆ m_windowEnabled

template<typename TextureType = osg::Texture>
WPropBool WGETexture< TextureType >::m_windowEnabled
private

Window-Level-Setting-enable flag.

Definition at line 446 of file WGETexture.h.

◆ MAX_NUMBER_OF_TEXTURES

template<typename TextureType = osg::Texture>
std::size_t const WGETexture< TextureType >::MAX_NUMBER_OF_TEXTURES = 8
static

We support only 8 textures because some known hardware does not support more texture coordinates.

Definition at line 66 of file WGETexture.h.

Referenced by WQtColormapper::WQtColormapper().

◆ MAX_TEXTURE_DIMENSION

template<typename TextureType = osg::Texture>
std::size_t const WGETexture< TextureType >::MAX_TEXTURE_DIMENSION = 2048
static

The maximum texture dimension.

Definition at line 69 of file WGETexture.h.


The documentation for this class was generated from the following file: