Archon::Render::Screen Struct Reference

Inheritance diagram for Archon::Render::Screen:

Inheritance graph
[legend]
Collaboration diagram for Archon::Render::Screen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void set (Vector3 center, Vector3 x, Vector3 y, double halfWidth, double halfHeight)
 Change the geometric properties of the screen.
void set (double aspectRatio, double fieldOfView=M_PI/4, double distance=1)
 A less general alternative to set(Vector3, Vector3, Vector3, double, double).

Static Public Member Functions

static Ref< Screencreate (Ref< View > v)
 Get a default screen.

Detailed Description

Definition at line 143 of file view.H.


Member Function Documentation

static Ref<Screen> Archon::Render::Screen::create Ref< View v  )  [inline, static]
 

Get a default screen.

A default screen corresponds with a screen for which set(1, M_PI/4, 1) is called.

See also:
set(double, double, double)

Definition at line 151 of file view.H.

Referenced by Archon::Render::Test::dualWindowStereo(), Archon::Render::Test::oneThreadMono(), Archon::Render::Test::oneThreadPaperStereo(), Archon::Render::Test::splitScreenStereo(), Archon::Render::Test::twoThreadMono(), and Archon::Render::Test::twoThreadPaperStereo().

void Archon::Render::Screen::set double  aspectRatio,
double  fieldOfView = M_PI/4,
double  distance = 1
[inline]
 

A less general alternative to set(Vector3, Vector3, Vector3, double, double).

In this case the screen is assumed to be parallel to the x-y-plane, have sides that are parallel to the x and y axes, intersecting the z-axis for a negative value of z and with the center on the z-axis.

Parameters:
aspectRatio Is width devided by height.
fieldOfView The angle between the top and bottom of the screen when seen from the origin of the view coordinate system or the angle between its sides if that angle is smaller.
distance The positive distance from the origin of the view coordinate system to the screen measured in the view coordinate system.
Note:
The distance is arbitrary if the eye is located at the origin of the view coordinate system (non-headtracked monoscopic viewing) and should be left at 1 in this case.
This method is re-entrant/thread-safe.

Definition at line 212 of file view.H.

References set().

void Archon::Render::Screen::set Vector3  center,
Vector3  x,
Vector3  y,
double  halfWidth,
double  halfHeight
[inline]
 

Change the geometric properties of the screen.

Parameters:
center Defines the center of the screen measured in the view coordinate system.
x x and y defines the directions of the x and y axes of the screen measured in the view coordinate system. They must be mutually perpendicular and of unit length.
y See x.
halfWidth halfWidth and halfHeight defines the width and height of the screen measured in the view coordinate system. Unless you accept circles appearing elliptical, make sure that the aspect ratio (halfWidth/halfHeight) matches the real aspect ratio of the physical screen/viewport/window.
halfHeight See halfWidth.
This method is re-entrant/thread-safe.

Definition at line 175 of file view.H.

Referenced by set().


The documentation for this struct was generated from the following file:
Generated on Sun Jul 30 22:57:12 2006 for Archon by  doxygen 1.4.4