#include <PerspectiveCamera.h>
Inheritance diagram for nvsg::PerspectiveCamera:
Public Member Functions | |
virtual NVSG_API const PerspectiveCamera * | clone (void) const |
Create a clone of this PerspectiveCamera. | |
NVSG_API float | getFieldOfView () const |
Get the field of view (fovy). | |
NVSG_API void | setFieldOfView (float fov) |
Set the field of view (fovy). | |
virtual NVSG_API void | setTargetDistance (float td) |
Set the distance to the target point. | |
virtual NVSG_API nvmath::Mat44f | getProjection () const |
Get the projection matrix. | |
virtual NVSG_API nvmath::Mat44f | getInverseProjection () const |
Get the inverse projection matrix. | |
Static Public Member Functions | |
static NVSG_API const PerspectiveCamera * | create (void) |
Create a PerspectiveCamera. | |
static NVSG_API const PerspectiveCamera * | createFromBase (const SimpleCamera &rhs) |
Create a PerspectiveCamera by copying from a SimpleCamera. | |
Protected Member Functions | |
NVSG_API | PerspectiveCamera () |
Constructor. | |
NVSG_API | PerspectiveCamera (const SimpleCamera &rhs) |
Partial Constructor. | |
NVSG_API | PerspectiveCamera (const PerspectiveCamera &rhs) |
Copy Constructor. | |
virtual NVSG_API | ~PerspectiveCamera (void) |
Protected destructor to prevent explicit creation on stack. |
This is a SimpleCamera that represents a perspective camera.
|
Constructor.
|
|
Partial Constructor.
|
|
Copy Constructor.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Create a PerspectiveCamera.
|
|
Create a PerspectiveCamera by copying from a SimpleCamera.
|
|
Create a clone of this PerspectiveCamera.
Implements nvsg::SimpleCamera. |
|
Get the field of view (fovy). The field of view is the view angle (in radians) in the y-direction.
|
|
Set the field of view (fovy). The field of view is the view angle (in radians) in the y-direction.
|
|
Set the distance to the target point. On perspective cameras, setting the target distance keeps the field of view constant. This means that the window size is adjusted accordingly.
Reimplemented from nvsg::SimpleCamera. |
|
Get the projection matrix.
Implements nvsg::MonoCamera. |
|
Get the inverse projection matrix.
Implements nvsg::MonoCamera. |