Properties of a camera floating around in space, or, alternatively, an eagle's eye.
More...
#include </home/werner/origo/vish/ocean/eagle/Camera.hpp>
List of all members.
Public Member Functions
-
bool doCubicInterpolation () const
- Indicate whether the succeeding interval in a CameraPath shall be interpolated with a cubic polynomial or linear.
- vector getLookAt () const
- Get the point which is currently looked at.
-
const rotor & getOrientation () const
-
const vector & getPosition () const
- Where is the camera?
-
vector getRightDir () const
- Get the direction towards right of the viewer.
-
vector getUpDir () const
- Get the upwards direction.
- double getViewAngle () const
- What is the current horizontal view angle of the camera?
-
vector getViewdir () const
- Get the view direction.
- void look_right (double radians)
- Roll the camera to look right a little bit.
- void look_up (double radians)
- Roll the camera to look up a little bit.
- void move_forward (double dist)
- Move the camera forward a little bit.
- void move_right (double dist)
- Move (shift) the camera right a little bit.
- void move_up (double dist)
- Move (raise) the camera up little bit.
-
void setInterpolationType (bool doCubic)
- Specify whether the succeeding interval in a CameraPath shall be interpolated with a cubic polynomial or linear.
-
rotor & setOrientation (const rotor &r)
-
void setPosition (const vector &p)
- Set the camera to a certain position.
- void setViewAngle (double va)
- Specify the current horizontal view angle of the camera.
Static Public Member Functions
Detailed Description
Properties of a camera floating around in space, or, alternatively, an eagle's eye.
Member Function Documentation
vector Eagle::Camera::getLookAt |
( |
| ) |
const [inline] |
Get the point which is currently looked at.
This point resides in the focalDistance from the Camera. During stereographic rendering, it is kept at the same pixel.
double Eagle::Camera::getViewAngle |
( |
| ) |
const [inline] |
What is the current horizontal view angle of the camera?
- Returns:
- View angle in radians.
void Eagle::Camera::look_right |
( |
double |
radians | ) |
[inline] |
Roll the camera to look right a little bit.
- Parameters:
-
radians | How many radians are "a little bit". The camera position is unchanged. |
void Eagle::Camera::look_up |
( |
double |
radians | ) |
[inline] |
Roll the camera to look up a little bit.
- Parameters:
-
radians | How many radians are "a little bit". The camera position is unchanged. |
void Eagle::Camera::move_forward |
( |
double |
dist | ) |
[inline] |
Move the camera forward a little bit.
- Parameters:
-
How | much is a little bit. Note that the focal distance is kept constant, i.e. we do not move closer to the getLookAt() point but keep our eyes constant when moving forward. |
void Eagle::Camera::move_right |
( |
double |
dist | ) |
[inline] |
Move (shift) the camera right a little bit.
- Parameters:
-
How | much is a little bit. See getRightDir() on how "right" is defined. |
void Eagle::Camera::move_up |
( |
double |
dist | ) |
[inline] |
Move (raise) the camera up little bit.
- Parameters:
-
How | much is a little bit. See getUpDir() on how "up" is defined. |
void Eagle::Camera::setViewAngle |
( |
double |
va | ) |
[inline] |
Specify the current horizontal view angle of the camera.
- Parameters:
-
The documentation for this class was generated from the following file: