CIvfCameraController Class Reference

#include <ivfctl/IvfCameraController.h>

Inheritance diagram for CIvfCameraController:

CIvfController CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Types

enum  TEndAction { EA_STOP, EA_REVERSE, EA_RESET, EA_DEACTIVATE }
enum  TStartAction { SA_STOP, SA_REVERSE, SA_RESET, SA_DEACTIVATE }

Public Member Functions

 CIvfCameraController ()
virtual ~CIvfCameraController ()
void setPath (CIvfSpline3d *spline)
CIvfSpline3dgetPath ()
void setTargetPath (CIvfSpline3d *spline)
CIvfSpline3dgetTargetPath ()
void setCamera (CIvfCamera *camera)
CIvfCameragetCamera ()
void setInitialPos (double t)
void setInitialSpeed (double v)
void setInitialAcceleration (double a)
void setStartActionType (TStartAction action)
void setEndActionType (TEndAction action)
void setInitialTargetAcceleration (double a)
void setInitialTargetSpeed (double v)
void setInitialTargetPos (double t)
void setUseTargetPath (bool flag)
bool getUseTargetPath ()
void setFollowPath (bool flag)
void setTargetEndActionType (TEndAction action)
void setTargetStartActionType (TStartAction action)
virtual void doUpdate (double dt)
virtual void doReset ()

Detailed Description

Camera controller

Controller for controlling a camera along both a position path and target path.

Examples:

controllers.cpp.

Definition at line 38 of file IvfCameraController.h.


Constructor & Destructor Documentation

CIvfCameraController::CIvfCameraController  ) 
 

CIvfCameraController constructor

virtual CIvfCameraController::~CIvfCameraController  )  [virtual]
 

CIvfCameraController destructor


Member Function Documentation

virtual void CIvfCameraController::doUpdate double  dt  )  [virtual]
 

Virtual update routine

This method should be overridden in derived classes to handle incremental time update

Parameters:
dt time since last call in seconds.

Reimplemented from CIvfController.

CIvfCamera* CIvfCameraController::getCamera  ) 
 

Return controlled camera

CIvfSpline3d* CIvfCameraController::getPath  ) 
 

Return path controlling camera position

CIvfSpline3d* CIvfCameraController::getTargetPath  ) 
 

Return path controlling camera target

bool CIvfCameraController::getUseTargetPath  ) 
 

Returns true if target path is used

void CIvfCameraController::setCamera CIvfCamera camera  ) 
 

Set camera to be controller

void CIvfCameraController::setEndActionType TEndAction  action  ) 
 

Define what to do when arriving at end position

Parameters:
action EA_STOP stops movement, EA_REVERSE reverses direction of movement, EA_RESET resets position to initial position EA_DEACTIVATE deactivates controller

void CIvfCameraController::setFollowPath bool  flag  ) 
 

Set follow path flag

This flag determines if the camera target should follow the path. If false the target from the initial camera object is used.

void CIvfCameraController::setInitialAcceleration double  a  ) 
 

Set initial acceleration on curve

Parameters:
a acceleration in units/second*second

void CIvfCameraController::setInitialPos double  t  ) 
 

Set initial position on curve

Parameters:
t distance from curve start 0 <= t <= getSize()-1

void CIvfCameraController::setInitialSpeed double  v  ) 
 

Set initial speed on curve

Parameters:
v speed in units/second

void CIvfCameraController::setInitialTargetAcceleration double  a  ) 
 

Set initial position on curve

Parameters:
t distance from curve start 0 <= t <= getSize()-1

void CIvfCameraController::setInitialTargetPos double  t  ) 
 

Set initial acceleration on curve

Parameters:
a acceleration in units/second*second

void CIvfCameraController::setInitialTargetSpeed double  v  ) 
 

Set initial speed on curve

Parameters:
v speed in units/second

void CIvfCameraController::setPath CIvfSpline3d spline  ) 
 

Set path controlling camera position

void CIvfCameraController::setStartActionType TStartAction  action  ) 
 

Define what to do when returning to start position

Parameters:
action SA_STOP stops movement, SA_REVERSE reverses direction of movement, SA_RESET resets position to initial position SA_DEACTIVATE deactivates controller

void CIvfCameraController::setTargetEndActionType TEndAction  action  ) 
 

Define what to do when arriving at end position

Parameters:
action EA_STOP stops movement, EA_REVERSE reverses direction of movement, EA_RESET resets position to initial position EA_DEACTIVATE deactivates controller

void CIvfCameraController::setTargetPath CIvfSpline3d spline  ) 
 

Set path controlling camera target

If target path is not set the camera target is used.

void CIvfCameraController::setTargetStartActionType TStartAction  action  ) 
 

Define what to do when returning to start position

Parameters:
action SA_STOP stops movement, SA_REVERSE reverses direction of movement, SA_RESET resets position to initial position SA_DEACTIVATE deactivates controller

void CIvfCameraController::setUseTargetPath bool  flag  ) 
 

Enable/Disable use of target path


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