Stores the current stereo attributes.
More...
#include <Inventor/elements/SoStereoElement.h>
|
static SoType | getClassTypeId () |
| Returns the type identifier for this class.
|
|
static int | getClassStackIndex () |
| Returns the stack id for this element.
|
|
static void | setStereoAbsoluteAdjustments (SoState *state, SbBool absolute) |
| Indicates if the stereo offset and and balance setting should be interpreted as factors or as absolute parameters.
|
|
static bool | isStereoAbsoluteAdjustments (SoState *state) |
| Returns TRUE if stereo adjustments are absolute.
|
|
static void | setStereoAdjustment (SoState *state, float stoffset) |
| Sets the stereo offset adjustment.
|
|
static void | setBalanceAdjustment (SoState *state, float stbalance, SbBool stNearFrac=false) |
| Sets the stereo balance adjustment.
|
|
static void | setInterEyeDistance (SoState *state, float ied) |
| Sets the inter-eye distance (immersive MP only).
|
|
static void | setReversedView (SoState *state, bool strev) |
| Sets the stereo inverted view flag.
|
|
static float | getStereoAdjustment (SoState *state) |
| Returns the stereo offset adjustment.
|
|
static float | getBalanceAdjustment (SoState *state) |
| Returns the stereo balance adjustment.
|
|
static SbBool | isBalanceAdjustmentNearFrac (SoState *state) |
| Returns TRUE when the stereo balance adjustement is defined as a fraction of the camera near distance.
|
|
static float | getInterEyeDistance (SoState *state) |
| Returns the inter-eye distance (immersive MP only).
|
|
static bool | getReversedView (SoState *state) |
| Returns the inverted view flag.
|
|
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 SoStereoElement * | getInstance (const SoState *state, SbBool &elemIsSet) |
| Return the top (current) instance of the element in the state.
|
|
static SoType | getClassTypeId () |
| Returns type identifier for SoElement class.
|
|
static SoType | getClassTypeId () |
| Returns the type identifier for this class.
|
|
|
virtual void | push (SoState *state) |
| Pushes element.
|
|
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
| Pops element.
|
|
virtual void | print (FILE *fp) const |
| Prints element (for debugging).
|
|
virtual SoType | getTypeId () const |
| Returns type identifier for element instance.
|
|
SbBool | isOfType (const SoType &type) const |
| Returns TRUE if this object is of the type specified in type or is derived from that type.
|
|
template<typename TypedObjectClass > |
SbBool | isOfType () const |
| Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
|
|
Stores the current stereo attributes.
This element stores the current stereo attributes.
SEE ALSO
Definition at line 41 of file SoStereoElement.h.
◆ getBalanceAdjustment()
static float SoStereoElement::getBalanceAdjustment |
( |
SoState * |
state | ) |
|
|
static |
Returns the stereo balance adjustment.
◆ getClassStackIndex()
static int SoStereoElement::getClassStackIndex |
( |
| ) |
|
|
static |
Returns the stack id for this element.
◆ getClassTypeId()
static SoType SoStereoElement::getClassTypeId |
( |
| ) |
|
|
static |
Returns the type identifier for this class.
◆ getInstance()
Return the top (current) instance of the element in the state.
Note it does NOT cause cache dependency! It also casts away the const.
◆ getInterEyeDistance()
static float SoStereoElement::getInterEyeDistance |
( |
SoState * |
state | ) |
|
|
static |
Returns the inter-eye distance (immersive MP only).
◆ getReversedView()
static bool SoStereoElement::getReversedView |
( |
SoState * |
state | ) |
|
|
static |
Returns the inverted view flag.
◆ getStereoAdjustment()
static float SoStereoElement::getStereoAdjustment |
( |
SoState * |
state | ) |
|
|
static |
Returns the stereo offset adjustment.
◆ getStereoMode()
◆ isBalanceAdjustmentNearFrac()
static SbBool SoStereoElement::isBalanceAdjustmentNearFrac |
( |
SoState * |
state | ) |
|
|
static |
Returns TRUE when the stereo balance adjustement is defined as a fraction of the camera near distance.
See setBalanceAdjustment.
◆ isStereoAbsoluteAdjustments()
static bool SoStereoElement::isStereoAbsoluteAdjustments |
( |
SoState * |
state | ) |
|
|
static |
◆ set()
Sets the stereo mode, LEFT_VIEW, RIGHT_VIEW, or MONOSCOPIC.
◆ setBalanceAdjustment()
static void SoStereoElement::setBalanceAdjustment |
( |
SoState * |
state, |
|
|
float |
stbalance, |
|
|
SbBool |
stNearFrac = false |
|
) |
| |
|
static |
Sets the stereo balance adjustment.
When stNearFrac is set to TRUE, stbalance value is considered to be a fraction of the camera near distance.
◆ setInterEyeDistance()
static void SoStereoElement::setInterEyeDistance |
( |
SoState * |
state, |
|
|
float |
ied |
|
) |
| |
|
static |
Sets the inter-eye distance (immersive MP only).
◆ setReversedView()
static void SoStereoElement::setReversedView |
( |
SoState * |
state, |
|
|
bool |
strev |
|
) |
| |
|
static |
Sets the stereo inverted view flag.
◆ setStereoAbsoluteAdjustments()
static void SoStereoElement::setStereoAbsoluteAdjustments |
( |
SoState * |
state, |
|
|
SbBool |
absolute |
|
) |
| |
|
static |
Indicates if the stereo offset and and balance setting should be interpreted as factors or as absolute parameters.
If TRUE, the stereo adjustments are absolute.
◆ setStereoAdjustment()
static void SoStereoElement::setStereoAdjustment |
( |
SoState * |
state, |
|
|
float |
stoffset |
|
) |
| |
|
static |
Sets the stereo offset adjustment.
◆ SoBaseStereo
◆ SoGuiRenderArea
◆ SoStereoCamera
The documentation for this class was generated from the following file: