H3D::Viewpoint Class Reference
[X3D node classes.]

The Viewpoint node defines a viewpoint that provides a perspective view of the scene. More...

#include <H3D/Viewpoint.h>

Inheritance diagram for H3D::Viewpoint:

Inheritance graph

List of all members.

Public Member Functions

 Viewpoint (Inst< SFSetBind > _set_bind=0, Inst< SFVec3f > _centerOfRotation=0, Inst< SFString > _description=0, Inst< SFFloat > _fieldOfView=0, Inst< SFBool > _jump=0, Inst< SFNode > _metadata=0, Inst< SFOrientation > _orientation=0, Inst< SFPosition > _position=0, Inst< SFBool > _retainUserOffsets=0, Inst< SFTime > _bindTime=0, Inst< SFBool > _isBound=0, Inst< SFMatrix4f > _accForwardMatrix=0, Inst< SFMatrix4f > _accInverseMatrix=0)
 Constructor.

Public Attributes

auto_ptr< SFFloatfieldOfView
 The fieldOfView field specifies a preferred minimum viewing angle from this viewpoint in radians.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodedatabase for this node.


Detailed Description

The Viewpoint node defines a viewpoint that provides a perspective view of the scene.

A perspective view is one in which all projectors are coalesce at position.

The fieldOfView field specifies a preferred minimum viewing angle from this viewpoint in radians. A small field of view roughly corresponds to a telephoto lens; a large field of view roughly corresponds to a wide-angle lens. The field of view shall be greater than zero and smaller than pi. The value of fieldOfView represents the minimum viewing angle in any direction axis perpendicular to the view. A browser with a rectangular viewing projection has the following relationship: display width tan(FOVhorizontal/2)
-------------- = -------------------
display height tan(FOVvertical/2)

where the smaller of display width or display height determines which angle equals the fieldOfView (the larger angle is computed using the relationship described above). The larger angle shall not exceed pi and may force the smaller angle to be less than fieldOfView in order to sustain the aspect ratio.


Member Data Documentation

The fieldOfView field specifies a preferred minimum viewing angle from this viewpoint in radians.

Access type: inputOutput
Default value: pi/4
Value range: (0,pi)

Referenced by Viewpoint().


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

Generated on Fri Nov 7 10:31:21 2008 for H3D API by  doxygen 1.5.7