AGX Dynamics 2.40.0.0
Loading...
Searching...
No Matches
agxOSG::SceneDecorator Class Reference

Decorates a scene with a specific AGX Rendering Style. More...

#include <SceneDecorator.h>

+ Inheritance diagram for agxOSG::SceneDecorator:

Public Types

enum  Lights { LIGHT0 = 0x1 , LIGHT1 = 0x2 , LIGHT2 = 0x4 , ALL = LIGHT0 | LIGHT1 | LIGHT2 }
 
enum  LogoLocation {
  UPPER_LEFT = 0x1 , LOWER_LEFT = 0x2 , UPPER_RIGHT = 0x3 , LOWER_RIGHT = 0x4 ,
  FREE
}
 Specifies the location of the logo. More...
 
enum  ShadowMethod {
  SOFT_SHADOWMAP , SHADOWMAP , SHADOWVOLUME , PARALLELLSPLIT_SHADOWMAP ,
  LIGHTSPACEPERSPECTIVE_SHADOWMAP , SHADOWTEXTURE , NO_SHADOWS
}
 

Public Member Functions

 SceneDecorator (int windowSizeX, int windowSizeY, int enabledLights=LIGHT0|LIGHT1)
 Constructor.
 
virtual bool addChild (osg::Node *child)
 
void calculateLightPositions (const osg::BoundingBox &boundingBox)
 
void calculateLightPositions (const osg::BoundingSphere &boundingSphere)
 
void calculateLightPositions (osg::Node *bound_node=nullptr)
 Calculate the positions of the light sources from the bound of either a specified node, or if bound_node == 0, the sub-graph of this Group.
 
void clearText ()
 Reset all text to empty strings.
 
osg::StateSet * getDecoratorStateSet ()
 
bool getEnable () const
 Return true if AGX rendering style is enabled.
 
bool getEnableCalculateLightPositions (Lights l) const
 
bool getEnableLogo () const
 
bool getEnableRenderedCursor () const
 
bool getEnableShaderState () const
 
bool getEnableShadows () const
 
std::string getFontName () const
 Returns the font name.
 
float getFontSize () const
 Returns the font Size.
 
osg::MatrixTransform * getHud ()
 Return a pointer to the hud group.
 
agxOSG::LightSource getLightSource (Lights l)
 Get a wrapper for a LightSource with only AGX types.
 
osg::Texture2D * getLogo ()
 
const osg::Vec2 & getLogoDimension ()
 
LogoLocation getLogoLocation () const
 
osg::Vec2 getMaximumLogoDimension ()
 
osg::Group * getNonShadowedScene () const
 
osg::LightSource * getOSGLight (Lights l)
 
osg::Group * getShadowedScene () const
 
osg::LightSource * getShadowLightSource ()
 Return a pointer to the light source used for calculating shadows.
 
ShadowMethod getShadowMethod () const
 
virtual bool insertChild (unsigned int index, osg::Node *child)
 
bool isEnabled () const
 Return true if AGX rendering style is enabled.
 
bool removeChild (osg::Node *child)
 
bool removeChild (unsigned int pos, unsigned int numChildrenToRemove=1)
 
virtual bool removeChildren (unsigned int pos, unsigned int numChildrenToRemove)
 
virtual bool replaceChild (osg::Node *origChild, osg::Node *newChild)
 
void resetHUD ()
 
void setBackgroundColor (agx::Vec3 color)
 Set a uniform background color using color.
 
void setBackgroundColor (agx::Vec3 colorUL, agx::Vec3 colorUR, agx::Vec3 colorLL, agx::Vec3 colorLR)
 Set a gradient four color background (each corner) colorUL - Upper left color colorUR - Upper right color colorLL - Lower left color colorLR - Lower right color.
 
void setBackgroundColor (agx::Vec3 upper, agx::Vec3 lower)
 Set a gradient two color background.
 
void setBackgroundColor (const agx::Vec4f &color)
 Set a uniform background color using color.
 
void setBackgroundColor (const agx::Vec4f &color1, const agx::Vec4f &color2)
 Set a gradient two color background.
 
void setBackgroundColor (const agx::Vec4f &colorUL, const agx::Vec4f &colorUR, const agx::Vec4f &colorLL, const agx::Vec4f &colorLR)
 Set a gradient four color background (each corner) colorUL - Upper left color colorUR - Upper right color colorLL - Lower left color colorLR - Lower right color.
 
bool setBaseTexture (const std::string &imagePath)
 Specif the path to the base texture on all decorated objects.
 
virtual bool setChild (unsigned int i, osg::Node *node)
 
void setEnable (bool flag)
 Enable/disable AGX rendering style for sub-graph.
 
void setEnableCalculateLightPositions (Lights l, bool f)
 
void setEnableLights (int lightMask=ALL)
 Reset and enable the specified lights.
 
void setEnableLogo (bool flag)
 Enable/disable the rendering of the logo.
 
void setEnableRenderedCursor (bool enable)
 Enable/disable the mouse cursor.
 
void setEnableShaderState (bool flag, bool lock=false)
 Enable/disable the use of a shader based default render state.
 
void setEnableShadows (bool flag)
 Enable/disable shadows for the sub-graph.
 
void setFontName (const std::string &fontName)
 Sets the font name.
 
void setFontSize (const float &fontSize)
 Sets the font Size.
 
void setLogo (osg::Texture2D *logo, float density=1.0)
 Might want to call updateLogo afterwards.
 
bool setLogoFile (const std::string &filename, float density=1.0)
 Specify a path to the image with the logo and the pixel density (i.e. 2.0 for high DPI and 1.0 for 1:1)
 
void setLogoLocation (LogoLocation l)
 Set the position of the logo from a list of predefined positions.
 
void setLogoPosition (float x, float y)
 Set the position of logo into [x, y] if setLogoLocation(FREE) has been previously called Valid range is [0,1] where 0,0 is lower left corner.
 
void setMaximumLogoDimension (float x, float y)
 Set the maximum logo dimension.
 
void setScreenPixelScale (float scale)
 Specify the screen pixel scale (i.e. 2.0 for high DPI and 1.0 for 1:1)
 
bool setShadowLightSource (Lights l)
 Specify which light source is used for calculating shadows.
 
void setShadowMethod (ShadowMethod m)
 Specify which method is used for generating shadows,.
 
void setText (int row, const agx::String &text)
 Print a row of text.
 
void setText (int row, const agx::String &text, const agx::Vec4f &color)
 
void updateCursorPosition (float x, float y)
 
void updateWindowSize (int sizeX, int sizeY)
 Updates information about the window size in x and y (for logo scaling).
 

Static Public Member Functions

static const osg::Material * getDefaultDecoratorMaterial ()
 
static osg::Vec2 getDefaultLogoPosition ()
 
static size_t lightToIndex (Lights l)
 

Protected Member Functions

virtual ~SceneDecorator ()
 
void createBackground ()
 
void createDecoratorState ()
 
void createHUD ()
 
void createLogo ()
 
void init (Lights l)
 
void updateLogo ()
 Updates the logo scale and position, depending on logo size, and window width and height.
 

Protected Attributes

osg::ref_ptr< osg::Vec3Array > m_backgroundColors
 
osg::observer_ptr< osg::Geometry > m_backgroundQuad
 
osg::ref_ptr< osg::Switch > m_backgroundRoot
 
std::string m_baseTexturePath
 
bool m_calculateLightPosition [3]
 
osg::ref_ptr< osg::Group > m_currentRoot
 
osg::ref_ptr< osg::Node > m_cursorTransform
 
osg::ref_ptr< osg::StateSet > m_decoratorStateSet
 
osg::ref_ptr< osg::Group > m_disabledNonShadowRoot
 
osg::ref_ptr< osg::Group > m_disabledRoot
 
bool m_enabled
 
osg::ref_ptr< osg::Group > m_enabledNonShadowRoot
 
osg::ref_ptr< osg::Group > m_enabledRoot
 
bool m_enabledShadows
 
std::string m_fontName
 
float m_fontSize
 
osg::ref_ptr< osg::Camera > m_hudCamera
 
osg::ref_ptr< osg::Projection > m_hudProjection
 
osg::ref_ptr< osg::MatrixTransform > m_hudRoot
 
agx::Vector< osg::ref_ptr< osg::LightSource > > m_lightSources
 
bool m_logoEnabled
 
LogoLocation m_logoLocation
 
float m_logoPixelDensity
 
osg::Vec2 m_logoPosition
 
osg::Vec2 m_logoSize
 
osg::ref_ptr< osg::StateSet > m_logoStateSet
 
osg::ref_ptr< osg::Switch > m_logoSwitch
 
osg::ref_ptr< osg::Texture2D > m_logoTexture
 
osg::ref_ptr< osg::PositionAttitudeTransform > m_logoTransform
 
float m_maximumLogoDimensionX
 
float m_maximumLogoDimensionY
 
float m_screenPixelScale
 
bool m_shaderSupportAvailable
 
osg::ref_ptr< osgShadow::ShadowedScene > m_shadowedScene
 
osg::ref_ptr< osg::LightSource > m_ShadowlightSource
 
ShadowMethod m_shadowMethod
 
osg::ref_ptr< osgShadow::ShadowTechnique > m_shadowTechnique
 
agx::Vector< osgText::Text * > m_text
 
bool m_useShaderState
 
int m_windowSizeX
 
int m_windowSizeY
 

Static Protected Attributes

static osg::ref_ptr< osg::Material > s_decoratorMaterial
 

Detailed Description

Decorates a scene with a specific AGX Rendering Style.

SceneDecorator is a class that inherits from osg::Group and will decorate the sub-graph with a specific rendering style and a logo.

Definition at line 62 of file SceneDecorator.h.

Member Enumeration Documentation

◆ Lights

Enumerator
LIGHT0 
LIGHT1 
LIGHT2 
ALL 

Definition at line 211 of file SceneDecorator.h.

◆ LogoLocation

Specifies the location of the logo.

Enumerator
UPPER_LEFT 
LOWER_LEFT 
UPPER_RIGHT 
LOWER_RIGHT 
FREE 

Any position can be specified with the setLogoPosition() method.

Definition at line 90 of file SceneDecorator.h.

◆ ShadowMethod

Enumerator
SOFT_SHADOWMAP 
SHADOWMAP 
SHADOWVOLUME 
PARALLELLSPLIT_SHADOWMAP 

Deprecated.

LIGHTSPACEPERSPECTIVE_SHADOWMAP 
SHADOWTEXTURE 
NO_SHADOWS 

Definition at line 235 of file SceneDecorator.h.

Constructor & Destructor Documentation

◆ SceneDecorator()

agxOSG::SceneDecorator::SceneDecorator ( int  windowSizeX,
int  windowSizeY,
int  enabledLights = LIGHT0|LIGHT1 
)

Constructor.

Parameters
windowSizeX- The size of the window in x coordinates.
windowSizeY- The size of the window in y coordinates.
enabledLights- Specifies (using the Lights enum) which light sources should be created and used

◆ ~SceneDecorator()

virtual agxOSG::SceneDecorator::~SceneDecorator ( )
protectedvirtual

Member Function Documentation

◆ addChild()

virtual bool agxOSG::SceneDecorator::addChild ( osg::Node *  child)
inlinevirtual

Definition at line 173 of file SceneDecorator.h.

◆ calculateLightPositions() [1/3]

void agxOSG::SceneDecorator::calculateLightPositions ( const osg::BoundingBox &  boundingBox)

◆ calculateLightPositions() [2/3]

void agxOSG::SceneDecorator::calculateLightPositions ( const osg::BoundingSphere &  boundingSphere)

◆ calculateLightPositions() [3/3]

void agxOSG::SceneDecorator::calculateLightPositions ( osg::Node *  bound_node = nullptr)

Calculate the positions of the light sources from the bound of either a specified node, or if bound_node == 0, the sub-graph of this Group.

◆ clearText()

void agxOSG::SceneDecorator::clearText ( )

Reset all text to empty strings.

◆ createBackground()

void agxOSG::SceneDecorator::createBackground ( )
protected

◆ createDecoratorState()

void agxOSG::SceneDecorator::createDecoratorState ( )
protected

◆ createHUD()

void agxOSG::SceneDecorator::createHUD ( )
protected

◆ createLogo()

void agxOSG::SceneDecorator::createLogo ( )
protected

◆ getDecoratorStateSet()

osg::StateSet * agxOSG::SceneDecorator::getDecoratorStateSet ( )
inline

Definition at line 228 of file SceneDecorator.h.

◆ getDefaultDecoratorMaterial()

static const osg::Material * agxOSG::SceneDecorator::getDefaultDecoratorMaterial ( )
static

◆ getDefaultLogoPosition()

static osg::Vec2 agxOSG::SceneDecorator::getDefaultLogoPosition ( )
static
Returns
the default logo position

◆ getEnable()

bool agxOSG::SceneDecorator::getEnable ( ) const

Return true if AGX rendering style is enabled.

◆ getEnableCalculateLightPositions()

bool agxOSG::SceneDecorator::getEnableCalculateLightPositions ( Lights  l) const

◆ getEnableLogo()

bool agxOSG::SceneDecorator::getEnableLogo ( ) const
Returns
true if rendering of logo is enabled

◆ getEnableRenderedCursor()

bool agxOSG::SceneDecorator::getEnableRenderedCursor ( ) const

◆ getEnableShaderState()

bool agxOSG::SceneDecorator::getEnableShaderState ( ) const
Returns
true if shader based default render state is being activated

◆ getEnableShadows()

bool agxOSG::SceneDecorator::getEnableShadows ( ) const
Returns
true if shadowing is enabled for sub-graph

◆ getFontName()

std::string agxOSG::SceneDecorator::getFontName ( ) const

Returns the font name.

◆ getFontSize()

float agxOSG::SceneDecorator::getFontSize ( ) const

Returns the font Size.

◆ getHud()

osg::MatrixTransform * agxOSG::SceneDecorator::getHud ( )
inline

Return a pointer to the hud group.

Any node added here will be rendered in the same coordinate system as the logo. Good for example console text. Calls to resetHUD will invalidate earlier returned HUDs.

Definition at line 169 of file SceneDecorator.h.

◆ getLightSource()

agxOSG::LightSource agxOSG::SceneDecorator::getLightSource ( Lights  l)

Get a wrapper for a LightSource with only AGX types.

Referenced by agxOSG::LightsSynchronization::operator()().

◆ getLogo()

osg::Texture2D * agxOSG::SceneDecorator::getLogo ( )

◆ getLogoDimension()

const osg::Vec2 & agxOSG::SceneDecorator::getLogoDimension ( )
Returns
the current logo dimension

◆ getLogoLocation()

LogoLocation agxOSG::SceneDecorator::getLogoLocation ( ) const
Returns
the specified logo position

◆ getMaximumLogoDimension()

osg::Vec2 agxOSG::SceneDecorator::getMaximumLogoDimension ( )
Returns
the maximum logo dimension

◆ getNonShadowedScene()

osg::Group * agxOSG::SceneDecorator::getNonShadowedScene ( ) const
Returns
the scene not casting nor receiving shadows

◆ getOSGLight()

osg::LightSource * agxOSG::SceneDecorator::getOSGLight ( Lights  l)

