public class PoBaseView extends SoBaseKit
SoCamera
nodes, because camera nodes do not allow specifying a viewport (the viewport is always the full window).
In addition, when mouse event locations are mapped back into 3D space, Open Inventor automatically uses the view volume of the camera associated with the view whose viewport currently contains the mouse cursor.
Views can be used to efficiently create the effect of multiple windows, without the overhead and system dependent code to manage multiple windows. For example, views can be used to subdivide the window into multiple independent views of a 3D scene or to create an inset "bird's eye" view inside the window.
Basically, a view consists of a camera (specifically an SoCameraKit
) and a viewport attached to this camera. The viewport is the region of the graphics window in which the scene graph will be rendered.
NOTES:
PoSceneView
.
LIMITATIONS:
SoCamera.viewportMapping
must be equal to ADJUST_CAMERA in order to have a correct vectorisation when you use HardCopy,
SoBoxHighlightRenderAction
class on a scene graph which contains a view,
SoDrawStyle
node and setOverride()
if necessary.
CHANGES:
PoBaseView
and related classes (PoView
, PoSceneView
and PoToVRML2Action
) have been moved from MeshViz into core Open Inventor.
Action behavior:
Sets: SoGLViewportRegionElement
, SoLogicalViewportElement
, SoModifyViewVolumeElement
, SoViewportRegionElement
, SoGLUpdateAreaElement
See also:
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFVec2f |
viewportOrigin
Lower-left corner coordinates of the viewport of the view.
|
SoSFVec2f |
viewportSize
Size of the viewport of the view.
|
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static SoNodekitCatalog |
getClassNodekitCatalog()
Returns the
SoNodekitCatalog for this class. |
boolean |
isPointWithinViewport(float x,
float y)
Indicates if a point defined in the normalized space [0-1]x[0-1] is in the viewport of the view.
|
boolean |
isSensitiveOnEvents()
Returns true if the view is sensitive to events.
|
void |
sensitiveOnEvents(boolean flag)
Specifies if the view is sensitive to events.
|
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFVec2f viewportOrigin
public final SoSFVec2f viewportSize
public static SoNodekitCatalog getClassNodekitCatalog()
SoNodekitCatalog
for this class.public boolean isSensitiveOnEvents()
public boolean isPointWithinViewport(float x, float y)
public void sensitiveOnEvents(boolean flag)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com