OpenSceneGraph  3.0.1
Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes
osg::QueryGeometry Class Reference
Inheritance diagram for osg::QueryGeometry:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 QueryGeometry (const std::string &oqnName=std::string(""))
 ~QueryGeometry ()
void reset ()
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 Draw Geometry directly ignoring an OpenGL display list which could be attached.
unsigned int getNumPixels (const osg::Camera *cam)
virtual void releaseGLObjects (osg::State *state=0) const
 If State is non-zero, this function releases OpenGL objects for the specified graphics context.

Static Public Member Functions

static void deleteQueryObject (unsigned int contextID, GLuint handle)
static void flushDeletedQueryObjects (unsigned int contextID, double currentTime, double &availableTime)
static void discardDeletedQueryObjects (unsigned int contextID)

Protected Types

typedef std::map< const
osg::Camera *, TestResult
ResultMap

Protected Attributes

ResultMap _results
OpenThreads::Mutex _mapMutex
std::string _oqnName

Member Typedef Documentation

typedef std::map< const osg::Camera*, TestResult > osg::QueryGeometry::ResultMap [protected]

Constructor & Destructor Documentation

osg::QueryGeometry::QueryGeometry ( const std::string &  oqnName = std::string(""))
osg::QueryGeometry::~QueryGeometry ( )

Member Function Documentation

static void osg::QueryGeometry::deleteQueryObject ( unsigned int  contextID,
GLuint  handle 
) [static]
static void osg::QueryGeometry::discardDeletedQueryObjects ( unsigned int  contextID) [static]
virtual void osg::QueryGeometry::drawImplementation ( osg::RenderInfo renderInfo) const [virtual]

Draw Geometry directly ignoring an OpenGL display list which could be attached.

This is the internal draw method which does the drawing itself, and is the method to override when deriving from Geometry for user-drawn objects.

Reimplemented from osg::Geometry.

static void osg::QueryGeometry::flushDeletedQueryObjects ( unsigned int  contextID,
double  currentTime,
double &  availableTime 
) [static]
unsigned int osg::QueryGeometry::getNumPixels ( const osg::Camera cam)
virtual void osg::QueryGeometry::releaseGLObjects ( osg::State state = 0) const [virtual]

If State is non-zero, this function releases OpenGL objects for the specified graphics context.

Otherwise, releases OpenGL objects for all graphics contexts.

Reimplemented from osg::Geometry.

void osg::QueryGeometry::reset ( )

Member Data Documentation

OpenThreads::Mutex osg::QueryGeometry::_mapMutex [mutable, protected]
std::string osg::QueryGeometry::_oqnName [protected]

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

osg logo
Generated at Mon Oct 3 2011 12:39:43 for the OpenSceneGraph by doxygen 1.7.5.