◆ getShadowedScene()

osg::Group * agxOSG::SceneDecorator::getShadowedScene ( ) const
Returns
the scene casting and receiving shadows

◆ getShadowLightSource()

osg::LightSource * agxOSG::SceneDecorator::getShadowLightSource ( )

Return a pointer to the light source used for calculating shadows.

◆ getShadowMethod()

ShadowMethod agxOSG::SceneDecorator::getShadowMethod ( ) const
inline
Returns
the current shadow method

Definition at line 249 of file SceneDecorator.h.

◆ init()

void agxOSG::SceneDecorator::init ( Lights  l)
protected

◆ insertChild()

virtual bool agxOSG::SceneDecorator::insertChild ( unsigned int  index,
osg::Node *  child 
)
inlinevirtual

Definition at line 172 of file SceneDecorator.h.

◆ isEnabled()

bool agxOSG::SceneDecorator::isEnabled ( ) const

Return true if AGX rendering style is enabled.

◆ lightToIndex()

static size_t agxOSG::SceneDecorator::lightToIndex ( Lights  l)
static

◆ removeChild() [1/2]

bool agxOSG::SceneDecorator::removeChild ( osg::Node *  child)
inline

Definition at line 174 of file SceneDecorator.h.

◆ removeChild() [2/2]

bool agxOSG::SceneDecorator::removeChild ( unsigned int  pos,
unsigned int  numChildrenToRemove = 1 
)
inline

Definition at line 175 of file SceneDecorator.h.

◆ removeChildren()

virtual bool agxOSG::SceneDecorator::removeChildren ( unsigned int  pos,
unsigned int  numChildrenToRemove 
)
inlinevirtual

Definition at line 178 of file SceneDecorator.h.

◆ replaceChild()

virtual bool agxOSG::SceneDecorator::replaceChild ( osg::Node *  origChild,
osg::Node *  newChild 
)
inlinevirtual

Definition at line 176 of file SceneDecorator.h.

◆ resetHUD()

void agxOSG::SceneDecorator::resetHUD ( )

◆ setBackgroundColor() [1/6]

void agxOSG::SceneDecorator::setBackgroundColor ( agx::Vec3  color)

Set a uniform background color using color.

◆ setBackgroundColor() [2/6]

void agxOSG::SceneDecorator::setBackgroundColor ( agx::Vec3  colorUL,
agx::Vec3  colorUR,
agx::Vec3  colorLL,
agx::Vec3  colorLR 
)

Set a gradient four color background (each corner) colorUL - Upper left color colorUR - Upper right color colorLL - Lower left color colorLR - Lower right color.

◆ setBackgroundColor() [3/6]

void agxOSG::SceneDecorator::setBackgroundColor ( agx::Vec3  upper,
agx::Vec3  lower 
)

Set a gradient two color background.

upper - Top color of the gradient color lower - Lower color of the gradient color

◆ setBackgroundColor() [4/6]

void agxOSG::SceneDecorator::setBackgroundColor ( const agx::Vec4f color)

Set a uniform background color using color.

◆ setBackgroundColor() [5/6]

void agxOSG::SceneDecorator::setBackgroundColor ( const agx::Vec4f color1,
const agx::Vec4f color2 
)

Set a gradient two color background.

upper - Top color of the gradient color lower - Lower color of the gradient color

◆ setBackgroundColor() [6/6]

void agxOSG::SceneDecorator::setBackgroundColor ( const agx::Vec4f colorUL,
const agx::Vec4f colorUR,
const agx::Vec4f colorLL,
const agx::Vec4f colorLR 
)

Set a gradient four color background (each corner) colorUL - Upper left color colorUR - Upper right color colorLL - Lower left color colorLR - Lower right color.

◆ setBaseTexture()

bool agxOSG::SceneDecorator::setBaseTexture ( const std::string &  imagePath)

Specif the path to the base texture on all decorated objects.

Returns
true if loading and creation of texture was successful.

