omegalib  13.1
omega::DisplayTileConfig Class Reference

#include <DisplayTileConfig.h>

Public Types

enum  StereoMode {
  Mono, LineInterleaved, ColumnInterleaved, PixelInterleaved,
  SideBySide, Quad, Default
}
 

Public Member Functions

 DisplayTileConfig (DisplayConfig &dc)
 
void parseConfig (const Setting &sTile, DisplayConfig &cfg)
 Parse a configuration from a setting, using values from the display config defaults when needed. More...
 
void computeTileCorners ()
 Computes the corner positions for the specified tile using information stored in the tile and configuration like center, yaw and pitch, lcd size and so on. More...
 
void updateActiveRect (const Rect &canvasPixelrRect)
 Updates this tile active rect and active canvas rect based on the global pixel viewport. More...
 
void setCorners (const Vector3f &topLeft, const Vector3f &bottomLeft, const Vector3f &bottomRight)
 Convenience method to set the tile corners. More...
 
bool rayIntersects (const Ray &ray)
 Convenience method to check for intersection between a ray and this tile. More...
 
Vector3f getPixelPosition (int x, int y)
 Returns the position in real-world coordinates of the specified pixel (where pixel 0,0 is in the top-left corner of the tile) More...
 
void setPixelSize (int width, int height)
 Set the resolution in pixels of this tile. Method used instead of. More...
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Public Attributes

DisplayConfigdisplayConfig
 
DisplayNodeConfignode
 The node owning this tile. More...
 
const SettingsettingData
 Stores the tile setting unparsed data. More...
 
StereoMode stereoMode
 
bool invertStereo
 When set to true, eyes are inverted in stereo mode. More...
 
String name
 
int id
 
int gridX
 The X position of this tile in the tile grid. More...
 
int gridY
 The Y position of this tile in the tile grid. More...
 
bool isInGrid
 When set to true, this tile is part of a 2D tile grid. More...
 
Vector2i pixelSize
 
Vector2i offset
 2d offset of window content More...
 
Vector2i position
 Window position. More...
 
Rect activeRect
 The active region of this tile (i.e. More...
 
Rect activeCanvasRect
 Same information as active rect but in canvas coordinates I.e. More...
 
uint flags
 2d position of this tile (normalized) with respect to the global canvas. More...
 
int device
 
Vector3f center
 
Vector2f size
 
float yaw
 
float pitch
 
bool drawStats
 
bool disableScene
 
bool disableOverlay
 
bool disableMouse
 
bool enabled
 
bool isHMD
 When set to true this tile is treated as outputting to a head mounted display. More...
 
bool offscreen
 When set to true render this tile offscreen. More...
 
bool borderless
 Disable window borders for this tile only. More...
 
String cameraName
 Name of camera attached to this tile. Can be empty or 'default' for default camera. More...
 
Cameracamera
 Reference to camera attached to this tile. Set during display system initialization. More...
 
Vector3f topLeft
 
Vector3f bottomLeft
 
Vector3f bottomRight
 

Additional Inherited Members

- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 
- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 
+ Inheritance diagram for omega::DisplayTileConfig:

Member Enumeration Documentation

Enumerator
Mono 
LineInterleaved 
ColumnInterleaved 
PixelInterleaved 
SideBySide 
Quad 
Default 

Constructor & Destructor Documentation

omega::DisplayTileConfig::DisplayTileConfig ( DisplayConfig dc)
inline

Member Function Documentation

void omega::DisplayTileConfig::computeTileCorners ( )

Computes the corner positions for the specified tile using information stored in the tile and configuration like center, yaw and pitch, lcd size and so on.

Vector3f omega::DisplayTileConfig::getPixelPosition ( int  x,
int  y 
)

Returns the position in real-world coordinates of the specified pixel (where pixel 0,0 is in the top-left corner of the tile)

void omega::DisplayTileConfig::parseConfig ( const Setting sTile,
DisplayConfig cfg 
)

Parse a configuration from a setting, using values from the display config defaults when needed.

bool omega::DisplayTileConfig::rayIntersects ( const Ray ray)

Convenience method to check for intersection between a ray and this tile.

void omega::DisplayTileConfig::setCorners ( const Vector3f topLeft,
const Vector3f bottomLeft,
const Vector3f bottomRight 
)
inline

Convenience method to set the tile corners.

void omega::DisplayTileConfig::setPixelSize ( int  width,
int  height 
)
inline

Set the resolution in pixels of this tile. Method used instead of.

void omega::DisplayTileConfig::updateActiveRect ( const Rect canvasPixelrRect)

Updates this tile active rect and active canvas rect based on the global pixel viewport.

Member Data Documentation

Rect omega::DisplayTileConfig::activeCanvasRect

Same information as active rect but in canvas coordinates I.e.

this is the area occupied by this tile within the current canvas. So, activeCanvasRect(0,0,10,10) is a 10x10 rect at the top-left corner of the canvas, regardless of canvas position on the display. activeCanvasRect is used in various Camera, 2D and ui calculations.

Rect omega::DisplayTileConfig::activeRect

The active region of this tile (i.e.

the pixel tile rect where rendering is taking place). The active rect is influenced by the current view and may is used to determine the actual OS window position and size.

bool omega::DisplayTileConfig::borderless

Disable window borders for this tile only.

Vector3f omega::DisplayTileConfig::bottomLeft
Vector3f omega::DisplayTileConfig::bottomRight
Camera* omega::DisplayTileConfig::camera

Reference to camera attached to this tile. Set during display system initialization.

String omega::DisplayTileConfig::cameraName

Name of camera attached to this tile. Can be empty or 'default' for default camera.

Vector3f omega::DisplayTileConfig::center
int omega::DisplayTileConfig::device
bool omega::DisplayTileConfig::disableMouse
bool omega::DisplayTileConfig::disableOverlay
bool omega::DisplayTileConfig::disableScene
DisplayConfig& omega::DisplayTileConfig::displayConfig
bool omega::DisplayTileConfig::drawStats
bool omega::DisplayTileConfig::enabled
uint omega::DisplayTileConfig::flags

2d position of this tile (normalized) with respect to the global canvas.

Used for mapping 2d interaction and for mapping physical tiles to logical views. Field for storing user-defined flags about this tile.

int omega::DisplayTileConfig::gridX

The X position of this tile in the tile grid.

Set by display configurations that generate 2D tile grids.

int omega::DisplayTileConfig::gridY

The Y position of this tile in the tile grid.

Set by display configurations that generate 2D tile grids.

int omega::DisplayTileConfig::id
bool omega::DisplayTileConfig::invertStereo

When set to true, eyes are inverted in stereo mode.

bool omega::DisplayTileConfig::isHMD

When set to true this tile is treated as outputting to a head mounted display.

bool omega::DisplayTileConfig::isInGrid

When set to true, this tile is part of a 2D tile grid.

String omega::DisplayTileConfig::name
DisplayNodeConfig* omega::DisplayTileConfig::node

The node owning this tile.

This is non-null for physical tiles. For logical tiles not owned by any node, this value will be null.

bool omega::DisplayTileConfig::offscreen

When set to true render this tile offscreen.

Vector2i omega::DisplayTileConfig::offset

2d offset of window content

float omega::DisplayTileConfig::pitch
Vector2i omega::DisplayTileConfig::pixelSize
Vector2i omega::DisplayTileConfig::position

Window position.

const Setting* omega::DisplayTileConfig::settingData

Stores the tile setting unparsed data.

Useful to allow user code process additional custom options.

Vector2f omega::DisplayTileConfig::size
StereoMode omega::DisplayTileConfig::stereoMode
Vector3f omega::DisplayTileConfig::topLeft
float omega::DisplayTileConfig::yaw

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