Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osgParticle::ForceOperator Class Reference

Inheritance diagram for osgParticle::ForceOperator:

osgParticle::Operator osg::Object osg::Referenced List of all members.

Public Member Functions

 ForceOperator ()
 ForceOperator (const ForceOperator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgParticle, ForceOperator)
const osg::Vec3 & getForce () const
 Get the force vector.
void setForce (const osg::Vec3 &f)
 Set the force vector.
void operate (Particle *P, double dt)
 Apply the force to a particle. Do not call this method manually.
void beginOperate (Program *prg)
 Perform some initialization. Do not call this method manually.

Protected Member Functions

virtual ~ForceOperator ()
ForceOperator & operator= (const ForceOperator &)

Detailed Description

An operator that applies a constant force to the particles. Remember that if the mass of particles is expressed in <u>kg</u> and the lengths are expressed in <u>meters</u>, then the force should be expressed in <u>Newtons</u>.


Constructor & Destructor Documentation

osgParticle::ForceOperator::ForceOperator (   )  [inline]
 

osgParticle::ForceOperator::ForceOperator (  const ForceOperator &  copy,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY
)  [inline]
 

virtual osgParticle::ForceOperator::~ForceOperator (   )  [inline, protected, virtual]
 


Member Function Documentation

void osgParticle::ForceOperator::beginOperate (  Program *  prg  )  [inline, virtual]
 

Perform some initialization. Do not call this method manually.

Reimplemented from osgParticle::Operator.

const osg::Vec3 & osgParticle::ForceOperator::getForce (   )  const [inline]
 

Get the force vector.

osgParticle::ForceOperator::META_Object (  osgParticle  ,
ForceOperator 
) 
 

void osgParticle::ForceOperator::operate (  Particle *  P,
double  dt
)  [inline, virtual]
 

Apply the force to a particle. Do not call this method manually.

Implements osgParticle::Operator.

ForceOperator& osgParticle::ForceOperator::operator= (  const ForceOperator &   )  [inline, protected]
 

void osgParticle::ForceOperator::setForce (  const osg::Vec3 &  f  )  [inline]
 

Set the force vector.


The documentation for this class was generated from the following file:
Generated on Fri May 13 15:15:51 2005 for openscenegraph by  doxygen 1.4.2