gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
Camera Class Reference

#include <Camera.h>

Collaboration diagram for Camera:

Public Member Functions

 Camera ()
 
 ~Camera ()
 
void giveViewportDimension (const int &W, const int &H)
 
void lookAtCg ()
 
void init ()
 
void rotate (double *q)
 
void move_and_look (double _movfront, double _movright, double _movup, double _rotfront, double _rotright, double _rotup, double _azimut, double _elevation)
 
void moveRight (double &theta)
 
void moveUp (double &theta)
 
void zoom (double &factor)
 
void update ()
 
void affiche ()
 
void alongX ()
 
void alongY ()
 
void alongZ ()
 
void upX ()
 
void upY ()
 
void upZ ()
 
void tiltHeadLeft ()
 
void tiltHeadRight ()
 

Public Attributes

bool on
 
XYZ position
 
XYZ front
 
XYZ up
 
XYZ right
 
XYZ target
 
double focallength
 
double focallength_ratio
 
double aperture
 
double eyesep
 
int screenwidth
 
int screenheight
 
double screenratio
 
double distance
 
double ref_distance
 
bool button_left_down
 
bool button_middle_down
 
bool button_right_down
 
bool stereoEnable
 
double Lc
 
double eye_sep_ratio
 
double closeness
 
double ndfl
 
double glFnear
 
double glFfar
 
double radians
 
double wd2
 
double glFleft
 
double glFright
 
double glFtop
 
double glFbottom
 

Detailed Description

Definition at line 46 of file Camera.h.

Constructor & Destructor Documentation

◆ Camera()

Camera::Camera ( )

Definition at line 21 of file Camera.cpp.

◆ ~Camera()

Camera::~Camera ( )

Definition at line 26 of file Camera.cpp.

Member Function Documentation

◆ affiche()

void Camera::affiche ( )

Definition at line 214 of file Camera.cpp.

Here is the call graph for this function:

◆ alongX()

void Camera::alongX ( )

Definition at line 45 of file Camera.cpp.

Here is the call graph for this function:

◆ alongY()

void Camera::alongY ( )

Definition at line 53 of file Camera.cpp.

Here is the call graph for this function:

◆ alongZ()

void Camera::alongZ ( )

Definition at line 61 of file Camera.cpp.

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ giveViewportDimension()

void Camera::giveViewportDimension ( const int &  W,
const int &  H 
)

Definition at line 179 of file Camera.cpp.

◆ init()

void Camera::init ( )

Definition at line 28 of file Camera.cpp.

Here is the call graph for this function:

◆ lookAtCg()

void Camera::lookAtCg ( )

Definition at line 162 of file Camera.cpp.

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ move_and_look()

void Camera::move_and_look ( double  _movfront,
double  _movright,
double  _movup,
double  _rotfront,
double  _rotright,
double  _rotup,
double  _azimut,
double  _elevation 
)

Definition at line 299 of file Camera.cpp.

Here is the call graph for this function:

◆ moveRight()

void Camera::moveRight ( double &  theta)

Definition at line 255 of file Camera.cpp.

Here is the call graph for this function:

◆ moveUp()

void Camera::moveUp ( double &  theta)

Definition at line 263 of file Camera.cpp.

Here is the call graph for this function:

◆ rotate()

void Camera::rotate ( double *  q)

Definition at line 277 of file Camera.cpp.

Referenced by drawContext::addQuaternion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tiltHeadLeft()

void Camera::tiltHeadLeft ( )

Definition at line 150 of file Camera.cpp.

Here is the call graph for this function:

◆ tiltHeadRight()

void Camera::tiltHeadRight ( )

Definition at line 156 of file Camera.cpp.

Here is the call graph for this function:

◆ update()

void Camera::update ( )

Definition at line 190 of file Camera.cpp.

Referenced by alongX(), alongY(), alongZ(), init(), lookAtCg(), move_and_look(), moveRight(), moveUp(), rotate(), tiltHeadLeft(), tiltHeadRight(), upX(), upY(), and upZ().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ upX()

