OpenWalnut  1.2.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Protected Attributes
WGETextureHud::WGETextureHudEntry Class Reference

Class implementing one texture HUD entry representing a texture in the HUD. More...

#include <WGETextureHud.h>

+ Inheritance diagram for WGETextureHud::WGETextureHudEntry:

List of all members.

Public Member Functions

 WGETextureHudEntry (osg::ref_ptr< osg::Texture2D > texture, std::string name, bool transparency=false)
 Constructor.
 ~WGETextureHudEntry ()
 Destructor.
unsigned int getRealWidth () const
 Returns the real width of the contained texture.
unsigned int getRealHeight () const
 Returns the real height of the contained texture.
osg::ref_ptr< osg::TexMat > getTextureMatrix () const
 Get the texture matrix state for this entry.
std::string getName () const
 Returns the name of the entry.
osg::ref_ptr< osg::Texture2D > getTexture () const
 Gets the texture associated with the entry.

Protected Attributes

osg::ref_ptr< osg::Texture2D > m_texture
 The texture.
osg::ref_ptr< osg::TexMat > m_texMat
 The texture matrix for this entry.
std::string m_name
 The name for this HUD entry.

Detailed Description

Class implementing one texture HUD entry representing a texture in the HUD.

Definition at line 62 of file WGETextureHud.h.


Constructor & Destructor Documentation

WGETextureHud::WGETextureHudEntry::WGETextureHudEntry ( osg::ref_ptr< osg::Texture2D >  texture,
std::string  name,
bool  transparency = false 
)

Constructor.

Parameters:
texturethe texture to show in the HUD
namea telling name to support the illustrative function of the HUD
transparencytrue if transparency should be shown

Definition at line 175 of file WGETextureHud.cpp.

References WPathHelper::getAllFonts(), m_name, and m_texMat.

Destructor.

Definition at line 274 of file WGETextureHud.cpp.


Member Function Documentation

Returns the name of the entry.

Returns:
name of the entry.

Definition at line 294 of file WGETextureHud.cpp.

Returns the real height of the contained texture.

Returns:
the real height.

Definition at line 284 of file WGETextureHud.cpp.

Referenced by WGETextureHud::SafeUpdateCallback::operator()().

Returns the real width of the contained texture.

Returns:
the real width.

Definition at line 279 of file WGETextureHud.cpp.

Referenced by WGETextureHud::SafeUpdateCallback::operator()().

osg::ref_ptr< osg::Texture2D > WGETextureHud::WGETextureHudEntry::getTexture ( ) const

Gets the texture associated with the entry.

Returns:
the texture

Definition at line 309 of file WGETextureHud.cpp.

osg::ref_ptr< osg::TexMat > WGETextureHud::WGETextureHudEntry::getTextureMatrix ( ) const

Get the texture matrix state for this entry.

Returns:
the texture matrix state

Definition at line 289 of file WGETextureHud.cpp.

Referenced by WGETextureHud::SafeUpdateCallback::operator()().


Member Data Documentation

The name for this HUD entry.

Definition at line 130 of file WGETextureHud.h.

Referenced by WGETextureHudEntry().

osg::ref_ptr< osg::TexMat > WGETextureHud::WGETextureHudEntry::m_texMat [protected]

The texture matrix for this entry.

Definition at line 125 of file WGETextureHud.h.

Referenced by WGETextureHudEntry().

osg::ref_ptr< osg::Texture2D > WGETextureHud::WGETextureHudEntry::m_texture [protected]

The texture.

Definition at line 120 of file WGETextureHud.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends