CIvfPathController Class Reference

#include <ivfctl/IvfPathController.h>

Inheritance diagram for CIvfPathController:

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

 CIvfPathController ()
virtual ~CIvfPathController ()
 IvfClassInfo ("CIvfPathController", CIvfController)
void setPath (CIvfSpline3d *spline)
CIvfSpline3dgetPath ()
void setInitialPos (double t)
void setInitialSpeed (double v)
void setInitialAcceleration (double a)
void setStartActionType (TStartAction action)
void setEndActionType (TEndAction action)
virtual void doUpdate (double dt)
virtual void doReset ()

Detailed Description

Path controller class

Moves objects along a given path. Speed and acceleration can bes set as well as actions at the start point and end point.

Examples:

actionctl.cpp.

Definition at line 37 of file IvfPathController.h.


Constructor & Destructor Documentation

CIvfPathController::CIvfPathController  ) 
 

CIvfPathController contructor

virtual CIvfPathController::~CIvfPathController  )  [virtual]
 

CIvfPathController destructor


Member Function Documentation

virtual void CIvfPathController::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.

CIvfSpline3d* CIvfPathController::getPath  ) 
 

Return path

void CIvfPathController::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 CIvfPathController::setInitialAcceleration double  a  ) 
 

Set initial acceleration on path

Parameters:
a acceleration in units/second*second

void CIvfPathController::setInitialPos double  t  ) 
 

Set initial position on path

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

void CIvfPathController::setInitialSpeed double  v  ) 
 

Set initial speed on path

Parameters:
v speed in units/second

void CIvfPathController::setPath CIvfSpline3d spline  ) 
 

Set path controlling the movement

void CIvfPathController::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


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