QVR 4.1.0
A library to build Virtual Reality applications
|
A Qt window on a screen and a window into the virtual world. More...
#include <window.hpp>
Inherits QWindow.
Public Member Functions | |
QVRWindow (QVRWindow *mainWindow, QVRObserver *observer, int windowIndex) | |
Constructor. | |
virtual | ~QVRWindow () |
Destructor. | |
int | index () const |
Returns the index of the window in the process configuration. | |
const QString & | id () const |
Returns the unique id. | |
const QVRWindowConfig & | config () const |
Returns the configuration. | |
int | processIndex () const |
Returns the index of the process that this window belongs to. | |
const QString & | processId () const |
Returns the unique id of the process that this window belongs to. | |
const QVRProcessConfig & | processConfig () const |
Returns the configuration of the process that this window belongs to. | |
int | observerIndex () const |
Returns the index of the window observer in the QVR configuration. | |
const QString & | observerId () const |
Returns the unique id of the window observer in the QVR configuration. | |
const QVRObserverConfig & | observerConfig () const |
Returns the configuration of the window observer in the QVR configuration. | |
A Qt window on a screen and a window into the virtual world.
From the Qt point of view, a QVRWindow is a QWindow with an associated position and size on a Qt display screen.
From the Virtual Reality point of view, a QVRWindow is a window into the virtual world, and thus has an associated rectangle geometry in the virtual world. This rectangle is called the screen wall.
It is important not to confuse the Qt meaning of screen and the VR meaning of screen wall.
A window provides a view of the virtual world for a QVRObserver. The rendered images displayed by a window thus depend on the virtual world geometry of the screen wall and on the position of the observer.
Sometimes the virtual world screen wall is fixed to the observer (e.g. for head-mounted displays), and sometimes it is fixed in the virtual world (e.g. for stationary projection screens).
The view may either be monoscopic (for a single eye) or stereoscopic (for both left and right eye), depending on the output mode.
An window is configured via QVRWindowConfig.
QVRWindow::QVRWindow | ( | QVRWindow * | mainWindow, |
QVRObserver * | observer, | ||
int | windowIndex ) |
Constructor.
mainWindow | Pointer to main window |
observer | The observer to provide a view for |
windowIndex | The index of this window in this process |
The first window has to be created with parameters (0, 0, -1), and it will be the hidden main window. All other windows get a pointer to it on creation time.
|
virtual |
Destructor.
const QVRWindowConfig & QVRWindow::config | ( | ) | const |
Returns the configuration.
const QString & QVRWindow::id | ( | ) | const |
Returns the unique id.
int QVRWindow::index | ( | ) | const |
Returns the index of the window in the process configuration.
const QVRObserverConfig & QVRWindow::observerConfig | ( | ) | const |
Returns the configuration of the window observer in the QVR configuration.
const QString & QVRWindow::observerId | ( | ) | const |
Returns the unique id of the window observer in the QVR configuration.
int QVRWindow::observerIndex | ( | ) | const |
Returns the index of the window observer in the QVR configuration.
const QVRProcessConfig & QVRWindow::processConfig | ( | ) | const |
Returns the configuration of the process that this window belongs to.
const QString & QVRWindow::processId | ( | ) | const |
Returns the unique id of the process that this window belongs to.
int QVRWindow::processIndex | ( | ) | const |
Returns the index of the process that this window belongs to.