|
OpenWalnut
1.4.0
|
Custom widget which is created by a module to display custom information. More...
#include <WCustomWidget.h>
Public Types | |
| typedef boost::shared_ptr < WCustomWidget > | SPtr |
| Abbreviation for a shared pointer on a instance of this class. More... | |
| typedef boost::shared_ptr < const WCustomWidget > | ConstSPtr |
| Abbreviation for a const shared pointer on a instance of this class. More... | |
Public Member Functions | |
| WCustomWidget (std::string title) | |
| Constructor. More... | |
| virtual | ~WCustomWidget () |
| Destructor. More... | |
| virtual osg::ref_ptr < WGEGroupNode > | getScene () const =0 |
| Get the scene which is displayed. More... | |
| virtual boost::shared_ptr < WGEViewer > | getViewer () const =0 |
| Get the viewer which is used. More... | |
| virtual std::string | getTitle () const |
| Get the title of the widget. More... | |
| virtual size_t | height () const =0 |
| Returns the height of the viewport of the camera. More... | |
| virtual size_t | width () const =0 |
| Returns the width of the viewport of the camera. More... | |
| virtual void | addEventHandler (osgGA::GUIEventHandler *handler)=0 |
| Adds an event handler to the widget's view. More... | |
Private Attributes | |
| std::string | m_title |
| The widget's title string. More... | |
Custom widget which is created by a module to display custom information.
Definition at line 64 of file WCustomWidget.h.
| typedef boost::shared_ptr< const WCustomWidget > WCustomWidget::ConstSPtr |
Abbreviation for a const shared pointer on a instance of this class.
Definition at line 75 of file WCustomWidget.h.
| typedef boost::shared_ptr< WCustomWidget > WCustomWidget::SPtr |
Abbreviation for a shared pointer on a instance of this class.
Definition at line 70 of file WCustomWidget.h.
|
explicit |
Constructor.
Create a custom widget instance.
| title | the title of the widget |
Definition at line 29 of file WCustomWidget.cpp.
|
virtual |
Destructor.
Definition at line 34 of file WCustomWidget.cpp.
|
pure virtual |
Adds an event handler to the widget's view.
| handler | Pointer to the handler. |
|
pure virtual |
Get the scene which is displayed.
|
virtual |
Get the title of the widget.
Definition at line 38 of file WCustomWidget.cpp.
References m_title.
|
pure virtual |
Get the viewer which is used.
|
pure virtual |
Returns the height of the viewport of the camera.
|
pure virtual |
Returns the width of the viewport of the camera.
|
private |
The widget's title string.
Definition at line 136 of file WCustomWidget.h.
Referenced by getTitle().
1.8.7