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 1296 of file stage.hh.

Constructor & Destructor Documentation

◆ PerspectiveCamera()

PerspectiveCamera::PerspectiveCamera ( void  )

Definition at line 16 of file camera.cc.

Member Function Documentation

◆ addPitch()

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

Definition at line 1342 of file stage.hh.

◆ addPose()

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

Definition at line 1321 of file stage.hh.

◆ addYaw()

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

Definition at line 1340 of file stage.hh.

◆ Draw()

void PerspectiveCamera::Draw ( void  ) const
virtual

Implements Stg::Camera.

Definition at line 38 of file camera.cc.

◆ farClip()

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

Definition at line 1357 of file stage.hh.

◆ forward()

void PerspectiveCamera::forward ( double  amount)

Definition at line 80 of file camera.cc.

◆ horizFov()

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

Definition at line 1338 of file stage.hh.

◆ Load()

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

Implements Stg::Camera.

Definition at line 86 of file camera.cc.

◆ move()

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

Definition at line 22 of file camera.cc.

◆ nearClip()

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

Definition at line 1356 of file stage.hh.

◆ realDistance()

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

Definition at line 1351 of file stage.hh.

◆ reset()

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

Implements Stg::Camera.

Definition at line 1364 of file stage.hh.

◆ Save()

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

Definition at line 92 of file camera.cc.

◆ scroll()

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

Definition at line 1355 of file stage.hh.

◆ setAspect()

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

update vertical fov based on window aspect and current horizontal fov

Definition at line 1336 of file stage.hh.

◆ setClip()

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

Definition at line 1358 of file stage.hh.

◆ setFov()

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

Definition at line 1330 of file stage.hh.

◆ setPitch()

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

Definition at line 1341 of file stage.hh.

◆ setPose()

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

Definition at line 1315 of file stage.hh.

◆ SetProjection()

void PerspectiveCamera::SetProjection ( void  ) const
virtual

Implements Stg::Camera.

Definition at line 50 of file camera.cc.

◆ setYaw()

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

Definition at line 1337 of file stage.hh.

◆ strafe()

void PerspectiveCamera::strafe ( double  amount)

Definition at line 74 of file camera.cc.

◆ update()

void PerspectiveCamera::update ( void  )

Definition at line 70 of file camera.cc.

◆ vertFov()

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

Definition at line 1339 of file stage.hh.

Member Data Documentation

◆ _aspect

double Stg::PerspectiveCamera::_aspect
private

Definition at line 1302 of file stage.hh.

◆ _horiz_fov

double Stg::PerspectiveCamera::_horiz_fov
private

Definition at line 1301 of file stage.hh.

◆ _vert_fov

double Stg::PerspectiveCamera::_vert_fov
private

Definition at line 1300 of file stage.hh.

◆ _z_far

double Stg::PerspectiveCamera::_z_far
private

Definition at line 1299 of file stage.hh.

◆ _z_near

double Stg::PerspectiveCamera::_z_near
private

Definition at line 1298 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 Feb 28 2022 23:48:56