Stg::PerspectiveCamera Class Reference

#include <stage.hh>

Inheritance diagram for Stg::PerspectiveCamera:

Public Member Functions

void addPitch (double pitch)
 
void addPose (double x, double y, double z)
 
void addYaw (double yaw)
 
virtual void Draw (void) const
 
double farClip (void) const
 
void forward (double amount)
 
double horizFov (void) const
 
void Load (Worldfile *wf, int sec)
 
void move (double x, double y, double z)
 
double nearClip (void) const
 
 PerspectiveCamera (void)
 
double realDistance (double z_buf_val) const
 
void reset ()
 
void Save (Worldfile *wf, int sec)
 
void scroll (double dy)
 
void setAspect (double aspect)
 update vertical fov based on window aspect and current horizontal fov
 
void setClip (double near, double far)
 
void setFov (double horiz_fov, double vert_fov)
 
void setPitch (double pitch)
 
void setPose (double x, double y, double z)
 
virtual void SetProjection (void) const
 
void setYaw (double yaw)
 
void strafe (double amount)
 
void update (void)
 
double vertFov (void) const
 
- Public Member Functions inherited from Stg::Camera
 Camera ()
 
double pitch (void) const
 
double x (void) const
 
double y (void) const
 
double yaw (void) const
 
double z (void) const
 
virtual ~Camera ()
 

Additional Inherited Members

- Protected Attributes inherited from Stg::Camera
double _pitch
 
double _x
 
double _y
 
double _yaw
 
double _z
 

Constructor & Destructor Documentation

◆ PerspectiveCamera()

PerspectiveCamera::PerspectiveCamera ( void )

Member Function Documentation

◆ addPitch()

void Stg::PerspectiveCamera::addPitch ( double pitch)
inline

◆ addPose()

void Stg::PerspectiveCamera::addPose ( double x,
double y,
double z )
inline

◆ addYaw()

void Stg::PerspectiveCamera::addYaw ( double yaw)
inline

◆ Draw()

void PerspectiveCamera::Draw ( void ) const
virtual

Implements Stg::Camera.

◆ farClip()

double Stg::PerspectiveCamera::farClip ( void ) const
inline

◆ forward()

void PerspectiveCamera::forward ( double amount)

◆ horizFov()

double Stg::PerspectiveCamera::horizFov ( void ) const
inline

◆ Load()

void PerspectiveCamera::Load ( Worldfile * wf,
int sec )
virtual

Implements Stg::Camera.

◆ move()

void PerspectiveCamera::move ( double x,
double y,
double z )

◆ nearClip()

double Stg::PerspectiveCamera::nearClip ( void ) const
inline

◆ realDistance()

double Stg::PerspectiveCamera::realDistance ( double z_buf_val) const
inline

◆ reset()

void Stg::PerspectiveCamera::reset ( void )
inlinevirtual

Implements Stg::Camera.

◆ Save()

void PerspectiveCamera::Save ( Worldfile * wf,
int sec )

◆ scroll()

void Stg::PerspectiveCamera::scroll ( double dy)
inline

◆ setAspect()

void Stg::PerspectiveCamera::setAspect ( double aspect)
inline

update vertical fov based on window aspect and current horizontal fov

◆ setClip()

void Stg::PerspectiveCamera::setClip ( double near,
double far )
inline

◆ setFov()

void Stg::PerspectiveCamera::setFov ( double horiz_fov,
double vert_fov )
inline

◆ setPitch()

void Stg::PerspectiveCamera::setPitch ( double pitch)
inline

◆ setPose()

void Stg::PerspectiveCamera::setPose ( double x,
double y,
double z )
inline

◆ SetProjection()

void PerspectiveCamera::SetProjection ( void ) const
virtual

Implements Stg::Camera.

◆ setYaw()

void Stg::PerspectiveCamera::setYaw ( double yaw)
inline

◆ strafe()

void PerspectiveCamera::strafe ( double amount)

◆ update()

void PerspectiveCamera::update ( void )

◆ vertFov()

double Stg::PerspectiveCamera::vertFov ( void ) const
inline

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