Class SoOrthographicCamera

All Implemented Interfaces:
SafeDisposable

public class SoOrthographicCamera extends SoCamera
Orthographic camera node. An orthographic camera defines a parallel projection from a viewpoint. This camera does not diminish objects with distance, as an SoPerspectiveCamera does. The viewing volume for an orthographic camera is a rectangular parallelepiped (a box).

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 height field defines the total height of the viewing volume; this and the aspectRatio field determine its width.

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:

OrthographicCamera {

    viewportMapping ADJUST_CAMERA
    position 0 0 1
    orientation 0 0 1 0
    aspectRatio 1
    nearDistance 1
    farDistance 10
    focalDistance 5
    blur 0
    exposureMode LINEAR
    exposureCompensation 0
    height 2
}

Action behavior:

SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoHandleEventAction, SoRayPickAction
Sets the viewport and camera information in the state. Sets: SoFocalDistanceElement, SoProjectionMatrixElement, SoViewportRegionElementSoViewVolumeElement, SoViewingMatrixElement

See Also:
  • Field Details

    • height

      public final SoSFFloat height
      Height of the viewing volume.
  • Constructor Details

    • SoOrthographicCamera

      public SoOrthographicCamera()
      Creates an orthographic camera node with default settings.