OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osg::GraphicsCostEstimator Class Reference

#include <GraphicsCostEstimator.h>

Inheritance diagram for osg::GraphicsCostEstimator:
Inheritance graph
[legend]
Collaboration diagram for osg::GraphicsCostEstimator:
Collaboration graph
[legend]

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 ()
 

Detailed Description

Definition at line 107 of file GraphicsCostEstimator.h.

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

Definition at line 118 of file GraphicsCostEstimator.h.

CostPair osg::GraphicsCostEstimator::estimateCompileCost ( const osg::Texture texture) const
inline

Definition at line 121 of file GraphicsCostEstimator.h.

CostPair osg::GraphicsCostEstimator::estimateCompileCost ( const osg::Program program) const
inline

Definition at line 124 of file GraphicsCostEstimator.h.

CostPair osg::GraphicsCostEstimator::estimateCompileCost ( const osg::Node node) const
CostPair osg::GraphicsCostEstimator::estimateDrawCost ( const osg::Geometry geometry) const
inline

Definition at line 119 of file GraphicsCostEstimator.h.

CostPair osg::GraphicsCostEstimator::estimateDrawCost ( const osg::Texture texture) const
inline

Definition at line 122 of file GraphicsCostEstimator.h.

CostPair osg::GraphicsCostEstimator::estimateDrawCost ( const osg::Program program) const
inline

Definition at line 125 of file GraphicsCostEstimator.h.

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

Definition at line 134 of file GraphicsCostEstimator.h.

osg::ref_ptr<ProgramCostEstimator> osg::GraphicsCostEstimator::_programEstimator
protected

Definition at line 136 of file GraphicsCostEstimator.h.

osg::ref_ptr<TextureCostEstimator> osg::GraphicsCostEstimator::_textureEstimator
protected

Definition at line 135 of file GraphicsCostEstimator.h.


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