Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ani::ViscousDragOperator< __EntityType > Class Template Reference

FORCE from Viscous Drag. More...

#include <ViscousDragOperator.h>

Inheritance diagram for ani::ViscousDragOperator< __EntityType >:

ani::GlobalForceOperator< __EntityType > ani::GlobalOperator< __EntityType > ani::Operator< __EntityType > ani::Memory List of all members.

Public Methods

 ViscousDragOperator ()
 ViscousDragOperator (float coef)
virtual ~ViscousDragOperator ()
void setDrag (const float &coeficient)
virtual void exec (DynamicSystem< __EntityType > &ps, float timeDelta)
 apply this force function to the particle. More...

Detailed Description

template<class __EntityType>
class ani::ViscousDragOperator< __EntityType >

FORCE from Viscous Drag.

specify a drag coeficient, will reduce the speed of a particle by (k * Vel)

Definition at line 17 of file ViscousDragOperator.h.

Constructor & Destructor Documentation

template<class __EntityType>
ani::ViscousDragOperator< __EntityType >::ViscousDragOperator   [inline]

Definition at line 20 of file ViscousDragOperator.h.

template<class __EntityType>
ani::ViscousDragOperator< __EntityType >::ViscousDragOperator float    coef [inline]

Definition at line 21 of file ViscousDragOperator.h.

template<class __EntityType>
virtual ani::ViscousDragOperator< __EntityType >::~ViscousDragOperator   [inline, virtual]

Definition at line 22 of file ViscousDragOperator.h.

Member Function Documentation

template<class __EntityType>
void ani::ViscousDragOperator< __EntityType >::setDrag const float &    coeficient [inline]

Definition at line 23 of file ViscousDragOperator.h.

template<class __EntityType>
void ani::ViscousDragOperator< __EntityType >::exec DynamicSystem< __EntityType > &    ps,
float    timeDelta

apply this force function to the particle.

Reimplemented from ani::GlobalForceOperator< __EntityType >.

Definition at line 37 of file ViscousDragOperator.h.

References ani::DynamicSystem< __EntityType >::entities(), ani::GlobalOperator< __EntityType >::EntityTypePtr, and ani::GlobalOperator< __EntityType >::isIgnored().

The documentation for this class was generated from the following file:
Generated on Wed Jun 12 01:54:07 2002 for Animaniac by doxygen1.2.15