void Camera::upX ( )

Definition at line 69 of file Camera.cpp.

Here is the call graph for this function:

◆ upY()

void Camera::upY ( )

Definition at line 96 of file Camera.cpp.

Here is the call graph for this function:

◆ upZ()

void Camera::upZ ( )

Definition at line 123 of file Camera.cpp.

Here is the call graph for this function:

◆ zoom()

void Camera::zoom ( double &  factor)

Definition at line 271 of file Camera.cpp.

Member Data Documentation

◆ aperture

double Camera::aperture

Definition at line 58 of file Camera.h.

Referenced by affiche(), init(), lookAtCg(), and update().

◆ button_left_down

bool Camera::button_left_down

Definition at line 62 of file Camera.h.

Referenced by affiche().

◆ button_middle_down

bool Camera::button_middle_down

Definition at line 62 of file Camera.h.

Referenced by affiche().

◆ button_right_down

bool Camera::button_right_down

Definition at line 62 of file Camera.h.

Referenced by affiche().

◆ closeness

double Camera::closeness

Definition at line 64 of file Camera.h.

Referenced by affiche().

◆ distance

double Camera::distance

◆ eye_sep_ratio

double Camera::eye_sep_ratio

Definition at line 64 of file Camera.h.

Referenced by affiche(), init(), lookAtCg(), and update().

◆ eyesep

double Camera::eyesep

Definition at line 59 of file Camera.h.

Referenced by affiche(), init(), lookAtCg(), and update().

◆ focallength

double Camera::focallength

Definition at line 56 of file Camera.h.

Referenced by affiche(), init(), lookAtCg(), and update().

◆ focallength_ratio

double Camera::focallength_ratio

Definition at line 57 of file Camera.h.

Referenced by affiche(), lookAtCg(), and update().

◆ front

XYZ Camera::front

◆ glFbottom

double Camera::glFbottom

Definition at line 65 of file Camera.h.

Referenced by giveViewportDimension().

◆ glFfar

double Camera::glFfar

Definition at line 64 of file Camera.h.

Referenced by affiche(), and init().

◆ glFleft

double Camera::glFleft

Definition at line 65 of file Camera.h.

Referenced by giveViewportDimension().

◆ glFnear

double Camera::glFnear

Definition at line 64 of file Camera.h.

Referenced by affiche(), init(), and update().

◆ glFright

double Camera::glFright

Definition at line 65 of file Camera.h.

Referenced by giveViewportDimension().

◆ glFtop

double Camera::glFtop

Definition at line 65 of file Camera.h.

Referenced by giveViewportDimension().

◆ Lc

double Camera::Lc

Definition at line 64 of file Camera.h.

Referenced by affiche(), and lookAtCg().

◆ ndfl

double Camera::ndfl

Definition at line 64 of file Camera.h.

Referenced by update().

◆ on

bool Camera::on

Definition at line 50 of file Camera.h.

Referenced by init().

◆ position

◆ radians

double Camera::radians

Definition at line 64 of file Camera.h.

Referenced by affiche(), drawContext::initProjection(), and update().

◆ ref_distance

double Camera::ref_distance

Definition at line 61 of file Camera.h.

Referenced by affiche(), init(), lookAtCg(), update(), and zoom().

◆ right

XYZ Camera::right

◆ screenheight

int Camera::screenheight

Definition at line 60 of file Camera.h.

Referenced by affiche(), and giveViewportDimension().

◆ screenratio

double Camera::screenratio

Definition at line 61 of file Camera.h.

Referenced by giveViewportDimension().

◆ screenwidth

int Camera::screenwidth

Definition at line 60 of file Camera.h.

Referenced by affiche(), and giveViewportDimension().

◆ stereoEnable

bool Camera::stereoEnable

Definition at line 63 of file Camera.h.

Referenced by affiche().

◆ target

◆ up

◆ wd2

double Camera::wd2

Definition at line 64 of file Camera.h.

Referenced by affiche(), giveViewportDimension(), and update().


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