Molecule Visualizer
|
Public Member Functions | |
Camera () | |
Default constructor. More... | |
Camera (glm::vec3 &pos) | |
~Camera (void) | |
Destructor. | |
void | reset () |
void | buildViewMatrix (void) |
A member function to build the view matrix. More... | |
void | buildProjectionMatrix (void) |
A member function to build the projection matrix. More... | |
void | zoom (float t) |
A member function to zoom. More... | |
void | rotateAzimuth (float t) |
A member function to rotate the camera(Azimuth). More... | |
void | rotatePolar (float t) |
A member function to rotate the camera(Polar). More... | |
void | moveLeft (float t) |
A member function to move the camera left. More... | |
void | moveRight (float t) |
A member function to move the camera right. More... | |
void | moveForwards (float t) |
A member function to move the camera forwards. More... | |
void | moveBackwards (float t) |
A member function to move the camera backwards. More... | |
void | moveUp (float t) |
A member function to move the camera up. More... | |
void | moveDown (float t) |
A member function to move the camera down. More... | |
void | rotateUp (float t) |
A member function to rotate the camera up. More... | |
void | rotateDown (float t) |
A member function to rotate the camera down. More... | |
void | rotateLeft (float t) |
A member function to rotate the camera left. More... | |
void | rotateRight (float t) |
A member function to rotate the camera right. More... | |
void | setOrthogonalBorders (float left, float right, float top, float bottom) |
A member function to set the orthogonal borders of the camera. More... | |
glm::vec3 | getUp () |
An inline member function to get the up vector of the camera. More... | |
glm::vec3 | getTarget () |
An inline member function to get the target vector of the camera. More... | |
bool | isOrthogonal () |
An inline member function to check if it is orthogonal. More... | |
float | getFieldOfView () |
An inline member function to get the field of view. More... | |
void | setOrthogonal (bool orthogonal) |
An inline member function to set orthogonal. More... | |
void | setUp (glm::vec3 &up) |
An inline member function to set the up vector of the camera. More... | |
void | setTarget (glm::vec3 &target) |
An inline member function to set the target vector of the camera. More... | |
void | setFieldOfView (float fieldOfView) |
An inline member function to set the field of view of the camera. More... | |
void | setNearPlane (float nearPlane) |
An inline member function to set the near plane of the camera. More... | |
void | setFarPlane (float farPlane) |
An inline member function to set the far plane of the camera. More... | |
float | getNearPlane () |
An inline member function to get the near plane of the camera. More... | |
float | getFarPlane () |
An inline member function to get the far plane of the camera. More... | |
void | setAspect (float aspect) |
An inline member function to set the aspect ratio of the camera. More... | |
const glm::mat4 & | getViewMatrix () |
An inline member function to get the view matrix. More... | |
const glm::mat4 & | getProjectionMatrix () |
An inline member function to get the projection matrix. More... | |
Camera::Camera | ( | ) |
Default constructor.
Constructor.
a | reference to pos a glm::vec3 |
void Camera::buildProjectionMatrix | ( | void | ) |
A member function to build the projection matrix.
void Camera::buildViewMatrix | ( | void | ) |
A member function to build the view matrix.
|
inline |
An inline member function to get the far plane of the camera.
|
inline |
An inline member function to get the field of view.
|
inline |
An inline member function to get the near plane of the camera.
|
inline |
An inline member function to get the projection matrix.
|
inline |
An inline member function to get the target vector of the camera.
|
inline |
An inline member function to get the up vector of the camera.
|
inline |
An inline member function to get the view matrix.
|
inline |
An inline member function to check if it is orthogonal.
void Camera::moveBackwards | ( | float | t | ) |
A member function to move the camera backwards.
t | a float. |
void Camera::moveDown | ( | float | t | ) |
A member function to move the camera down.
t | a float. |
void Camera::moveForwards | ( | float | t | ) |
A member function to move the camera forwards.
t | a float. |
void Camera::moveLeft | ( | float | t | ) |
A member function to move the camera left.
t | a float. |
void Camera::moveRight | ( | float | t | ) |
A member function to move the camera right.
t | a float. |
void Camera::moveUp | ( | float | t | ) |
A member function to move the camera up.
t | a float. |
void Camera::rotateAzimuth | ( | float | t | ) |
A member function to rotate the camera(Azimuth).
t | a float. |
void Camera::rotateDown | ( | float | t | ) |
A member function to rotate the camera down.
t | a float. |
void Camera::rotateLeft | ( | float | t | ) |
A member function to rotate the camera left.
t | a float. |
void Camera::rotatePolar | ( | float | t | ) |
A member function to rotate the camera(Polar).
t | a float. |
void Camera::rotateRight | ( | float | t | ) |
A member function to rotate the camera right.
t | a float. |
void Camera::rotateUp | ( | float | t | ) |
A member function to rotate the camera up.
t | a float. |
|
inline |
An inline member function to set the aspect ratio of the camera.
aspect | a float. |
|
inline |
An inline member function to set the far plane of the camera.
farPlane | a float. |
|
inline |
An inline member function to set the field of view of the camera.
fieldOfView | a float. |
|
inline |
An inline member function to set the near plane of the camera.
nearPlane | a float. |
|
inline |
An inline member function to set orthogonal.
orthogonal | a boolean. |
void Camera::setOrthogonalBorders | ( | float | left, |
float | right, | ||
float | top, | ||
float | bottom | ||
) |
A member function to set the orthogonal borders of the camera.
left | a float. |
right | a float. |
top | a float. |
bottom | a float. |
|
inline |
An inline member function to set the target vector of the camera.
a | reference to target a glm::vec3 |
|
inline |
An inline member function to set the up vector of the camera.
a | reference to up a glm::vec3 |
void Camera::zoom | ( | float | t | ) |
A member function to zoom.
t | a float. |