|
VR-Engage
2.2
|
This class stores all the necessary information about a QML file to be rendered, including its target window, initialization function, file path, root item, and render-to-texture settings.
#include <vreQtQuickFileData.h>
Public Member Functions | |
| DtQtQuickFileData () | |
| ~DtQtQuickFileData () | |
| virtual void | setTargetWindow (const std::string &windowName) |
| virtual const std::string & | getTargetWindow () |
| virtual void | setDocInitFunction (const std::function< void(QQuickItem *)> &func) |
| virtual const std::function< void(QQuickItem *)> & | getDocInitFunction () |
| virtual void | setFileToLoad (const std::string &filePath) |
| virtual const std::string & | getFileToLoad () |
| virtual void | setRoot (QQuickItem *root) |
| virtual QQuickItem * | getRoot () |
| virtual void | setOwner (QObject *owner) |
| virtual QObject * | getOwner () |
| virtual void | setRTTdata (DtPerWindowQtQuickData *data) |
| virtual DtPerWindowQtQuickData * | getRTTdata () |
| virtual void | setRTTtarget (bool isRTT) |
| virtual bool | getRTTtarget () |
| virtual void | setFboSize (int w, int h) |
| virtual void | getFboSize (int &w, int &h) |
| virtual int | getFboWidth () |
| virtual int | getFboHeight () |
| virtual void | setFboSamples (int samples) |
| virtual int | getFboSamples () |
| virtual void | setOsgRenderTexture (osg::Texture2D *texture) |
| virtual osg::Texture2D * | getOsgRenderTexture () |
Protected Attributes | |
| DtPerWindowQtQuickData * | myRTTdata |
| QObject * | myOwner |
| QQuickItem * | myRoot |
| bool | myRTTtarget |
| int | myFboSamples |
| int | myFboWidth |
| int | myFboHeight |
| osg::ref_ptr< osg::Texture2D > | myOsgTarget |
| std::function< void(QQuickItem *)> | myDocInitFunction |
| std::string | myCurrentWarnings |
| std::string | myFileToLoad |
| std::string | myTargetWindow |
| makVre::DtQtQuickFileData::DtQtQuickFileData | ( | ) |
Default constructor.
| makVre::DtQtQuickFileData::~DtQtQuickFileData | ( | ) |
Destructor.
|
virtual |
Sets the target window name for rendering.
| windowName | Name of the target window |
|
virtual |
Gets the target window name.
|
virtual |
Sets the document initialization function.
| func | Callback function to be called when the QML file is loaded |
|
virtual |
Gets the document initialization function.
|
virtual |
Sets the path of the QML file to load.
| filePath | Path to the QML file |
|
virtual |
Gets the path of the QML file to load.
|
virtual |
Sets the root QML item.
| root | Pointer to the root QML item |
|
virtual |
Gets the root QML item.
|
virtual |
Sets the owner object.
| owner | Pointer to the owner object |
|
virtual |
Gets the owner object.
|
virtual |
Sets the render-to-texture data.
| data | Pointer to the per-window Qt Quick data |
|
virtual |
Gets the render-to-texture data.
|
virtual |
Sets whether this is a render-to-texture target.
| isRTT | True if this is a render-to-texture target, false otherwise |
|
virtual |
Checks if this is a render-to-texture target.
|
virtual |
Sets the framebuffer size.
| w | Width of the framebuffer in pixels |
| h | Height of the framebuffer in pixels |
|
virtual |
Gets the framebuffer size.
| w | Output parameter for the framebuffer width |
| h | Output parameter for the framebuffer height |
|
virtual |
Gets the framebuffer width.
|
virtual |
Gets the framebuffer height.
|
virtual |
Sets the number of framebuffer samples for multisampling.
| samples | Number of samples |
|
virtual |
Gets the number of framebuffer samples.
|
virtual |
Sets the OSG render texture.
| texture | Pointer to the OSG texture for rendering |
|
virtual |
Gets the OSG render texture.
|
protected |
Render-to-texture data for this file.
|
protected |
Owner object for this QML file.
|
protected |
Root QML item.
|
protected |
Flag indicating if this is a render-to-texture target.
|
protected |
Number of samples for framebuffer multisampling.
|
protected |
Width of the framebuffer in pixels.
|
protected |
Height of the framebuffer in pixels.
|
protected |
OSG texture for rendering.
|
protected |
Document initialization function.
|
protected |
Current warning messages.
|
protected |
Path to the QML file to load.
|
protected |
Name of the target window.