Custom widget which is created by a module to display custom information.
More...
#include <WUIViewWidget.h>
Custom widget which is created by a module to display custom information.
- Note
- Please read documentation of WUIWidgetFactory for limitations, requirements and creation of these widgets.
Definition at line 66 of file WUIViewWidget.h.
◆ ConstSPtr
Abbreviation for a const shared pointer on a instance of this class.
Definition at line 77 of file WUIViewWidget.h.
◆ SPtr
Abbreviation for a shared pointer on a instance of this class.
Definition at line 72 of file WUIViewWidget.h.
◆ ~WUIViewWidget()
WUIViewWidget::~WUIViewWidget |
( |
| ) |
|
|
virtual |
◆ WUIViewWidget()
WUIViewWidget::WUIViewWidget |
( |
std::string |
title | ) |
|
|
explicitprotected |
Constructor.
Create a custom widget instance.
- Parameters
-
title | the title of the widget |
Definition at line 29 of file WUIViewWidget.cpp.
◆ addCameraPreset()
Add a custom camera preset.
Appends at the end of any pre-existing presets. The presets are not directly specified via a matrix or quaternion. A trigger property allows implementing own callbacks to actually set the preset. This is very useful when using your own osg::CameraManupulator implementation for your view.
- Parameters
-
preset | the trigger to set the preset. |
icon | optional icon. |
Implemented in WUIQtViewWidget.
◆ addEventHandler()
virtual void WUIViewWidget::addEventHandler |
( |
osgGA::GUIEventHandler * |
handler | ) |
|
|
pure virtual |
Adds an event handler to the widget's view.
- Parameters
-
handler | Pointer to the handler. |
Implemented in WUIQtViewWidget.
◆ clearCameraPresets()
virtual void WUIViewWidget::clearCameraPresets |
( |
| ) |
|
|
pure virtual |
Remove any pre-existing camera preset.
Very useful when adding custom presets or presets do not make sense at all.
Implemented in WUIQtViewWidget.
◆ getScene()
virtual osg::ref_ptr< WGEGroupNode > WUIViewWidget::getScene |
( |
| ) |
const |
|
pure virtual |
Get the scene which is displayed.
- Returns
- the scene as osg::ref_ptr
Implemented in WUIQtViewWidget.
◆ getViewer()
virtual std::shared_ptr< WGEViewer > WUIViewWidget::getViewer |
( |
| ) |
const |
|
pure virtual |
Get the viewer which is used.
- Returns
- the viewer as shared_ptr
Implemented in WUIQtViewWidget.
◆ height()
virtual size_t WUIViewWidget::height |
( |
| ) |
const |
|
pure virtual |
Returns the height of the viewport of the camera.
- Returns
- Height in pixels.
Implemented in WUIQtViewWidget.
◆ width()
virtual size_t WUIViewWidget::width |
( |
| ) |
const |
|
pure virtual |
Returns the width of the viewport of the camera.
- Returns
- Width in pixels.
Implemented in WUIQtViewWidget.
The documentation for this class was generated from the following files: