SoOrthographicCamera Class Reference
[Cameras]

Orthographic camera node. More...

#include <Inventor/nodes/SoOrthographicCamera.h>

Inheritance diagram for SoOrthographicCamera:
SoCamera SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoOrthographicCamera ()
virtual void scaleHeight (float scaleFactor)
virtual SbViewVolume getViewVolume (float useAspectRatio=0.0) const

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFFloat height

Detailed Description

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

ACTION BEHAVIOR

SEE ALSO

SbViewVolume, SoPerspectiveCamera, SoCameraInteractor


Constructor & Destructor Documentation

SoOrthographicCamera::SoOrthographicCamera (  ) 

Creates an orthographic camera node with default settings.


Member Function Documentation

static SoType SoOrthographicCamera::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoCamera.

virtual SoType SoOrthographicCamera::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoCamera.

virtual SbViewVolume SoOrthographicCamera::getViewVolume ( float  useAspectRatio = 0.0  )  const [virtual]

Fills in a view volume structure, based on the camera.

If the useAspectRatio field is not 0.0 (the default), the camera uses that ratio instead of the one it has.

Note that in ADJUST_CAMERA mode, Inventor automatically modifies the view volume based on the aspect ratio of the viewport. However the view volume values are not changed, only the values passed to OpenGL. In order to get the modified values (i.e., the actual view volume used to render) you must pass the actual viewport aspect ratio to getViewVolume.

Implements SoCamera.

virtual void SoOrthographicCamera::scaleHeight ( float  scaleFactor  )  [virtual]

Scales the height of the camera, in this case, the height field.

Implements SoCamera.


Member Data Documentation

Height of the viewing volume.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 17 Dec 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/