openscenegraph
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osg::GraphicsCostEstimator Class Reference
Inheritance diagram for osg::GraphicsCostEstimator:
osg::Referenced

Public Member Functions

 GraphicsCostEstimator ()
void setDefaults ()
void calibrate (osg::RenderInfo &renderInfo)
CostPair estimateCompileCost (const osg::Geometry *geometry) const
CostPair estimateDrawCost (const osg::Geometry *geometry) const
CostPair estimateCompileCost (const osg::Texture *texture) const
CostPair estimateDrawCost (const osg::Texture *texture) const
CostPair estimateCompileCost (const osg::Program *program) const
CostPair estimateDrawCost (const osg::Program *program) const
CostPair estimateCompileCost (const osg::Node *node) const
CostPair estimateDrawCost (const osg::Node *node) const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const

Protected Member Functions

virtual ~GraphicsCostEstimator ()
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Protected Attributes

osg::ref_ptr
< GeometryCostEstimator
_geometryEstimator
osg::ref_ptr
< TextureCostEstimator
_textureEstimator
osg::ref_ptr
< ProgramCostEstimator
_programEstimator
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
static bool getThreadSafeReferenceCounting ()
static void setDeleteHandler (DeleteHandler *handler)
static DeleteHandlergetDeleteHandler ()

Constructor & Destructor Documentation

osg::GraphicsCostEstimator::GraphicsCostEstimator ( )
virtual osg::GraphicsCostEstimator::~GraphicsCostEstimator ( )
protectedvirtual

Member Function Documentation

void osg::GraphicsCostEstimator::calibrate ( osg::RenderInfo renderInfo)

calibrate the costs of various compile and draw operations

CostPair osg::GraphicsCostEstimator::estimateCompileCost ( const osg::Geometry geometry) const
inline
CostPair osg::GraphicsCostEstimator::estimateCompileCost ( const osg::Texture texture) const
inline
CostPair osg::GraphicsCostEstimator::estimateCompileCost ( const osg::Program program) const
inline
CostPair osg::GraphicsCostEstimator::estimateCompileCost ( const osg::Node node) const
CostPair osg::GraphicsCostEstimator::estimateDrawCost ( const osg::Geometry geometry) const
inline
CostPair osg::GraphicsCostEstimator::estimateDrawCost ( const osg::Texture texture) const
inline
CostPair osg::GraphicsCostEstimator::estimateDrawCost ( const osg::Program program) const
inline
CostPair osg::GraphicsCostEstimator::estimateDrawCost ( const osg::Node node) const
void osg::GraphicsCostEstimator::setDefaults ( )

set defaults for computing the costs.

Member Data Documentation

osg::ref_ptr<GeometryCostEstimator> osg::GraphicsCostEstimator::_geometryEstimator
protected
osg::ref_ptr<ProgramCostEstimator> osg::GraphicsCostEstimator::_programEstimator
protected
osg::ref_ptr<TextureCostEstimator> osg::GraphicsCostEstimator::_textureEstimator
protected

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