#include <ivf/IvfView.h>
Inheritance diagram for CIvfView:
Public Member Functions | |
void | setViewport (CIvfViewport *viewport) |
CIvfViewport * | getViewport () |
CIvfView () | |
virtual | ~CIvfView () |
IvfClassInfo ("CIvfView", CIvfObject) | |
virtual void | initialize () |
virtual void | initializeSelect (int x, int y, int w, int h) |
void | setViewPort (int width, int height) |
virtual void | getViewFrustum (CIvfViewFrustum *frustum) |
void | getViewPort (int &w, int &h) |
void | setViewPort (int tx, int ty, int tw, int th) |
void | getViewPort (int &tx, int &ty, int &tw, int &th) |
double | getAspect () |
void | setSelectTransform (bool flag) |
Protected Member Functions | |
void | beginTransform () |
virtual void | viewTransform () |
virtual void | projectionTransform () |
The IvfView class is an abstract class for implementing different cameras. The viewTransform and projectionTransform methods should be overidden.
Definition at line 42 of file IvfView.h.
|
CIvfView constructor |
|
CIvfView destructor |
|
Start transform Implements a OpenGL transform. This routine should call a glPushMatrix() and then call OpenGL routines transforming the object. The method is the first routine to be called in the render() method. Reimplemented from CIvfObject. |
|
Return current aspect ratio. |
|
Return view frustum This method should modify the frustum parameter to reflect the currently used view frustum. Method is overidden by descendant classes. Reimplemented in CIvfCamera. |
|
Returns view port dimension |
|
Returns view port dimension |
|
Initialize perspective and viewport This method must be called before the camera can be used to view a scene. Typically it is called in a GLUT reshape callback. |
|
Initialize selection This method is used to setup the pick matrix used for object selection in OpenGL based on the current camera view.
|
|
Returns view port dimension |
|
Set viewport dimension. The viewport is defined in screen pixels. Viewport dimension is used to calculate the view aspect ratio.
|