OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Resource::StatsHandler Class Reference

#include <stats.hpp>

Inheritance diagram for Resource::StatsHandler:
Collaboration diagram for Resource::StatsHandler:

Public Member Functions

 StatsHandler ()
 
void setKey (int key)
 
int getKey () const
 
bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
 
void setWindowSize (int w, int h)
 
void toggle (osgViewer::ViewerBase *viewer)
 
void setUpHUDCamera (osgViewer::ViewerBase *viewer)
 
void setUpScene (osgViewer::ViewerBase *viewer)
 
virtual void getUsage (osg::ApplicationUsage &usage) const
 

Private Attributes

osg::ref_ptr< osg::Switch > _switch
 
int _key
 
osg::ref_ptr< osg::Camera > _camera
 
bool _initialized
 
bool _statsType
 
float _statsWidth
 
float _statsHeight
 
std::string _font
 
float _characterSize
 
int _resourceStatsChildNum
 

Constructor & Destructor Documentation

Resource::StatsHandler::StatsHandler ( )

Member Function Documentation

int Resource::StatsHandler::getKey ( ) const
inline
void Resource::StatsHandler::getUsage ( osg::ApplicationUsage &  usage) const
virtual

Get the keyboard and mouse usage of this manipulator.

bool Resource::StatsHandler::handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  aa 
)

Here is the call graph for this function:

void Resource::StatsHandler::setKey ( int  key)
inline
void Resource::StatsHandler::setUpHUDCamera ( osgViewer::ViewerBase *  viewer)

Here is the call graph for this function:

Here is the caller graph for this function:

void Resource::StatsHandler::setUpScene ( osgViewer::ViewerBase *  viewer)

Here is the call graph for this function:

Here is the caller graph for this function:

void Resource::StatsHandler::setWindowSize ( int  w,
int  h 
)

Here is the caller graph for this function:

void Resource::StatsHandler::toggle ( osgViewer::ViewerBase *  viewer)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

osg::ref_ptr<osg::Camera> Resource::StatsHandler::_camera
private
float Resource::StatsHandler::_characterSize
private
std::string Resource::StatsHandler::_font
private
bool Resource::StatsHandler::_initialized
private
int Resource::StatsHandler::_key
private
int Resource::StatsHandler::_resourceStatsChildNum
private
float Resource::StatsHandler::_statsHeight
private
bool Resource::StatsHandler::_statsType
private
float Resource::StatsHandler::_statsWidth
private
osg::ref_ptr<osg::Switch> Resource::StatsHandler::_switch
private

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