Vis::CameraViewport Class Reference

#include <VisCameraViewport.h>

Inherits Vis::Camera.

Collaboration diagram for Vis::CameraViewport:
[legend]

List of all members.

Public Member Functions

 CameraViewport ()
 ~CameraViewport ()
const M44f & getProjMatrix () const
const M44f & getViewMatrix () const
void update ()
void SetPlaneAspect (float aspect)
void SetViewportAspect (float aspect)
void StartPan ()
void StopPan ()
void PanX (float dx)
void PanY (float dy)
void Scale (float scale)
void ResetView ()
V2f GetDataHit (int viwportWidth, int viewPortHeight, int posX, int posY)


Detailed Description

CameraViewport Focuses and maximizes display of a plane width given aspect orthogonally

Constructor & Destructor Documentation

Vis::CameraViewport::CameraViewport (  ) 

ctor.

Vis::CameraViewport::~CameraViewport (  ) 

dtor.


Member Function Documentation

V2f Vis::CameraViewport::GetDataHit ( int  viwportWidth,
int  viewPortHeight,
int  posX,
int  posY 
)

mappping from screen space to "data" space provided screen coordinates the function returns normalized coordinates, where the focused data is hit

Parameters:
viwportWidth current viewport width
viwportHEight current viewport height
posX the hitPoint xPos
posY the hitPoint yPos

const M44f & Vis::CameraViewport::getProjMatrix (  )  const [virtual]

Returns the projection matrix defined by the camera.

Returns:
proj matrix - identity

Implements Vis::Camera.

const M44f & Vis::CameraViewport::getViewMatrix (  )  const [virtual]

Returns the view matrix defined by the camera.

Returns:
view matrix - identity

Implements Vis::Camera.

void Vis::CameraViewport::PanX ( float  dx  ) 

pan the camera horizontal

Parameters:
dx amount to pan

void Vis::CameraViewport::PanY ( float  dy  ) 

pan the camera vertical

Parameters:
dy amount to pan

void Vis::CameraViewport::ResetView (  ) 

resets the camera , pan = (0.0,0.0) scale = 1.0

void Vis::CameraViewport::Scale ( float  scale  ) 

scale the camera

Parameters:
scale amount to increase or decrease the current scale factor

void Vis::CameraViewport::SetPlaneAspect ( float  aspect  ) 

set the aspect of the currently viewed plane

Parameters:
aspect the aspect

void Vis::CameraViewport::SetViewportAspect ( float  aspect  ) 

set the aspect of the viewport

Parameters:
aspect the aspect

void Vis::CameraViewport::StartPan (  ) 

starts a panning session

void Vis::CameraViewport::StopPan (  ) 

stops a panning session

void Vis::CameraViewport::update (  )  [virtual]

uptdate the camera proj ad view parameters (glOrtho and Transform)

Implements Vis::Camera.


The documentation for this class was generated from the following files:

Generated on Mon Jan 26 15:00:41 2009 for FlowVis by  doxygen 1.5.7.1