VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
makVrv::DtOsgStateComponent Class Reference

Base class for components that affect the state on a subset of the scene graph, injecting state, shaders, or other information. More...

Inheritance diagram for makVrv::DtOsgStateComponent:
Inheritance graph
[legend]

Public Member Functions

 DtOsgStateComponent (DtDe &de, const DtOsgStateComponentContext *context=0L)
 CTOR.
const DtOsgStateComponentContextgetContext () const
 Gets the context under which this component operates.
virtual bool install (osg::StateSet *stateset)=0
 Install this component on a state set.
virtual bool uninstall (osg::StateSet *stateset)=0
 Uninstall this component from a state set.

Protected Member Functions

virtual ~DtOsgStateComponent ()
 DTOR.
std::string loadShaderSource (const std::string &strFileName) const
 Loads shader source code from a path.

Private Attributes

osg::ref_ptr< const
DtOsgStateComponentContext
myContext
DtDemyDe
DtOsgShaderFilesCachemyShaderFilesCache

Detailed Description

Base class for components that affect the state on a subset of the scene graph, injecting state, shaders, or other information.

Constructor & Destructor Documentation

makVrv::DtOsgStateComponent::DtOsgStateComponent ( DtDe de,
const DtOsgStateComponentContext context = 0L 
)

CTOR.

virtual makVrv::DtOsgStateComponent::~DtOsgStateComponent ( )
protectedvirtual

DTOR.

Member Function Documentation

const DtOsgStateComponentContext* makVrv::DtOsgStateComponent::getContext ( ) const

Gets the context under which this component operates.

virtual bool makVrv::DtOsgStateComponent::install ( osg::StateSet *  stateset)
pure virtual

Install this component on a state set.

Implemented in makVrv::DtOsgLightingComponent, makVrv::DtOsgGlobalShaderComponent, and makVrv::DtOsgFogComponent.

virtual bool makVrv::DtOsgStateComponent::uninstall ( osg::StateSet *  stateset)
pure virtual

Uninstall this component from a state set.

Implemented in makVrv::DtOsgLightingComponent, makVrv::DtOsgGlobalShaderComponent, and makVrv::DtOsgFogComponent.

std::string makVrv::DtOsgStateComponent::loadShaderSource ( const std::string &  strFileName) const
protected

Loads shader source code from a path.

Member Data Documentation

osg::ref_ptr<const DtOsgStateComponentContext> makVrv::DtOsgStateComponent::myContext
private
DtDe& makVrv::DtOsgStateComponent::myDe
private
DtOsgShaderFilesCache& makVrv::DtOsgStateComponent::myShaderFilesCache
private

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)