OpenWalnut 1.2.5
Public Member Functions | Protected Attributes

WGEViewer::QueryCallback Class Reference

Small class used for querying glGet info during rendering. More...

#include <WGEViewer.h>

Inheritance diagram for WGEViewer::QueryCallback:

List of all members.

Public Member Functions

 QueryCallback (osg::ref_ptr< osg::Camera > camera, WBoolFlag::SPtr run)
 Constructor.
virtual ~QueryCallback ()
 Destructor.
virtual void operator() (osg::RenderInfo &renderInfo) const
 Query operator.
std::string getVendor () const
 Returns the queried vendor string.

Protected Attributes

std::string m_vendor
 The vendor string.
WBoolFlag::SPtr m_run
 True if callback was run once.
osg::ref_ptr< osg::Camera > m_camera
 The camera to which this was connected.

Detailed Description

Small class used for querying glGet info during rendering.

Definition at line 234 of file WGEViewer.h.


Constructor & Destructor Documentation

WGEViewer::QueryCallback::QueryCallback ( osg::ref_ptr< osg::Camera >  camera,
WBoolFlag::SPtr  run 
)

Constructor.

Automatically de-registers from camera after one run.

Parameters:
camerathe cam to which this was registered
runnotifies the flag when run.

Definition at line 220 of file WGEViewer.cpp.

WGEViewer::QueryCallback::~QueryCallback ( ) [virtual]

Destructor.

Definition at line 228 of file WGEViewer.cpp.


Member Function Documentation

std::string WGEViewer::QueryCallback::getVendor ( ) const

Returns the queried vendor string.

Returns:
the vendor

Definition at line 243 of file WGEViewer.cpp.

void WGEViewer::QueryCallback::operator() ( osg::RenderInfo &  renderInfo) const [virtual]

Query operator.

Parameters:
renderInforender info object

Definition at line 233 of file WGEViewer.cpp.


Member Data Documentation

osg::ref_ptr<osg::Camera> WGEViewer::QueryCallback::m_camera [protected]

The camera to which this was connected.

Definition at line 278 of file WGEViewer.h.

True if callback was run once.

Definition at line 273 of file WGEViewer.h.

std::string WGEViewer::QueryCallback::m_vendor [mutable, protected]

The vendor string.

Definition at line 268 of file WGEViewer.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends