24#ifndef _SO_STEREO_ELEMENT
25#define _SO_STEREO_ELEMENT
27#include <Inventor/nodes/SoCamera.h>
28#include <Inventor/elements/SoSubElement.h>
41SoEXTENDER_Documented
class SoStereoElement :
public SoElement {
43 SO_ELEMENT_HEADER(SoStereoElement);
127 virtual void init(
SoState *state);
132 virtual SbBool matches(
const SoElement* elt)
const;
137 virtual SoElement* copyMatchInfo()
const;
141 static void initClass();
142 static void exitClass();
147 SbBool stereoAbsoluteAdjustments;
151 float interEyeDistance;
155 virtual ~SoStereoElement();
static void setBalanceAdjustment(SoState *state, float stbalance, SbBool stNearFrac=false)
Sets the stereo balance adjustment.
static SoStereoElement * getInstance(const SoState *state, SbBool &elemIsSet)
Return the top (current) instance of the element in the state.
friend class SoGuiRenderArea
static void setStereoAdjustment(SoState *state, float stoffset)
Sets the stereo offset adjustment.
static void setInterEyeDistance(SoState *state, float ied)
Sets the inter-eye distance (immersive MP only).
static void set(SoState *state, const SoCamera::StereoMode mode)
Sets the stereo mode, LEFT_VIEW, RIGHT_VIEW, or MONOSCOPIC.
static SoCamera::StereoMode getStereoMode(SoState *state)
Returns the stereoMode.
static void setStereoAbsoluteAdjustments(SoState *state, SbBool absolute)
Indicates if the stereo offset and and balance setting should be interpreted as factors or as absolut...
static bool getReversedView(SoState *state)
Returns the inverted view flag.
static void setReversedView(SoState *state, bool strev)
Sets the stereo inverted view flag.
static float getStereoAdjustment(SoState *state)
Returns the stereo offset adjustment.
static bool isStereoAbsoluteAdjustments(SoState *state)
Returns TRUE if stereo adjustments are absolute.
friend class SoStereoCamera
static float getBalanceAdjustment(SoState *state)
Returns the stereo balance adjustment.
static float getInterEyeDistance(SoState *state)
Returns the inter-eye distance (immersive MP only).
static SbBool isBalanceAdjustmentNearFrac(SoState *state)
Returns TRUE when the stereo balance adjustement is defined as a fraction of the camera near distance...
friend class SoBaseStereo