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

Simple state/glmodes class for handling setting up modes It can now handle generic state modes and attributes so it should work for any osg states needed for indirect. More...

Public Member Functions

 DtIndirectGeometryStateManager ()
 constructor, currently does nothing More...
 
 ~DtIndirectGeometryStateManager ()
 destructor, currently does nothing More...
 
virtual int stateId (const DtIndirectOpenGLState &state)
 get the state id for this state More...
 
virtual bool applyState (int stateId)
 apply the state More...
 
virtual void restoreAllModes (osg::State &state)
 restore all modes that have been added to the manager More...
 
virtual void setStateCaching (bool val)
 opengl call optimization/minimization between calls to apply() off by default More...
 
virtual bool stateCaching (void) const
 opengl call optimization/minimization between calls to apply() off by default More...
 

Protected Types

typedef
tbb::concurrent_unordered_map
< DtIndirectOpenGLState, int,
DtIndirectOpenGLStateHasher
MapStateToId
 
typedef
tbb::concurrent_unordered_map
< int, DtIndirectOpenGLState
MapIdToState
 
typedef
tbb::concurrent_unordered_set
< int
ConcurrentSetInts
 

Protected Attributes

MapStateToId myMapStateToId
 
MapIdToState myMapIdToState
 
ConcurrentSetInts myUniqueModes
 
ConcurrentSetInts myUniqueAttributes
 
tbb::atomic< intmyNextStateId
 
DtIndirectOpenGLState myLastAppliedState
 
bool myStateCaching
 

Private Member Functions

 DtIndirectGeometryStateManager (const DtIndirectGeometryStateManager &other)
 Copy Constructor not implemented – Copy Not Allowed. More...
 
DtIndirectGeometryStateManageroperator= (const DtIndirectGeometryStateManager &other)
 Assignment Operator Not implemented – Assignment Not Allowed. More...
 

Detailed Description

Simple state/glmodes class for handling setting up modes It can now handle generic state modes and attributes so it should work for any osg states needed for indirect.

Member Typedef Documentation

typedef tbb::concurrent_unordered_map<int, DtIndirectOpenGLState> makVrv::DtIndirectGeometryStateManager::MapIdToState
protected
typedef tbb::concurrent_unordered_set<int> makVrv::DtIndirectGeometryStateManager::ConcurrentSetInts
protected

Constructor & Destructor Documentation

makVrv::DtIndirectGeometryStateManager::DtIndirectGeometryStateManager ( )

constructor, currently does nothing

makVrv::DtIndirectGeometryStateManager::~DtIndirectGeometryStateManager ( )

destructor, currently does nothing

makVrv::DtIndirectGeometryStateManager::DtIndirectGeometryStateManager ( const DtIndirectGeometryStateManager other)
private

Copy Constructor not implemented – Copy Not Allowed.

Member Function Documentation

DtIndirectGeometryStateManager& makVrv::DtIndirectGeometryStateManager::operator= ( const DtIndirectGeometryStateManager other)
private

Assignment Operator Not implemented – Assignment Not Allowed.

virtual int makVrv::DtIndirectGeometryStateManager::stateId ( const DtIndirectOpenGLState state)
virtual

get the state id for this state

virtual bool makVrv::DtIndirectGeometryStateManager::applyState ( int  stateId)
virtual

apply the state

virtual void makVrv::DtIndirectGeometryStateManager::restoreAllModes ( osg::State &  state)
virtual

restore all modes that have been added to the manager

virtual void makVrv::DtIndirectGeometryStateManager::setStateCaching ( bool  val)
virtual

opengl call optimization/minimization between calls to apply() off by default

virtual bool makVrv::DtIndirectGeometryStateManager::stateCaching ( void  ) const
virtual

opengl call optimization/minimization between calls to apply() off by default

Member Data Documentation

MapStateToId makVrv::DtIndirectGeometryStateManager::myMapStateToId
protected
MapIdToState makVrv::DtIndirectGeometryStateManager::myMapIdToState
protected
ConcurrentSetInts makVrv::DtIndirectGeometryStateManager::myUniqueModes
protected
ConcurrentSetInts makVrv::DtIndirectGeometryStateManager::myUniqueAttributes
protected
tbb::atomic<int> makVrv::DtIndirectGeometryStateManager::myNextStateId
protected
DtIndirectOpenGLState makVrv::DtIndirectGeometryStateManager::myLastAppliedState
protected
bool makVrv::DtIndirectGeometryStateManager::myStateCaching
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)