The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
Eagle::Head Class Reference

Properties of a camera floating around in space, or, alternatively, an eagle's eye. More...

#include <elementary/eagle/Camera.hpp>

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 vectorgetPosition () 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.
 
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.
 

Detailed Description

Properties of a camera floating around in space, or, alternatively, an eagle's eye.

Member Function Documentation

◆ getLookAt()

vector Eagle::Head::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.

◆ getViewAngle()

double Eagle::Head::getViewAngle ( ) const
inline

What is the current horizontal view angle of the camera?

Returns
View angle in radians.

◆ look_right()

void Eagle::Head::look_right ( double  radians)
inline

Roll the camera to look right a little bit.

Parameters
radiansHow many radians are "a little bit". The camera position is unchanged.

◆ look_up()

void Eagle::Head::look_up ( double  radians)
inline

Roll the camera to look up a little bit.

Parameters
radiansHow many radians are "a little bit". The camera position is unchanged.

◆ move_forward()

void Eagle::Head::move_forward ( double  dist)
inline

Move the camera forward a little bit.

Parameters
Howmuch 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.

◆ move_right()

void Eagle::Head::move_right ( double  dist)
inline

Move (shift) the camera right a little bit.

Parameters
Howmuch is a little bit. See getRightDir() on how "right" is defined.

◆ move_up()

void Eagle::Head::move_up ( double  dist)
inline

Move (raise) the camera up little bit.

Parameters
Howmuch is a little bit. See getUpDir() on how "up" is defined.

◆ setViewAngle()

void Eagle::Head::setViewAngle ( double  va)
inline

Specify the current horizontal view angle of the camera.

Parameters
vaView angle in radians.