OpenWalnut  1.5.0dev
Public Member Functions | Protected Attributes | List of all members
WGEViewer::QueryCallback Class Reference

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

#include <WGEViewer.h>

+ Inheritance diagram for WGEViewer::QueryCallback:
+ Collaboration diagram for WGEViewer::QueryCallback:

Public Member Functions

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

Protected Attributes

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

Detailed Description

Small class used for querying glGet info during rendering.

Definition at line 379 of file WGEViewer.h.

Constructor & Destructor Documentation

◆ QueryCallback()

WGEViewer::QueryCallback::QueryCallback ( osg::ref_ptr< WGECamera 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 289 of file WGEViewer.cpp.

◆ ~QueryCallback()

WGEViewer::QueryCallback::~QueryCallback ( )
virtual

Destructor.

Definition at line 297 of file WGEViewer.cpp.

Member Function Documentation

◆ getVendor()

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

Returns the queried vendor string.

Returns
the vendor

Definition at line 312 of file WGEViewer.cpp.

◆ operator()()

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

Query operator.

Parameters
renderInforender info object

Definition at line 302 of file WGEViewer.cpp.

Member Data Documentation

◆ m_camera

osg::ref_ptr< WGECamera > WGEViewer::QueryCallback::m_camera
protected

The camera to which this was connected.

Definition at line 423 of file WGEViewer.h.

◆ m_run

WBoolFlag::SPtr WGEViewer::QueryCallback::m_run
protected

True if callback was run once.

Definition at line 418 of file WGEViewer.h.

◆ m_vendor

std::string WGEViewer::QueryCallback::m_vendor
mutableprotected

The vendor string.

Definition at line 413 of file WGEViewer.h.


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