OpenWalnut
1.3.1
|
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... | |
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 41 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 52 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 47 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 |
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.
|
private |