Class SoLogicalViewportElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoLogicalViewportElement
-
public class SoLogicalViewportElement extends SoElement
Stores the logical viewport region. This element stores the logical viewport region, which indicates to the camera(s) the whole size of the window which is being rendered into. This information is needed when the viewport region has been split, so that the camera doesn't adjust its parameters on only a part of the whole window.LogicalViewportElement is used for "tiled" rendering
in this case it contains the size (and aspect ratio) of the complete large image, while ViewportRegionElement contains the size of the tile (subimage) we are currently rendering. SoCamera.computeView uses the logical viewport's aspect ratio for ADJUST_CAMERA mode, so we render all the tiles with the same adjustment (but only if the LogicalViewportElement was actually set during traversal see SoOffscreenRenderArea
).- See Also:
PoBaseView
,SoOffscreenRenderArea
,SoGLRenderAction
-
-
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 SbViewportRegion
get(SoState state)
Returns the current viewport region from the state.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static SbViewportRegion
getDefaultViewport()
Returns the default viewport region.static void
set(SoState state, SbViewportRegion vp)
Sets the viewport region.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
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. ] *
-
set
public static void set(SoState state, SbViewportRegion vp)
Sets the viewport region.
-
getDefaultViewport
public static SbViewportRegion getDefaultViewport()
Returns the default viewport region.
-
get
public static SbViewportRegion get(SoState state)
Returns the current viewport region from the state.
-
-