#include <OrthographicCamera.h>
Inherits OrthographicSpace.
Inherited by GuiComponent.
Public Member Functions | |
void | getLocalWorldCoordinates (int &x, int &y) |
void | startCamera () |
void | startCamera (int x, int y, int width, int height) |
void | stopCamera () |
left | plane | |
right | plane | |
bottom | plane | |
top | plane | |
x | postion of the lower left corner of the projection rectangle | |
y | postion of the lower left corner of the projection rectangle | |
width | of the projection rectangle | |
height | of the projection rectangle |
Definition at line 23 of file OrthographicCamera.h.
|
Compute the position of x and y on the orthographic space. This method is useful to compute the mouse postion in the world coordinates.
Definition at line 26 of file OrthographicCamera.cpp. Referenced by Histogram::onLeftMouseClick(), and Histogram::onMouseDrag(). |
|
Enter the orthographic projection with the current bounds of the space defined by left, right, bottom and top plane at the given screen coordinate x,y,width, height. Definition at line 35 of file OrthographicCamera.cpp. References OrthographicSpace::setOrthographicProjection(). |
|
Enter the orthographic projection with the current bounds of the space defined by left, right, bottom and top plane. at the current defined screen coordinate x,y,width, height. starting the camera also push the GL_VIEWPORT bit to the stack. Definition at line 42 of file OrthographicCamera.cpp. References OrthographicSpace::setOrthographicProjection(). Referenced by Histogram::render(), and ColorCubePanel::render(). |
|
Reset the projection pops the last matrix from the stack. Definition at line 49 of file OrthographicCamera.cpp. References OrthographicSpace::resetProjection(). Referenced by Histogram::render(), and ColorCubePanel::render(). |