Open Inventor Reference
|
Orthographic camera node. More...
#include <Inventor/nodes/SoOrthographicCamera.h>
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 () |
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.
OrthographicCamera { viewportMapping ADJUST_CAMERA position 0 0 1 orientation 0 0 1 0 aspectRatio 1 nearDistance 1 farDistance 10 focalDistance 5 height 2 }
Definition at line 104 of file SoOrthographicCamera.h.
SoOrthographicCamera::SoOrthographicCamera | ( | ) |
virtual SoOrthographicCamera::~SoOrthographicCamera | ( | ) | [protected, virtual] |
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.
Definition at line 113 of file SoOrthographicCamera.h.