Public Member Functions | Private Attributes | List of all members
Stg::PerspectiveCamera Class Reference

#include <stage.hh>

Inheritance diagram for Stg::PerspectiveCamera:
Inheritance graph
[legend]

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

Private Attributes

double _aspect
 
double _horiz_fov
 
double _vert_fov
 
double _z_far
 
double _z_near
 

Additional Inherited Members

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

Detailed Description

Definition at line 1392 of file stage.hh.

Constructor & Destructor Documentation

PerspectiveCamera::PerspectiveCamera ( void  )

Definition at line 17 of file camera.cc.

Member Function Documentation

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

Definition at line 1423 of file stage.hh.

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

Definition at line 1413 of file stage.hh.

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

Definition at line 1421 of file stage.hh.

void PerspectiveCamera::Draw ( void  ) const
virtual

Implements Stg::Camera.

Definition at line 42 of file camera.cc.

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

Definition at line 1430 of file stage.hh.

void PerspectiveCamera::forward ( double  amount)

Definition at line 86 of file camera.cc.

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

Definition at line 1419 of file stage.hh.

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

Implements Stg::Camera.

Definition at line 92 of file camera.cc.

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

Definition at line 26 of file camera.cc.

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

Definition at line 1429 of file stage.hh.

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

Definition at line 1425 of file stage.hh.

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

Implements Stg::Camera.

Definition at line 1433 of file stage.hh.

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

Definition at line 98 of file camera.cc.

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

Definition at line 1428 of file stage.hh.

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

update vertical fov based on window aspect and current horizontal fov

Definition at line 1417 of file stage.hh.

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

Definition at line 1431 of file stage.hh.

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

Definition at line 1415 of file stage.hh.

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

Definition at line 1422 of file stage.hh.

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

Definition at line 1412 of file stage.hh.

void PerspectiveCamera::SetProjection ( void  ) const
virtual

Implements Stg::Camera.

Definition at line 54 of file camera.cc.

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

Definition at line 1418 of file stage.hh.

void PerspectiveCamera::strafe ( double  amount)

Definition at line 80 of file camera.cc.

void PerspectiveCamera::update ( void  )

Definition at line 75 of file camera.cc.

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

Definition at line 1420 of file stage.hh.

Member Data Documentation

double Stg::PerspectiveCamera::_aspect
private

Definition at line 1399 of file stage.hh.

double Stg::PerspectiveCamera::_horiz_fov
private

Definition at line 1398 of file stage.hh.

double Stg::PerspectiveCamera::_vert_fov
private

Definition at line 1397 of file stage.hh.

double Stg::PerspectiveCamera::_z_far
private

Definition at line 1396 of file stage.hh.

double Stg::PerspectiveCamera::_z_near
private

Definition at line 1395 of file stage.hh.


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


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Jun 10 2019 15:06:12