Open Inventor Reference
SoOrthographicCamera Class Reference

Orthographic camera node. More...

#include <Inventor/nodes/SoOrthographicCamera.h>

Inheritance diagram for SoOrthographicCamera:
SoCamera SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoOrthographicCamera ()
 Creates an orthographic camera node with default settings.
virtual void scaleHeight (float scaleFactor)
 Scales the height of the camera, in this case, the 'height' field.
virtual SbViewVolume getViewVolume (float useAspectRatio=0.0) const
 Fills in a view volume structure, based on the camera.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFFloat height
 Height of the viewing volume.

Protected Member Functions

virtual void viewBoundingBox (const SbBox3f &box, float aspect, float slack)
 Positions camera to view passed bounding box with given aspect ratio and current height.
virtual ~SoOrthographicCamera ()

Detailed Description

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.

File Format/Default
Action Behavior
SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoHandleEventAction, SoRayPickAction
Sets the viewport and camera information in the state.
See Also
SbViewVolume, SoPerspectiveCamera

Definition at line 104 of file SoOrthographicCamera.h.


Constructor & Destructor Documentation

SoOrthographicCamera::SoOrthographicCamera ( )
virtual SoOrthographicCamera::~SoOrthographicCamera ( ) [protected, virtual]

Member Function Documentation

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

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

Implements SoCamera.

static void SoOrthographicCamera::initClass ( ) [static]

Reimplemented from SoCamera.

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

Implements SoCamera.

virtual void SoOrthographicCamera::viewBoundingBox ( const SbBox3f box,
float  aspect,
float  slack 
) [protected, virtual]

Implements SoCamera.


Member Data Documentation


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