OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | 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::View *myview)
 
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 ()
 

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
 
unsigned int _frameRateChildNum
 
unsigned int _viewerChildNum
 
unsigned int _cameraSceneChildNum
 
unsigned int _viewerSceneChildNum
 
unsigned int _numBlocks
 
double _blockMultiplier
 
float _statsWidth
 
float _statsHeight
 

Member Enumeration Documentation

Enumerator
NO_STATS 
FRAME_RATE 
VIEWER_STATS 
CAMERA_SCENE_STATS 
VIEWER_SCENE_STATS 
LAST 

Constructor & Destructor Documentation

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

Member Function Documentation

osg::Geometry* opencover::coVRStatsDisplay::createBackgroundRectangle ( const osg::Vec3 &  pos,
const float  width,
const float  height,
osg::Vec4 &  color 
)
protected
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
osg::Geometry* opencover::coVRStatsDisplay::createFrameMarkers ( const osg::Vec3 &  pos,
float  height,
const osg::Vec4 &  colour,
unsigned int  numBlocks 
)
protected
osg::Geometry* opencover::coVRStatsDisplay::createGeometry ( const osg::Vec3 &  pos,
float  height,
const osg::Vec4 &  colour,
unsigned int  numBlocks 
)
protected
osg::Geometry* opencover::coVRStatsDisplay::createTick ( const osg::Vec3 &  pos,
float  height,
const osg::Vec4 &  colour,
unsigned int  numTicks 
)
protected
double opencover::coVRStatsDisplay::getBlockMultiplier ( ) const
inline
osg::Camera* opencover::coVRStatsDisplay::getCamera ( )
inline
const osg::Camera* opencover::coVRStatsDisplay::getCamera ( ) const
inline
virtual void opencover::coVRStatsDisplay::getUsage ( osg::ApplicationUsage &  usage) const
virtual

Get the keyboard and mouse usage of this manipulator.

void opencover::coVRStatsDisplay::reset ( )
void opencover::coVRStatsDisplay::setUpHUDCamera ( osgViewer::ViewerBase *  viewer)
protected
void opencover::coVRStatsDisplay::setUpScene ( osgViewer::ViewerBase *  viewer)
protected
void opencover::coVRStatsDisplay::showStats ( int  whichStats,
osgViewer::View *  myview 
)
void opencover::coVRStatsDisplay::updateThreadingModelText ( )
protected

Member Data Documentation

double opencover::coVRStatsDisplay::_blockMultiplier
protected
osg::ref_ptr<osg::Camera> opencover::coVRStatsDisplay::_camera
protected
unsigned int opencover::coVRStatsDisplay::_cameraSceneChildNum
protected
unsigned int opencover::coVRStatsDisplay::_frameRateChildNum
protected
bool opencover::coVRStatsDisplay::_initialized
protected
unsigned int opencover::coVRStatsDisplay::_numBlocks
protected
float opencover::coVRStatsDisplay::_statsHeight
protected
int opencover::coVRStatsDisplay::_statsType
protected
float opencover::coVRStatsDisplay::_statsWidth
protected
osg::ref_ptr<osg::Switch> opencover::coVRStatsDisplay::_switch
protected
osgViewer::ViewerBase::ThreadingModel opencover::coVRStatsDisplay::_threadingModel
protected
osg::ref_ptr<osgText::Text> opencover::coVRStatsDisplay::_threadingModelText
protected
unsigned int opencover::coVRStatsDisplay::_viewerChildNum
protected
unsigned int opencover::coVRStatsDisplay::_viewerSceneChildNum
protected

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