24 #ifndef __ROBOTCAMERAMANAGER_H
25 #define __ROBOTCAMERAMANAGER_H
28 #include <osgGA/GUIEventHandler>
29 #include <osgGA/GUIEventAdapter>
30 #include <osgGA/GUIActionAdapter>
44 osg::Texture2D* texture;
51 typedef std::vector<Overlay> Overlays;
56 typedef std::vector<RobotCam> RobotCams;
67 virtual bool handle (
const osgGA::GUIEventAdapter& ea,
68 osgGA::GUIActionAdapter& aa,
69 osg::Object* o, osg::NodeVisitor* nv);
70 virtual void getUsage (osg::ApplicationUsage &)
const;
virtual osg::Group * getOffScreen()
Definition: robotcameramanager.h:64
bool enabled
Definition: robotcameramanager.h:80
A Robot Camera.
Definition: camera.h:69
float scale
Definition: robotcameramanager.h:81
virtual osg::Group * getDisplay()
Definition: robotcameramanager.h:63
int windowHeight
Definition: robotcameramanager.h:83
structure to store the image data and information for display
Definition: camera.h:80
RobotCameraManager(int windowWidth, int windowHeight)
Definition: robotcameramanager.cpp:49
osg::ref_ptr< osg::Group > display
Definition: robotcameramanager.h:76
Manages camera sensors.
Definition: robotcameramanager.h:39
osg::ref_ptr< osg::Group > offscreen
Definition: robotcameramanager.h:77
RobotCams cameras
Definition: robotcameramanager.h:78
virtual void addCamera(Camera *cam)
Definition: robotcameramanager.cpp:58
virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa, osg::Object *o, osg::NodeVisitor *nv)
Definition: robotcameramanager.cpp:152
virtual void getUsage(osg::ApplicationUsage &) const
Definition: robotcameramanager.cpp:189
int windowWidth
Definition: robotcameramanager.h:82
virtual void removeCamera(Camera *cam)
Definition: robotcameramanager.cpp:72
virtual void updateView()
Definition: robotcameramanager.cpp:85