VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtQtQuickRendererDrawable Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtQtQuickRendererDrawable:
[legend]

Public Member Functions

 DtQtQuickRendererDrawable (DtQtQuickRenderer *renderer=nullptr, bool rttMode=false)
 
 DtQtQuickRendererDrawable (const DtQtQuickRendererDrawable &reticle, const osg::CopyOp &copyop=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 DtQtQuickRenderergetRenderer ()
 
virtual void setRTTDrawable (bool isRTT)
 
virtual bool getRTTDrawable ()
 

Protected Attributes

DtQtQuickRenderermyRenderer
 
bool myRTTDrawable
 

Constructor & Destructor Documentation

◆ DtQtQuickRendererDrawable() [1/2]

makVre::DtQtQuickRendererDrawable::DtQtQuickRendererDrawable ( DtQtQuickRenderer * renderer = nullptr,
bool rttMode = false )

Default constructor.

Parameters
rendererPointer to the Qt Quick renderer
rttModeTrue if this drawable is for render-to-texture, false otherwise

Referenced by DtQtQuickRendererDrawable(), and META_Object().

◆ DtQtQuickRendererDrawable() [2/2]

makVre::DtQtQuickRendererDrawable::DtQtQuickRendererDrawable ( const DtQtQuickRendererDrawable & reticle,
const osg::CopyOp & copyop = osg::CopyOp::SHALLOW_COPY )

Copy constructor.

Parameters
reticleThe drawable to copy
copyopCopy operation mode

References DtQtQuickRendererDrawable().

◆ ~DtQtQuickRendererDrawable()

virtual makVre::DtQtQuickRendererDrawable::~DtQtQuickRendererDrawable ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ META_Object()

makVre::DtQtQuickRendererDrawable::META_Object ( test ,
DtQtQuickRendererDrawable  )

OSG meta object declaration.

References DtQtQuickRendererDrawable().

◆ drawImplementation()

virtual void makVre::DtQtQuickRendererDrawable::drawImplementation ( osg::RenderInfo & renderInfo) const
overridevirtual

Implements the OSG drawing operation.

Parameters
renderInfoRender information from OSG

This method is called by OSG during the rendering process to draw the Qt Quick content into the scene

◆ setRenderer()

virtual void makVre::DtQtQuickRendererDrawable::setRenderer ( DtQtQuickRenderer * r)
virtual

Sets the Qt Quick renderer.

Parameters
rPointer to the Qt Quick renderer

◆ getRenderer()

virtual DtQtQuickRenderer * makVre::DtQtQuickRendererDrawable::getRenderer ( )
virtual

Gets the Qt Quick renderer.

Returns
Pointer to the Qt Quick renderer

◆ setRTTDrawable()

virtual void makVre::DtQtQuickRendererDrawable::setRTTDrawable ( bool isRTT)
virtual

Sets whether this is a render-to-texture drawable.

Parameters
isRTTTrue if this is a render-to-texture drawable, false otherwise

◆ getRTTDrawable()

virtual bool makVre::DtQtQuickRendererDrawable::getRTTDrawable ( )
virtual

Checks if this is a render-to-texture drawable.

Returns
True if this is a render-to-texture drawable, false otherwise

Member Data Documentation

◆ myRenderer

DtQtQuickRenderer* makVre::DtQtQuickRendererDrawable::myRenderer
protected

Pointer to the Qt Quick renderer.

◆ myRTTDrawable

bool makVre::DtQtQuickRendererDrawable::myRTTDrawable
protected

Flag indicating if this is a render-to-texture drawable.


The documentation for this class was generated from the following file: