Camera Class Reference
#include <Camera.h>
List of all members.
Constructor & Destructor Documentation
Constructs a new camera object
Destroys the camera object
Member Function Documentation
void Camera::apply |
( |
float |
aspectRatio |
) |
|
void Camera::apply |
( |
float |
aspectRatio |
) |
|
Applies the camera transformation and sets the projection
- Parameters:
-
| aspectRatio | Current aspect ratio of the window |
float Camera::getTranslationX |
( |
|
) |
|
float Camera::getTranslationX |
( |
|
) |
|
Returns the camera translation in x direction
- Returns:
- camera translation in x direction
float Camera::getTranslationY |
( |
|
) |
|
float Camera::getTranslationY |
( |
|
) |
|
Returns the camera translation in y direction
- Returns:
- camera translation in y direction
float Camera::getZoom |
( |
|
) |
|
float Camera::getZoom |
( |
|
) |
|
Returns the zoom of the camera
- Returns:
- zoom of the camera
void Camera::processMotionEvent |
( |
int |
screenX, |
|
|
int |
screenY | |
|
) |
| | |
void Camera::processMotionEvent |
( |
int |
screenX, |
|
|
int |
screenY | |
|
) |
| | |
Process the motion event
- Parameters:
-
| screenX | X-Coordinate of the mouse on the screen |
| screenY | Y-Coordinate of the mouse on the screen |
void Camera::processMouseEvent |
( |
int |
button, |
|
|
int |
state, |
|
|
int |
screenX, |
|
|
int |
screenY | |
|
) |
| | |
void Camera::processMouseEvent |
( |
int |
button, |
|
|
int |
state, |
|
|
int |
screenX, |
|
|
int |
screenY | |
|
) |
| | |
Process the mouse event
- Parameters:
-
| button | Button which is pressed or released |
| state | Button state |
| screenX | X-Coordinate of the mouse on the screen |
| screenY | Y-Coordinate of the mouse on the screen |
Resets the camera transformations
void Camera::setTranslationX |
( |
float |
value |
) |
|
void Camera::setTranslationX |
( |
float |
value |
) |
|
Sets the translation in x direction of the camera
- Parameters:
-
| value | translation in x direction of the camera |
void Camera::setTranslationY |
( |
float |
value |
) |
|
void Camera::setTranslationY |
( |
float |
value |
) |
|
Sets the translation in y direction of the camera
- Parameters:
-
| value | translation in y direction of the camera |
void Camera::setZoom |
( |
float |
value |
) |
|
void Camera::setZoom |
( |
float |
value |
) |
|
Sets the zoom of the camera
- Parameters:
-
Member Data Documentation
Determines if the left mouse button is pressed or not
Screencoordinates in x direction of the mouse press event
Screencoordinates in y direction of the mouse press
Determines if the right mouse button is pressed or not
Camera translation in x direction
Camera translation in y direction
Zoom factor of the camera
The documentation for this class was generated from the following files:
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/FlowVis_2009_01_19_inkl_Texture/header/Camera.h
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/header/Camera.h
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/FlowVis_2009_01_19_inkl_Texture/src/Camera.cpp
- E:/Eigene Dateien/Michi/Studium/Semester7/Vis/LU/Beispiel2/FlowVis/src/Camera.cpp