Class SoInterlacedStereoParameters
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.viewercomponents.SoStereoParameters
-
- com.openinventor.inventor.viewercomponents.SoInterlacedStereoParameters
-
public class SoInterlacedStereoParameters extends SoStereoParameters
TheSoInterlacedStereoParameters
class is used to specify the behavior of the interlaced stereo. The interlacing can be either vertical or horizontal, as defined by the InterlacingMode.Some SHARP screens require that the green component be written one pixel to the right, which is supported through the greenShift method.
Reverse interlacing is there to allow for screen-aligned interlacing. It is up to the user of the parameters to set the reverse interlacing when the window coordinates are not aligned with the screen coordinates. Screen interlacing changes the way odd and even lines are computed. By default the left eye is rendered on even lines and the right eye on odd lines. In screen interlacing even is computed from the position of the pixel on the screen, in non-screen interlacing it is relative to the rendering window.
The interlaced mode can work in two modes: fast or best. This is simply a matter of quality, and rendering time is not impacted. Due to the interlacing, lines close to horizontal can appear as dotted lines. In best mode, those parts of the model are drawn as if they were thicker. By default, the mode is fast.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoInterlacedStereoParameters.InterlacedModes
Interlaced modes.-
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
-
-
Constructor Summary
Constructors Constructor Description SoInterlacedStereoParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getGreenShift()
SoInterlacedStereoParameters.InterlacedModes
getInterlacingMode()
boolean
getQualityRendering()
boolean
isReverseInterlacing()
void
setGreenShift(boolean greenShift)
void
setInterlacingMode(SoInterlacedStereoParameters.InterlacedModes mode)
void
setQualityRendering(boolean qualityRendering)
void
setReverseInterlacing(boolean reversed)
-
Methods inherited from class com.openinventor.inventor.viewercomponents.SoStereoParameters
isReversedView, setReversedView
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getInterlacingMode
public SoInterlacedStereoParameters.InterlacedModes getInterlacingMode()
-
setQualityRendering
public void setQualityRendering(boolean qualityRendering)
-
setInterlacingMode
public void setInterlacingMode(SoInterlacedStereoParameters.InterlacedModes mode)
-
isReverseInterlacing
public boolean isReverseInterlacing()
-
getGreenShift
public boolean getGreenShift()
-
getQualityRendering
public boolean getQualityRendering()
-
setGreenShift
public void setGreenShift(boolean greenShift)
-
setReverseInterlacing
public void setReverseInterlacing(boolean reversed)
-
-