QVR 4.1.0
A library to build Virtual Reality applications
|
Configuration of a QVRWindow. More...
#include <config.hpp>
Public Member Functions | |
QVRWindowConfig () | |
Constructor. | |
const QString & | id () const |
Returns the unique id. | |
int | observerIndex () const |
Returns the index of the observer that views this window. | |
QVROutputMode | outputMode () const |
Returns the output mode of this window. | |
const QString & | outputPlugin () const |
Returns the output plugin specification of this window (may be empty). | |
int | initialDisplayScreen () const |
Returns the initial display screen on which the window will appear (-1 for default). | |
bool | initialFullscreen () const |
Returns whether this window is initially in fullscreen mode. | |
QPoint | initialPosition () const |
Returns the initial position of this window on the screen ((-1,-1) for default). | |
QSize | initialSize () const |
Returns the initial size of this window on the screen. | |
QRect | initialGeometry () const |
Returns the initial geometry of this window on the screen, composed from initialPosition() and initialSize(). | |
bool | screenIsFixedToObserver () const |
Returns whether the screen wall represented by this window is fixed to its observer. | |
bool | screenIsGivenByCenter () const |
Returns whether the screen wall coordinates determined from its center or from three of its corners. | |
const QVector3D & | screenCornerBottomLeft () const |
Returns the virtual world coordinates of the bottom left corner of the screen wall. | |
const QVector3D & | screenCornerBottomRight () const |
Returns the virtual world coordinates of the bottom right corner of the screen wall. | |
const QVector3D & | screenCornerTopLeft () const |
Returns the virtual world coordinates of the top left corner of the screen wall. | |
const QVector3D & | screenCenter () const |
Returns the virtual world coordinates of the center of the screen wall. | |
float | renderResolutionFactor () const |
Returns the render resolution factor. | |
Friends | |
class | QVRConfig |
Configuration of a QVRWindow.
A window is displayed on a display screen (in Qt terminology) and has a position and size on that display screen.
For the purpose of Virtual Reality rendering, a window represents a screen wall given in virtual world coordinates. The function screenIsGivenByCenter() determines whether these coordinates are determined from virtual world coordinates of the screen wall center, or from virtual world coordinates of the screen's bottom left, bottom right, and top left corners.
The Qt display screen and the virtual world screen wall should not be mixed up.
QVRWindowConfig::QVRWindowConfig | ( | ) |
Constructor.
|
inline |
Returns the unique id.
|
inline |
Returns the initial display screen on which the window will appear (-1 for default).
|
inline |
Returns whether this window is initially in fullscreen mode.
|
inline |
Returns the initial geometry of this window on the screen, composed from initialPosition() and initialSize().
|
inline |
Returns the initial position of this window on the screen ((-1,-1) for default).
|
inline |
Returns the initial size of this window on the screen.
|
inline |
Returns the index of the observer that views this window.
|
inline |
Returns the output mode of this window.
|
inline |
Returns the output plugin specification of this window (may be empty).
|
inline |
Returns the render resolution factor.
A window can show scenes that were rendered at a different resolution than the actual window size. This is useful for example if a control window does not need to look good and can render at lower resolution to save time. The window size will be multiplied by this factor to get the resolution of the rendering textures. Example: a 800x600 window with a render resolution factor 0.5 will cause the application to render into a 400x300 texture which is then upscaled to 800x600 for display.
|
inline |
Returns the virtual world coordinates of the center of the screen wall.
|
inline |
Returns the virtual world coordinates of the bottom left corner of the screen wall.
|
inline |
Returns the virtual world coordinates of the bottom right corner of the screen wall.
|
inline |
Returns the virtual world coordinates of the top left corner of the screen wall.
|
inline |
Returns whether the screen wall represented by this window is fixed to its observer.
|
inline |
Returns whether the screen wall coordinates determined from its center or from three of its corners.
When determining screen wall coordinates from center coordinates, the Qt display screen dimensions are queried.
|
friend |