QVR 4.1.0
A library to build Virtual Reality applications
Loading...
Searching...
No Matches
QVRWindow Class Reference

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 QVRWindowConfigconfig () 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 QVRProcessConfigprocessConfig () 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 QVRObserverConfigobserverConfig () const
 Returns the configuration of the window observer in the QVR configuration.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QVRWindow()

QVRWindow::QVRWindow ( QVRWindow * mainWindow,
QVRObserver * observer,
int windowIndex )

Constructor.

Parameters
mainWindowPointer to main window
observerThe observer to provide a view for
windowIndexThe 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.

◆ ~QVRWindow()

virtual QVRWindow::~QVRWindow ( )
virtual

Destructor.

Member Function Documentation

◆ config()

const QVRWindowConfig & QVRWindow::config ( ) const

Returns the configuration.

◆ id()

const QString & QVRWindow::id ( ) const

Returns the unique id.

◆ index()

int QVRWindow::index ( ) const

Returns the index of the window in the process configuration.

◆ observerConfig()

const QVRObserverConfig & QVRWindow::observerConfig ( ) const

Returns the configuration of the window observer in the QVR configuration.

◆ observerId()

const QString & QVRWindow::observerId ( ) const

Returns the unique id of the window observer in the QVR configuration.

◆ observerIndex()

int QVRWindow::observerIndex ( ) const

Returns the index of the window observer in the QVR configuration.

◆ processConfig()

const QVRProcessConfig & QVRWindow::processConfig ( ) const

Returns the configuration of the process that this window belongs to.

◆ processId()

const QString & QVRWindow::processId ( ) const

Returns the unique id of the process that this window belongs to.

◆ processIndex()

int QVRWindow::processIndex ( ) const

Returns the index of the process that this window belongs to.


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