|
VR-Engage
2.2
|
This class implements the OSG drawable interface for rendering Qt Quick content. It manages the connection to the Qt Quick renderer and handles the drawing of QML content during the OSG rendering process, either to the screen or to a texture.
#include <vreQtQuickRendererDrawable.h>
Public Member Functions | |
| DtQtQuickRendererDrawable (DtQtQuickRenderer *renderer=nullptr, bool rttMode=false) | |
| DtQtQuickRendererDrawable (const DtQtQuickRendererDrawable &reticle, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| virtual | ~DtQtQuickRendererDrawable () override |
| META_Object (test, DtQtQuickRendererDrawable) | |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const override |
| virtual void | setRenderer (DtQtQuickRenderer *r) |
| virtual DtQtQuickRenderer * | getRenderer () |
| virtual void | setRTTDrawable (bool isRTT) |
| virtual bool | getRTTDrawable () |
Protected Attributes | |
| DtQtQuickRenderer * | myRenderer |
| bool | myRTTDrawable |
| makVre::DtQtQuickRendererDrawable::DtQtQuickRendererDrawable | ( | DtQtQuickRenderer * | renderer = nullptr, |
| bool | rttMode = false ) |
Default constructor.
| renderer | Pointer to the Qt Quick renderer |
| rttMode | True if this drawable is for render-to-texture, false otherwise |
Referenced by DtQtQuickRendererDrawable(), and META_Object().
| makVre::DtQtQuickRendererDrawable::DtQtQuickRendererDrawable | ( | const DtQtQuickRendererDrawable & | reticle, |
| const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY ) |
Copy constructor.
| reticle | The drawable to copy |
| copyop | Copy operation mode |
References DtQtQuickRendererDrawable().
|
overridevirtual |
Virtual destructor.
| makVre::DtQtQuickRendererDrawable::META_Object | ( | test | , |
| DtQtQuickRendererDrawable | ) |
OSG meta object declaration.
References DtQtQuickRendererDrawable().
|
overridevirtual |
Implements the OSG drawing operation.
| renderInfo | Render information from OSG |
This method is called by OSG during the rendering process to draw the Qt Quick content into the scene
|
virtual |
Sets the Qt Quick renderer.
| r | Pointer to the Qt Quick renderer |
|
virtual |
Gets the Qt Quick renderer.
|
virtual |
Sets whether this is a render-to-texture drawable.
| isRTT | True if this is a render-to-texture drawable, false otherwise |
|
virtual |
Checks if this is a render-to-texture drawable.
|
protected |
Pointer to the Qt Quick renderer.
|
protected |
Flag indicating if this is a render-to-texture drawable.