◆ setChild()

virtual bool agxOSG::SceneDecorator::setChild ( unsigned int  i,
osg::Node *  node 
)
inlinevirtual

Definition at line 177 of file SceneDecorator.h.

◆ setEnable()

void agxOSG::SceneDecorator::setEnable ( bool  flag)

Enable/disable AGX rendering style for sub-graph.

◆ setEnableCalculateLightPositions()

void agxOSG::SceneDecorator::setEnableCalculateLightPositions ( Lights  l,
bool  f 
)

◆ setEnableLights()

void agxOSG::SceneDecorator::setEnableLights ( int  lightMask = ALL)

Reset and enable the specified lights.

Parameters
lightMask- Bit mask from the Light enum

◆ setEnableLogo()

void agxOSG::SceneDecorator::setEnableLogo ( bool  flag)

Enable/disable the rendering of the logo.

◆ setEnableRenderedCursor()

void agxOSG::SceneDecorator::setEnableRenderedCursor ( bool  enable)

Enable/disable the mouse cursor.

Parameters
enable- If true the cursor will be visible

◆ setEnableShaderState()

void agxOSG::SceneDecorator::setEnableShaderState ( bool  flag,
bool  lock = false 
)

Enable/disable the use of a shader based default render state.

◆ setEnableShadows()

void agxOSG::SceneDecorator::setEnableShadows ( bool  flag)

Enable/disable shadows for the sub-graph.

◆ setFontName()

void agxOSG::SceneDecorator::setFontName ( const std::string &  fontName)

Sets the font name.

◆ setFontSize()

void agxOSG::SceneDecorator::setFontSize ( const float &  fontSize)

Sets the font Size.

◆ setLogo()

void agxOSG::SceneDecorator::setLogo ( osg::Texture2D *  logo,
float  density = 1.0 
)

Might want to call updateLogo afterwards.

◆ setLogoFile()

bool agxOSG::SceneDecorator::setLogoFile ( const std::string &  filename,
float  density = 1.0 
)

Specify a path to the image with the logo and the pixel density (i.e. 2.0 for high DPI and 1.0 for 1:1)

◆ setLogoLocation()

void agxOSG::SceneDecorator::setLogoLocation ( LogoLocation  l)

Set the position of the logo from a list of predefined positions.

Parameters
l- An enum specifying the position. FREE to make it possible to set any position with setLogoPosition()

◆ setLogoPosition()

void agxOSG::SceneDecorator::setLogoPosition ( float  x,
float  y 
)

Set the position of logo into [x, y] if setLogoLocation(FREE) has been previously called Valid range is [0,1] where 0,0 is lower left corner.

◆ setMaximumLogoDimension()

void agxOSG::SceneDecorator::setMaximumLogoDimension ( float  x,
float  y 
)

Set the maximum logo dimension.

Values between 0.0f and 1.0f.

◆ setScreenPixelScale()

void agxOSG::SceneDecorator::setScreenPixelScale ( float  scale)

Specify the screen pixel scale (i.e. 2.0 for high DPI and 1.0 for 1:1)

◆ setShadowLightSource()

bool agxOSG::SceneDecorator::setShadowLightSource ( Lights  l)

Specify which light source is used for calculating shadows.

◆ setShadowMethod()

void agxOSG::SceneDecorator::setShadowMethod ( ShadowMethod  m)

Specify which method is used for generating shadows,.

◆ setText() [1/2]

void agxOSG::SceneDecorator::setText ( int  row,
const agx::String text 
)

Print a row of text.

◆ setText() [2/2]

void agxOSG::SceneDecorator::setText ( int  row,
const agx::String text,
const agx::Vec4f color 
)

◆ updateCursorPosition()

void agxOSG::SceneDecorator::updateCursorPosition ( float  x,
float  y 
)

◆ updateLogo()

void agxOSG::SceneDecorator::updateLogo ( )
protected

