OpenCOVER
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
opencover::coVRStatsDisplay Class Reference

#include <coVRStatsDisplay.h>

Public Types

enum  StatsType {
  NO_STATS = 0 , FRAME_RATE = 1 , VIEWER_STATS = 2 , CAMERA_SCENE_STATS = 3 ,
  VIEWER_SCENE_STATS = 4 , LAST = 5
}
 

Public Member Functions

 coVRStatsDisplay ()
 
virtual ~coVRStatsDisplay ()
 
double getBlockMultiplier () const
 
void reset ()
 
osg::Camera * getCamera ()
 
const osg::Camera * getCamera () const
 
void showStats (int whichStats, osgViewer::ViewerBase *viewer)
 
void enableGpuStats (bool enable, const std::string &devname=std::string())
 
void enableRhrStats (bool enable)
 
void enableFinishStats (bool enable)
 
void enableSyncStats (bool enable)
 
virtual void getUsage (osg::ApplicationUsage &usage) const
 

Protected Member Functions

void setUpHUDCamera (osgViewer::ViewerBase *viewer)
 
osg::Geometry * createBackgroundRectangle (const osg::Vec3 &pos, const float width, const float height, osg::Vec4 &color)
 
osg::Geometry * createGeometry (const osg::Vec3 &pos, float height, const osg::Vec4 &colour, unsigned int numBlocks)
 
osg::Geometry * createFrameMarkers (const osg::Vec3 &pos, float height, const osg::Vec4 &colour, unsigned int numBlocks)
 
osg::Geometry * createTick (const osg::Vec3 &pos, float height, const osg::Vec4 &colour, unsigned int numTicks)
 
osg::Node * createCameraTimeStats (const std::string &font, osg::Vec3 &pos, float startBlocks, bool acquireGPUStats, float characterSize, osg::Stats *viewerStats, osg::Camera *camera)
 
void setUpScene (osgViewer::ViewerBase *viewer)
 
void updateThreadingModelText (osgViewer::ViewerBase::ThreadingModel tm)
 

Protected Attributes

int _statsType
 
bool _initialized
 
osg::ref_ptr< osg::Camera > _camera
 
osg::ref_ptr< osg::Switch > _switch
 
osgViewer::ViewerBase::ThreadingModel _threadingModel
 
osg::ref_ptr< osgText::Text > _threadingModelText
 
bool _finishStats = true
 
bool _syncStats = true
 
bool _gpuStats = false
 
std::string _gpuName
 
bool _rhrStats = false
 
unsigned int _frameRateChildNum
 
unsigned int _gpuMemChildNum
 
unsigned int _gpuPCIeChildNum
 
unsigned int _gpuClockChildNum
 
unsigned int _gpuUtilChildNum
 
unsigned int _threadingModelChildNum
 
unsigned int _rhrFpsChildNum
 
unsigned int _rhrBandwidthChildNum
 
unsigned int _rhrDelayChildNum
 
unsigned int _rhrSkippedChildNum
 
unsigned int _viewerChildNum
 
unsigned int _gpuChildNum
 
unsigned int _cameraSceneChildNum
 
unsigned int _viewerSceneChildNum
 
unsigned int _numBlocks
 
double _blockMultiplier
 
float _statsWidth
 
float _statsHeight
 

Friends

class VRViewer
 

Member Enumeration Documentation

◆ StatsType

Enumerator
NO_STATS 
FRAME_RATE 
VIEWER_STATS 
CAMERA_SCENE_STATS 
VIEWER_SCENE_STATS 
LAST 

Constructor & Destructor Documentation

◆ coVRStatsDisplay()

opencover::coVRStatsDisplay::coVRStatsDisplay ( )

◆ ~coVRStatsDisplay()

virtual opencover::coVRStatsDisplay::~coVRStatsDisplay ( )
inlinevirtual

Member Function Documentation

◆ createBackgroundRectangle()

osg::Geometry * opencover::coVRStatsDisplay::createBackgroundRectangle ( const osg::Vec3 &  pos,
const float  width,
const float  height,
osg::Vec4 &  color 
)
protected

◆ createCameraTimeStats()

osg::Node * opencover::coVRStatsDisplay::createCameraTimeStats ( const std::string &  font,
osg::Vec3 &  pos,
float  startBlocks,
bool  acquireGPUStats,
float  characterSize,
osg::Stats *  viewerStats,
osg::Camera *  camera 
)
protected

◆ createFrameMarkers()

osg::Geometry * opencover::coVRStatsDisplay::createFrameMarkers ( const osg::Vec3 &  pos,
float  height,
const osg::Vec4 &  colour,
unsigned int  numBlocks 
)
protected

◆ createGeometry()

osg::Geometry * opencover::coVRStatsDisplay::createGeometry ( const osg::Vec3 &  pos,
float  height,
const osg::Vec4 &  colour,
unsigned int  numBlocks 
)
protected

◆ createTick()

osg::Geometry * opencover::coVRStatsDisplay::createTick ( const osg::Vec3 &  pos,
float  height,
const osg::Vec4 &  colour,
unsigned int  numTicks 
)
protected

◆ enableFinishStats()

void opencover::coVRStatsDisplay::enableFinishStats ( bool  enable)

◆ enableGpuStats()

void opencover::coVRStatsDisplay::enableGpuStats ( bool  enable,
const std::string &  devname = std::string() 
)

◆ enableRhrStats()

void opencover::coVRStatsDisplay::enableRhrStats ( bool  enable)

◆ enableSyncStats()

void opencover::coVRStatsDisplay::enableSyncStats ( bool  enable)

◆ getBlockMultiplier()

double opencover::coVRStatsDisplay::getBlockMultiplier ( ) const
inline

◆ getCamera() [1/2]

osg::Camera * opencover::coVRStatsDisplay::getCamera ( )
inline

◆ getCamera() [2/2]

const osg::Camera * opencover::coVRStatsDisplay::getCamera ( ) const
inline

◆ getUsage()

virtual void opencover::coVRStatsDisplay::getUsage ( osg::ApplicationUsage &  usage) const
virtual

Get the keyboard and mouse usage of this manipulator.

◆ reset()

void opencover::coVRStatsDisplay::reset ( )

◆ setUpHUDCamera()

void opencover::coVRStatsDisplay::setUpHUDCamera ( osgViewer::ViewerBase *  viewer)
protected

◆ setUpScene()

void opencover::coVRStatsDisplay::setUpScene ( osgViewer::ViewerBase *  viewer)
protected

◆ showStats()

void opencover::coVRStatsDisplay::showStats ( int  whichStats,
osgViewer::ViewerBase *  viewer 
)

◆ updateThreadingModelText()

void opencover::coVRStatsDisplay::updateThreadingModelText ( osgViewer::ViewerBase::ThreadingModel  tm)
protected

Friends And Related Function Documentation

◆ VRViewer

friend class VRViewer
friend

Member Data Documentation

◆ _blockMultiplier

double opencover::coVRStatsDisplay::_blockMultiplier
protected

◆ _camera

osg::ref_ptr<osg::Camera> opencover::coVRStatsDisplay::_camera
protected

◆ _cameraSceneChildNum

unsigned int opencover::coVRStatsDisplay::_cameraSceneChildNum
protected

◆ _finishStats

bool opencover::coVRStatsDisplay::_finishStats = true
protected

◆ _frameRateChildNum

unsigned int opencover::coVRStatsDisplay::_frameRateChildNum
protected

◆ _gpuChildNum

unsigned int opencover::coVRStatsDisplay::_gpuChildNum
protected

◆ _gpuClockChildNum

unsigned int opencover::coVRStatsDisplay::_gpuClockChildNum
protected

◆ _gpuMemChildNum

unsigned int opencover::coVRStatsDisplay::_gpuMemChildNum
protected

◆ _gpuName

std::string opencover::coVRStatsDisplay::_gpuName
protected

◆ _gpuPCIeChildNum

unsigned int opencover::coVRStatsDisplay::_gpuPCIeChildNum
protected

◆ _gpuStats

bool opencover::coVRStatsDisplay::_gpuStats = false
protected

◆ _gpuUtilChildNum

unsigned int opencover::coVRStatsDisplay::_gpuUtilChildNum
protected

◆ _initialized

bool opencover::coVRStatsDisplay::_initialized
protected

◆ _numBlocks

unsigned int opencover::coVRStatsDisplay::_numBlocks
protected

◆ _rhrBandwidthChildNum

unsigned int opencover::coVRStatsDisplay::_rhrBandwidthChildNum
protected

◆ _rhrDelayChildNum

unsigned int opencover::coVRStatsDisplay::_rhrDelayChildNum
protected

◆ _rhrFpsChildNum

unsigned int opencover::coVRStatsDisplay::_rhrFpsChildNum
protected

◆ _rhrSkippedChildNum

unsigned int opencover::coVRStatsDisplay::_rhrSkippedChildNum
protected

◆ _rhrStats

bool opencover::coVRStatsDisplay::_rhrStats = false
protected

◆ _statsHeight

float opencover::coVRStatsDisplay::_statsHeight
protected

◆ _statsType

int opencover::coVRStatsDisplay::_statsType
protected

◆ _statsWidth

float opencover::coVRStatsDisplay::_statsWidth
protected

◆ _switch

osg::ref_ptr<osg::Switch> opencover::coVRStatsDisplay::_switch
protected

◆ _syncStats

bool opencover::coVRStatsDisplay::_syncStats = true
protected

◆ _threadingModel

osgViewer::ViewerBase::ThreadingModel opencover::coVRStatsDisplay::_threadingModel
protected

◆ _threadingModelChildNum

unsigned int opencover::coVRStatsDisplay::_threadingModelChildNum
protected

◆ _threadingModelText

osg::ref_ptr<osgText::Text> opencover::coVRStatsDisplay::_threadingModelText
protected

◆ _viewerChildNum

unsigned int opencover::coVRStatsDisplay::_viewerChildNum
protected

◆ _viewerSceneChildNum

unsigned int opencover::coVRStatsDisplay::_viewerSceneChildNum
protected

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