Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RobotCameraManager Class Reference

Manages camera sensors. More...

#include <robotcameramanager.h>

Inheritance diagram for RobotCameraManager:
Collaboration diagram for RobotCameraManager:

Public Member Functions

 RobotCameraManager (int windowWidth, int windowHeight)
 
virtual void addCamera (Camera *cam)
 
virtual void removeCamera (Camera *cam)
 
virtual osg::Group * getDisplay ()
 
virtual osg::Group * getOffScreen ()
 
virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *o, osg::NodeVisitor *nv)
 
virtual void getUsage (osg::ApplicationUsage &) const
 

Protected Member Functions

virtual void updateView ()
 

Protected Attributes

osg::ref_ptr< osg::Group > display
 
osg::ref_ptr< osg::Group > offscreen
 
RobotCams cameras
 
bool enabled
 
float scale
 
int windowWidth
 
int windowHeight
 

Detailed Description

Manages camera sensors.

The cameras are rendered to texture offscreen, meaning independent of the normal graphical rendering. Additionally the view of the cameras is displayed as an overlay.

Constructor & Destructor Documentation

RobotCameraManager ( int  windowWidth,
int  windowHeight 
)

Member Function Documentation

void addCamera ( Camera cam)
virtual
virtual osg::Group* getDisplay ( )
inlinevirtual
virtual osg::Group* getOffScreen ( )
inlinevirtual
void getUsage ( osg::ApplicationUsage &  au) const
virtual
bool handle ( const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  aa,
osg::Object *  o,
osg::NodeVisitor *  nv 
)
virtual
void removeCamera ( Camera cam)
virtual
void updateView ( )
protectedvirtual

Member Data Documentation

RobotCams cameras
protected
osg::ref_ptr<osg::Group> display
protected
bool enabled
protected
osg::ref_ptr<osg::Group> offscreen
protected
float scale
protected
int windowHeight
protected
int windowWidth
protected

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