#include <PerspectiveCamera.h>
Inheritance diagram for nvsg::PerspectiveCamera:
Public Methods | |
virtual NVSG_API const PerspectiveCamera * | clone (void) const |
Create a clone of this PerspectiveCamera. More... | |
NVSG_API float | getFieldOfView () const |
Get the field of view (fovy). More... | |
NVSG_API void | setFieldOfView (float fov) |
Set the field of view (fovy). More... | |
virtual NVSG_API void | setTargetDistance (float td) |
Set the distance to the target point. More... | |
virtual NVSG_API nvmath::Mat44f | getProjection () const |
Get the projection matrix. More... | |
virtual NVSG_API nvmath::Mat44f | getInverseProjection () const |
Get the inverse projection matrix. More... | |
Static Public Methods | |
NVSG_API const PerspectiveCamera * | create (void) |
Create a PerspectiveCamera. More... | |
NVSG_API const PerspectiveCamera * | createFromBase (const SimpleCamera &rhs) |
Create a PerspectiveCamera by copying from a SimpleCamera. More... | |
Protected Methods | |
NVSG_API | PerspectiveCamera () |
Constructor. More... | |
NVSG_API | PerspectiveCamera (const SimpleCamera &rhs) |
Partial Constructor. More... | |
NVSG_API | PerspectiveCamera (const PerspectiveCamera &rhs) |
Copy Constructor. More... | |
virtual NVSG_API | ~PerspectiveCamera (void) |
Protected destructor to prevent explicit creation on stack. More... |
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. |