SimpleAdapterVisu is a specialization of QWidget. This class is the widget added to a QMainWindow, who host an OSG Viewer.
More...
#include <SimpleAdapterVisu.h>
|
virtual void | paintEvent (QPaintEvent *) override |
|
bool | eventFilter (QObject *obj, QEvent *event) override |
|
virtual bool | event (QEvent *event) override |
|
void | addViewWidget (osg::ref_ptr< osgQt::GraphicsWindowQt > _gw, osg::ref_ptr< osg::Node > _scene) |
|
osg::ref_ptr< osgQt::GraphicsWindowQt > | createGraphicsWindow (int _x, int _y, int _w, int _h, const std::string &_name="", bool _windowDecoration=false) const |
|
SimpleAdapterVisu is a specialization of QWidget. This class is the widget added to a QMainWindow, who host an OSG Viewer.
- See also
- testViewer.cpp
Definition at line 50 of file SimpleAdapterVisu.h.
◆ SimpleAdapterVisu()
FEVV::SimpleAdapterVisu::SimpleAdapterVisu |
( |
QWidget * |
_parent = 0 , |
|
|
Qt::WindowFlags |
_f = Qt::Widget |
|
) |
| |
|
inline |
Constructor.
- Note
- The OpenSceneGraph viewer will be create and initialize if not set (see other constructors).
- Parameters
-
[in] | _parent | Pointer to the QWidget parent of this QWidget (used by Qt) (Default value = 0). |
[in] | _f | Windows flags (used by Qt) (Default value = Qt::Widget). |
Definition at line 33 of file SimpleAdapterVisu.inl.
◆ ~SimpleAdapterVisu()
FEVV::SimpleAdapterVisu::~SimpleAdapterVisu |
( |
| ) |
|
|
inline |
◆ addViewWidget()
void FEVV::SimpleAdapterVisu::addViewWidget |
( |
osg::ref_ptr< osgQt::GraphicsWindowQt > |
_gw, |
|
|
osg::ref_ptr< osg::Node > |
_scene |
|
) |
| |
|
inlineprotected |
◆ apply()
void FEVV::SimpleAdapterVisu::apply |
( |
Plugin * |
myPlugin | ) |
|
|
inlineoverridevirtual |
◆ createGraphicsWindow()
osg::ref_ptr< osgQt::GraphicsWindowQt > FEVV::SimpleAdapterVisu::createGraphicsWindow |
( |
int |
_x, |
|
|
int |
_y, |
|
|
int |
_w, |
|
|
int |
_h, |
|
|
const std::string & |
_name = "" , |
|
|
bool |
_windowDecoration = false |
|
) |
| const |
|
inlineprotected |
◆ event()
bool FEVV::SimpleAdapterVisu::event |
( |
QEvent * |
event | ) |
|
|
inlineoverrideprotectedvirtual |
◆ eventFilter()
bool FEVV::SimpleAdapterVisu::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
inlineoverrideprotected |
◆ init() [1/2]
void FEVV::SimpleAdapterVisu::init |
( |
| ) |
|
|
inlineoverridevirtual |
◆ init() [2/2]
void FEVV::SimpleAdapterVisu::init |
( |
const bool |
_useMdiWindows | ) |
|
|
inline |
◆ isInit()
bool FEVV::SimpleAdapterVisu::isInit |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isValid()
bool FEVV::SimpleAdapterVisu::isValid |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ paintEvent()
virtual void FEVV::SimpleAdapterVisu::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ myGraphicsWindow
osgQt::GraphicsWindowQt* FEVV::SimpleAdapterVisu::myGraphicsWindow = nullptr |
|
protected |
◆ timerUpdate
QTimer FEVV::SimpleAdapterVisu::timerUpdate |
|
protected |
The documentation for this class was generated from the following files: