Class SoStereoElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoStereoElement
-
public class SoStereoElement extends SoElement
Stores the current stereo attributes. This element stores the current stereo attributes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static float
getBalanceAdjustment(SoState state)
Returns the stereo balance adjustment.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static float
getInterEyeDistance(SoState state)
Returns the inter-eye distance (immersive MP only).static boolean
getReversedView(SoState state)
Returns the inverted view flag.static float
getStereoAdjustment(SoState state)
Returns the stereo offset adjustment.static SoCamera.StereoModes
getStereoMode(SoState state)
Returns the stereoMode.static boolean
isBalanceAdjustmentNearFrac(SoState state)
Returns true when the stereo balance adjustement is defined as a fraction of the camera near distance.static boolean
isStereoAbsoluteAdjustments(SoState state)
Returns true if stereo adjustments are absolute.static void
set(SoState state, SoCamera.StereoModes mode)
Sets the stereo mode, LEFT_VIEW, RIGHT_VIEW, or MONOSCOPIC.static void
setBalanceAdjustment(SoState state, float stbalance)
Calls setBalanceAdjustment(state, stbalance, (boolean)false).static void
setBalanceAdjustment(SoState state, float stbalance, boolean stNearFrac)
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, boolean strev)
Sets the stereo inverted view flag.static void
setStereoAbsoluteAdjustments(SoState state, boolean absolute)
Indicates if the stereo offset and and balance setting should be interpreted as factors or as absolute parameters.static void
setStereoAdjustment(SoState state, float stoffset)
Sets the stereo offset adjustment.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
setBalanceAdjustment
public static void setBalanceAdjustment(SoState state, float stbalance)
Calls setBalanceAdjustment(state, stbalance, (boolean)false).
-
getBalanceAdjustment
public static float getBalanceAdjustment(SoState state)
Returns the stereo balance adjustment.
-
getClassStackIndex
@Deprecated(since="9.3.0.0") public static int getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
setStereoAbsoluteAdjustments
public static void setStereoAbsoluteAdjustments(SoState state, boolean absolute)
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.
-
set
public static void set(SoState state, SoCamera.StereoModes mode)
Sets the stereo mode, LEFT_VIEW, RIGHT_VIEW, or MONOSCOPIC.
-
getInterEyeDistance
public static float getInterEyeDistance(SoState state)
Returns the inter-eye distance (immersive MP only).
-
getReversedView
public static boolean getReversedView(SoState state)
Returns the inverted view flag.
-
isBalanceAdjustmentNearFrac
public static boolean isBalanceAdjustmentNearFrac(SoState state)
Returns true when the stereo balance adjustement is defined as a fraction of the camera near distance. See setBalanceAdjustment.
-
isStereoAbsoluteAdjustments
public static boolean isStereoAbsoluteAdjustments(SoState state)
Returns true if stereo adjustments are absolute. SeesetStereoAbsoluteAdjustments()
.
-
setInterEyeDistance
public static void setInterEyeDistance(SoState state, float ied)
Sets the inter-eye distance (immersive MP only).
-
setReversedView
public static void setReversedView(SoState state, boolean strev)
Sets the stereo inverted view flag.
-
setBalanceAdjustment
public static void setBalanceAdjustment(SoState state, float stbalance, boolean stNearFrac)
Sets the stereo balance adjustment. When stNearFrac is set to true, stbalance value is considered to be a fraction of the camera near distance.
-
getStereoMode
public static SoCamera.StereoModes getStereoMode(SoState state)
Returns the stereoMode.
-
setStereoAdjustment
public static void setStereoAdjustment(SoState state, float stoffset)
Sets the stereo offset adjustment.
-
getStereoAdjustment
public static float getStereoAdjustment(SoState state)
Returns the stereo offset adjustment.
-
-