CIvfView Class Reference

#include <ivf/IvfView.h>

Inheritance diagram for CIvfView:

CIvfObject CIvfBase CIvfRefCountBase CIvfRTTIBase CIvfCamera CIvfOrthoCamera List of all members.

Public Member Functions

void setViewport (CIvfViewport *viewport)
CIvfViewportgetViewport ()
 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 ()

Detailed Description

View abstract class

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.


Constructor & Destructor Documentation

CIvfView::CIvfView  ) 
 

CIvfView constructor

virtual CIvfView::~CIvfView  )  [virtual]
 

CIvfView destructor


Member Function Documentation

void CIvfView::beginTransform  )  [protected, virtual]
 

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.

double CIvfView::getAspect  ) 
 

Return current aspect ratio.

virtual void CIvfView::getViewFrustum CIvfViewFrustum frustum  )  [virtual]
 

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.

void CIvfView::getViewPort int &  tx,
int &  ty,
int &  tw,
int &  th
 

Returns view port dimension

void CIvfView::getViewPort int &  w,
int &  h
 

Returns view port dimension

virtual void CIvfView::initialize  )  [virtual]
 

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.

virtual void CIvfView::initializeSelect int  x,
int  y,
int  w,
int  h
[virtual]
 

Initialize selection

This method is used to setup the pick matrix used for object selection in OpenGL based on the current camera view.

Parameters:
x X coordinate for selection point (pixels).
y Y coordinate for selection point (pixels).
w Width of selection box.
h Height of selection box.

void CIvfView::setViewPort int  tx,
int  ty,
int  tw,
int  th
 

Returns view port dimension

void CIvfView::setViewPort int  width,
int  height
 

Set viewport dimension.

The viewport is defined in screen pixels. Viewport dimension is used to calculate the view aspect ratio.

Parameters:
width View width in pixels
height View height in pixels


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:37:00 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO