#include <DisplayTile.H>
Public Types | |
enum | TileRenderType { TILE_MONO, TILE_MONO_LEFT, TILE_MONO_RIGHT, TILE_STEREO, TILE_CHECKERBOARD_STEREO } |
Public Member Functions | |
DisplayTile (Vector3 topLeftCorner, Vector3 topRightCorner, Vector3 botLeftCorner, Vector3 botRightCorner, TileRenderType tileRenderType, double nearClipPlane, double farClipPlane) | |
Sets the state of the tile and calls calculateRoomToTile. | |
DisplayTile () | |
virtual | ~DisplayTile () |
void | calculateRoomToTile () |
Static Public Member Functions | |
static const DisplayTile & | defaultDesktopTile () |
Default setup for a desktop display. | |
Public Attributes | |
TileRenderType | renderType |
double | nearClip |
double | farClip |
Vector3 | topLeft |
Vector3 | topRight |
Vector3 | botLeft |
Vector3 | botRight |
CoordinateFrame | room2tile |
Important: After setting or changing any of the variables that define the postion of the tile (top*, bot*), calculateRoomToTile() needs to be called to update the room2tile matrix.
VRG3D::DisplayTile::DisplayTile | ( | Vector3 | topLeftCorner, | |
Vector3 | topRightCorner, | |||
Vector3 | botLeftCorner, | |||
Vector3 | botRightCorner, | |||
TileRenderType | tileRenderType, | |||
double | nearClipPlane, | |||
double | farClipPlane | |||
) |
Sets the state of the tile and calls calculateRoomToTile.
VRG3D::DisplayTile::DisplayTile | ( | ) | [inline] |
virtual VRG3D::DisplayTile::~DisplayTile | ( | ) | [virtual] |
void VRG3D::DisplayTile::calculateRoomToTile | ( | ) |
Calculates the appropriate room2tile matrix based on the location of the tile. room2tile is cached in this class for speed and used by ProjectionVRCamera each frame. If you change the position of the tile, you should call this to recalculate the room2tile matrix.
static const DisplayTile& VRG3D::DisplayTile::defaultDesktopTile | ( | ) | [static] |
Default setup for a desktop display.
double VRG3D::DisplayTile::nearClip |
double VRG3D::DisplayTile::farClip |
Vector3 VRG3D::DisplayTile::topLeft |
Vector3 VRG3D::DisplayTile::topRight |
Vector3 VRG3D::DisplayTile::botLeft |
Vector3 VRG3D::DisplayTile::botRight |
CoordinateFrame VRG3D::DisplayTile::room2tile |