public class SoPerspectiveCamera extends SoCamera
By default, the camera is located at (0,0,1) and looks along the negative z-axis; the position and orientation fields can be used to change these values. The heightAngle
field defines the total vertical angle of the viewing volume; this and the aspectRatio field determine the horizontal angle.
See the base class SoCamera
for more information about the inherited fields.
Useful algorithms for manipulating a camera are provided in the SoCameraInteractor
class.
File format/default:
PerspectiveCamera {
viewportMapping | ADJUST_CAMERA |
position | 0 0 1 |
orientation | 0 0 1 0 |
aspectRatio | 1 |
nearDistance | 1 |
farDistance | 10 |
focalDistance | 5 |
heightAngle | 0.785398 |
Action behavior:
SoGLRenderAction
, SoCallbackAction
, SoGetBoundingBoxAction
, SoHandleEventAction
, SoRayPickAction
Sets the viewport and camera information in the state. Sets: SoFocalDistanceElement
, SoProjectionMatrixElement
, SoViewportRegionElement
SoViewVolumeElement
, SoViewingMatrixElement
See also:
SoCamera.StereoModes, SoCamera.ViewportMappings
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFFloat |
heightAngle
Vertical angle of the viewing volume.
|
ADJUST_CAMERA, aspectRatio, CROP_VIEWPORT_FILL_FRAME, CROP_VIEWPORT_LINE_FRAME, CROP_VIEWPORT_NO_FRAME, farDistance, focalDistance, LEAVE_ALONE, LEFT_VIEW, MONOSCOPIC, nearDistance, orientation, position, RIGHT_VIEW, viewportMapping
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPerspectiveCamera()
Creates a perspective camera node with default settings.
|
allowStereo, getBalanceAdjustment, getStereoAbsoluteAdjustment, getStereoAdjustment, getStereoMode, getViewportBounds, getViewVolume, getViewVolume, isBalanceAdjustmentNearFrac, pointAt, scaleHeight, setBalanceAdjustment, setBalanceAdjustment, setStereoAbsoluteAdjustments, setStereoAdjustment, setStereoMode, viewAll, viewAll, viewAll, viewAll, viewAll
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, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFFloat heightAngle
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com