Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

OrthographicCamera Class Reference

#include <OrthographicCamera.h>

Inherits OrthographicSpace.

Inherited by GuiComponent.

List of all members.

Public Member Functions

void getLocalWorldCoordinates (int &x, int &y)
void startCamera ()
void startCamera (int x, int y, int width, int height)
void stopCamera ()


Detailed Description

This class is a merge of an orthographic space and a specific viewport. The orthographic space defines the world coordinate system. The viewport defines the area to wich the content of the orthographic space is projected.

Parameters:
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.


Member Function Documentation

void OrthographicCamera::getLocalWorldCoordinates int &  x,
int &  y
 

Compute the position of x and y on the orthographic space. This method is useful to compute the mouse postion in the world coordinates.

Parameters:
[in] x position in screen space
[in] y position in screen space
[out] x position in the current orthographic space
[out] y position in the current orthographic space

Definition at line 26 of file OrthographicCamera.cpp.

Referenced by Histogram::onLeftMouseClick(), and Histogram::onMouseDrag().

void OrthographicCamera::startCamera int  x,
int  y,
int  width,
int  height
 

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().

void OrthographicCamera::startCamera  ) 
 

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().

void OrthographicCamera::stopCamera  ) 
 

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().


The documentation for this class was generated from the following files:
Generated on Mon Dec 12 15:20:26 2005 for CCube by  doxygen 1.4.1