Updates the logo scale and position, depending on logo size, and window width and height.

◆ updateWindowSize()

void agxOSG::SceneDecorator::updateWindowSize ( int  sizeX,
int  sizeY 
)

Updates information about the window size in x and y (for logo scaling).

Member Data Documentation

◆ m_backgroundColors

osg::ref_ptr<osg::Vec3Array> agxOSG::SceneDecorator::m_backgroundColors
protected

Definition at line 373 of file SceneDecorator.h.

◆ m_backgroundQuad

osg::observer_ptr<osg::Geometry> agxOSG::SceneDecorator::m_backgroundQuad
protected

Definition at line 342 of file SceneDecorator.h.

◆ m_backgroundRoot

osg::ref_ptr<osg::Switch> agxOSG::SceneDecorator::m_backgroundRoot
protected

Definition at line 341 of file SceneDecorator.h.

◆ m_baseTexturePath

std::string agxOSG::SceneDecorator::m_baseTexturePath
protected

Definition at line 354 of file SceneDecorator.h.

◆ m_calculateLightPosition

bool agxOSG::SceneDecorator::m_calculateLightPosition[3]
protected

Definition at line 379 of file SceneDecorator.h.

◆ m_currentRoot

osg::ref_ptr<osg::Group> agxOSG::SceneDecorator::m_currentRoot
protected

Definition at line 338 of file SceneDecorator.h.

◆ m_cursorTransform

osg::ref_ptr<osg::Node> agxOSG::SceneDecorator::m_cursorTransform
protected

Definition at line 381 of file SceneDecorator.h.

◆ m_decoratorStateSet

osg::ref_ptr<osg::StateSet> agxOSG::SceneDecorator::m_decoratorStateSet
protected

Definition at line 369 of file SceneDecorator.h.

◆ m_disabledNonShadowRoot

osg::ref_ptr<osg::Group> agxOSG::SceneDecorator::m_disabledNonShadowRoot
protected

Definition at line 340 of file SceneDecorator.h.

◆ m_disabledRoot

osg::ref_ptr<osg::Group> agxOSG::SceneDecorator::m_disabledRoot
protected

Definition at line 339 of file SceneDecorator.h.

◆ m_enabled

bool agxOSG::SceneDecorator::m_enabled
protected

Definition at line 351 of file SceneDecorator.h.

◆ m_enabledNonShadowRoot

osg::ref_ptr<osg::Group> agxOSG::SceneDecorator::m_enabledNonShadowRoot
protected

Definition at line 337 of file SceneDecorator.h.

◆ m_enabledRoot

osg::ref_ptr<osg::Group> agxOSG::SceneDecorator::m_enabledRoot
protected

Definition at line 336 of file SceneDecorator.h.

◆ m_enabledShadows

bool agxOSG::SceneDecorator::m_enabledShadows
protected

Definition at line 350 of file SceneDecorator.h.

◆ m_fontName

std::string agxOSG::SceneDecorator::m_fontName
protected

Definition at line 356 of file SceneDecorator.h.

◆ m_fontSize

float agxOSG::SceneDecorator::m_fontSize
protected

Definition at line 357 of file SceneDecorator.h.

◆ m_hudCamera

osg::ref_ptr<osg::Camera> agxOSG::SceneDecorator::m_hudCamera
protected

Definition at line 382 of file SceneDecorator.h.

◆ m_hudProjection

osg::ref_ptr<osg::Projection> agxOSG::SceneDecorator::m_hudProjection
protected

Definition at line 383 of file SceneDecorator.h.

◆ m_hudRoot

osg::ref_ptr<osg::MatrixTransform> agxOSG::SceneDecorator::m_hudRoot
protected

Definition at line 347 of file SceneDecorator.h.

◆ m_lightSources

agx::Vector<osg::ref_ptr<osg::LightSource> > agxOSG::SceneDecorator::m_lightSources
protected

Definition at line 371 of file SceneDecorator.h.

◆ m_logoEnabled

bool agxOSG::SceneDecorator::m_logoEnabled
protected

Definition at line 352 of file SceneDecorator.h.

◆ m_logoLocation

LogoLocation agxOSG::SceneDecorator::m_logoLocation
protected

Definition at line 343 of file SceneDecorator.h.

◆ m_logoPixelDensity

float agxOSG::SceneDecorator::m_logoPixelDensity
protected

Definition at line 363 of file SceneDecorator.h.

◆ m_logoPosition

osg::Vec2 agxOSG::SceneDecorator::m_logoPosition
protected

Definition at line 349 of file SceneDecorator.h.

◆ m_logoSize

osg::Vec2 agxOSG::SceneDecorator::m_logoSize
protected

Definition at line 362 of file SceneDecorator.h.

◆ m_logoStateSet

osg::ref_ptr<osg::StateSet> agxOSG::SceneDecorator::m_logoStateSet
protected

Definition at line 348 of file SceneDecorator.h.

◆ m_logoSwitch

osg::ref_ptr<osg::Switch> agxOSG::SceneDecorator::m_logoSwitch
protected

Definition at line 346 of file SceneDecorator.h.

◆ m_logoTexture

osg::ref_ptr<osg::Texture2D> agxOSG::SceneDecorator::m_logoTexture
protected

Definition at line 344 of file SceneDecorator.h.

◆ m_logoTransform

osg::ref_ptr<osg::PositionAttitudeTransform> agxOSG::SceneDecorator::m_logoTransform
protected

Definition at line 345 of file SceneDecorator.h.

◆ m_maximumLogoDimensionX

float agxOSG::SceneDecorator::m_maximumLogoDimensionX
protected

Definition at line 360 of file SceneDecorator.h.

◆ m_maximumLogoDimensionY

float agxOSG::SceneDecorator::m_maximumLogoDimensionY
protected

Definition at line 361 of file SceneDecorator.h.

◆ m_screenPixelScale

float agxOSG::SceneDecorator::m_screenPixelScale
protected

Definition at line 364 of file SceneDecorator.h.

◆ m_shaderSupportAvailable

bool agxOSG::SceneDecorator::m_shaderSupportAvailable
protected

Definition at line 386 of file SceneDecorator.h.

◆ m_shadowedScene

osg::ref_ptr<osgShadow::ShadowedScene> agxOSG::SceneDecorator::m_shadowedScene
protected

Definition at line 366 of file SceneDecorator.h.

◆ m_ShadowlightSource

osg::ref_ptr<osg::LightSource> agxOSG::SceneDecorator::m_ShadowlightSource
protected

Definition at line 372 of file SceneDecorator.h.

◆ m_shadowMethod

ShadowMethod agxOSG::SceneDecorator::m_shadowMethod
protected

Definition at line 353 of file SceneDecorator.h.

◆ m_shadowTechnique

osg::ref_ptr<osgShadow::ShadowTechnique> agxOSG::SceneDecorator::m_shadowTechnique
protected

Definition at line 367 of file SceneDecorator.h.

◆ m_text

agx::Vector<osgText::Text *> agxOSG::SceneDecorator::m_text
protected

Definition at line 355 of file SceneDecorator.h.

◆ m_useShaderState

bool agxOSG::SceneDecorator::m_useShaderState
protected

Definition at line 385 of file SceneDecorator.h.

◆ m_windowSizeX

int agxOSG::SceneDecorator::m_windowSizeX
protected

Definition at line 358 of file SceneDecorator.h.

◆ m_windowSizeY

int agxOSG::SceneDecorator::m_windowSizeY
protected

Definition at line 359 of file SceneDecorator.h.

◆ s_decoratorMaterial

osg::ref_ptr<osg::Material> agxOSG::SceneDecorator::s_decoratorMaterial
staticprotected

Definition at line 388 of file SceneDecorator.h.


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