SoLogicalViewportElement Class |
Stores the logical viewport region.
Namespace: OIV.Inventor.Elements
The SoLogicalViewportElement type exposes the following members.
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Get | Returns the current viewport region from the state. | |
GetClassStackIndex | Obsolete. Returns the stack id for this element. | |
GetDefaultViewport | Returns the default viewport region. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetInstance | Return the top (current) instance of the element in the state. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Pop | Pops element. | |
Push | Pushes element. | |
Set | Sets the viewport region. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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 OIV.Inventor.SoOffscreenRenderArea).