H3D::H3DWindowNode::RenderMode Class Reference

The mode for rendering specified as a string. More...

#include <H3D/H3DWindowNode.h>

Inheritance diagram for H3D::H3DWindowNode::RenderMode:

Inheritance graph

List of all members.

Classes

class  InvalidRenderMode
 Thrown when the value of RenderMode is an invalid mode. More...

Public Types

enum  Mode {
  MONO, QUAD_BUFFERED_STEREO, HORIZONTAL_SPLIT, VERTICAL_SPLIT,
  HORIZONTAL_INTERLACED, VERTICAL_INTERLACED, VERTICAL_INTERLACED_GREEN_SHIFT, RED_BLUE_STEREO,
  RED_GREEN_STEREO, RED_CYAN_STEREO, VERTICAL_SPLIT_KEEP_RATIO
}
 The different render modes supported. More...

Public Member Functions

virtual void setValue (const string &v, int id=0)
 setValue is specialized so that the stecil mask is rebuilt if the mode choosen is one that requires a stencil mask
virtual void update ()
 update is specialized so that the stecil mask is rebuilt if the mode choosen is one that requires a stencil mask
bool isStereoMode ()
 Returns true if the current render mode is a stereo mode.
RenderMode::Mode getRenderMode ()
 Get the current RenderMode string as an Mode enum.


Detailed Description

The mode for rendering specified as a string.

Member Enumeration Documentation

The different render modes supported.

Enumerator:
MONO  Normal rendering.
QUAD_BUFFERED_STEREO  Quad buffered stereo rendering.

Needs a quad buffered enabled graphics card

HORIZONTAL_SPLIT  Stereo mode where the left eye is rendered as the top half of the screen and the right eye as the bottom half of the screen.

VERTICAL_SPLIT  Stereo mode where the left eye is rendered as the left half of the screen and the right eye as the right half of the screen.

HORIZONTAL_INTERLACED  Stereo mode where every second horizontal line is rendered for the left eye and every other line for the right eye.

VERTICAL_INTERLACED  Stereo mode where every second vertical line is rendered for the left eye and every other line for the right eye.

VERTICAL_INTERLACED_GREEN_SHIFT  Stereo mode where every second vertical line is rendered for the left eye and every other line for the right eye, but with the green pixel shifted one pixel to the right.

Used with for example the Sharp auto-stereoscopic displays.

RED_BLUE_STEREO  Stereo mode where the left eye is rendered in red and the right eye in blue.

RED_GREEN_STEREO  Stereo mode where the left eye is rendered in red and the right eye in green.

RED_CYAN_STEREO  Stereo mode where the left eye is rendered in red and the right eye in cyan.

VERTICAL_SPLIT_KEEP_RATIO  Stereo mode where the left eye is rendered as the left half of the screen and the right eye as the right half of the screen.

The aspect ratio is preserved in this mode, so that it can be used when e.g. extending the desktop in order for rendering each the left eye for one projector and the right for another.


Member Function Documentation

H3DWindowNode::RenderMode::Mode H3DWindowNode::RenderMode::getRenderMode (  ) 


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

Generated on Fri Nov 7 10:30:18 2008 for H3D API by  doxygen 1.5.7