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

OrthographicCamera Class Reference

#include <OrthographicCamera.h>

Inheritance diagram for OrthographicCamera:

OrthographicSpace ViewPort GuiComponent List of all members.

Public Member Functions

 OrthographicCamera (int left=0, int right=1, int bottom=0, int top=1, int x=0, int y=0, int width=1, int height=1)
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


Constructor & Destructor Documentation

OrthographicCamera::OrthographicCamera int  left = 0,
int  right = 1,
int  bottom = 0,
int  top = 1,
int  x = 0,
int  y = 0,
int  width = 1,
int  height = 1
 


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

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.

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.

void OrthographicCamera::stopCamera  ) 
 

Reset the projection pops the last matrix from the stack.


The documentation for this class was generated from the following files:
Generated on Tue Jan 24 00:36:47 2006 for ZVis by  doxygen 1.4.1