25 #ifndef WCUSTOMWIDGET_H
26 #define WCUSTOMWIDGET_H
31 #include <boost/shared_ptr.hpp>
34 #include <osg/ref_ptr>
36 #include "../graphicsEngine/WGEViewer.h"
46 using osgGA::GUIEventAdapter::EventType;
47 using osgGA::GUIEventAdapter::MouseButtonMask;
48 using osgGA::GUIEventAdapter::KeySymbol;
49 using osgGA::GUIEventAdapter::ModKeyMask;
50 using osgGA::GUIEventAdapter::MouseYOrientation;
51 using osgGA::GUIEventAdapter::ScrollingMotion;
52 using osgGA::GUIEventAdapter::TabletPointerType;
72 typedef boost::shared_ptr< WCustomWidget >
SPtr;
77 typedef boost::shared_ptr< const WCustomWidget >
ConstSPtr;
96 virtual osg::ref_ptr< WGEGroupNode >
getScene()
const = 0;
103 virtual boost::shared_ptr< WGEViewer >
getViewer()
const = 0;
110 virtual std::string
getTitle()
const;
117 virtual size_t height()
const = 0;
124 virtual size_t width()
const = 0;
141 #endif // WCUSTOMWIDGET_H
Is just a short hand to the long name "osgGA::GUIEventAdapter".
Class to wrap around the osg Group node and providing a thread safe add/removal mechanism.
GUIEvents()
The constructor is private to forbid instance generation.