Custom widget which is created by a module to display custom information.
More...
#include <WCustomWidget.h>
Custom widget which is created by a module to display custom information.
Definition at line 66 of file WCustomWidget.h.
Abbreviation for a const shared pointer on a instance of this class.
Definition at line 77 of file WCustomWidget.h.
Abbreviation for a shared pointer on a instance of this class.
Definition at line 72 of file WCustomWidget.h.
WCustomWidget::WCustomWidget |
( |
std::string |
title | ) |
|
|
explicit |
Constructor.
Create a custom widget instance.
- Parameters
-
title | the title of the widget |
Definition at line 29 of file WCustomWidget.cpp.
WCustomWidget::~WCustomWidget |
( |
| ) |
|
|
virtual |
virtual void WCustomWidget::addEventHandler |
( |
osgGA::GUIEventHandler * |
handler | ) |
|
|
pure virtual |
Adds an event handler to the widget's view.
- Parameters
-
handler | Pointer to the handler. |
virtual osg::ref_ptr< WGEGroupNode > WCustomWidget::getScene |
( |
| ) |
const |
|
pure virtual |
Get the scene which is displayed.
- Returns
- the scene as osg::ref_ptr
std::string WCustomWidget::getTitle |
( |
| ) |
const |
|
virtual |
virtual boost::shared_ptr< WGEViewer > WCustomWidget::getViewer |
( |
| ) |
const |
|
pure virtual |
Get the viewer which is used.
- Returns
- the viewer as boost::shard_ptr
virtual size_t WCustomWidget::height |
( |
| ) |
const |
|
pure virtual |
Returns the height of the viewport of the camera.
- Returns
- Height in pixels.
virtual size_t WCustomWidget::width |
( |
| ) |
const |
|
pure virtual |
Returns the width of the viewport of the camera.
- Returns
- Width in pixels.
std::string WCustomWidget::m_title |
|
private |
The documentation for this class was generated from the following files: