class osgParticle::ForceOperator

An operator that applies a constant force to the particles.

Inheritance:


Public Methods

[more] META_Object(osgParticle, ForceOperator)
[more]inline ForceOperator()
[more]inline ForceOperator(const ForceOperator &copy, const osg::CopyOp &copyop)
[more]inline const osg::Vec3& getForce() const
Get the force vector
[more]inline void setForce(const osg::Vec3 &v)
Set the force vector
[more]inline void operate(Particle* P, double dt)
Apply the force to a particle.
[more]inline void beginOperate(Program* prg)
Perform some initialization.

Protected Methods

[more]virtual ~ForceOperator()
[more]ForceOperator& operator=(const ForceOperator &)


Inherited from Operator:

Public Methods

ovirtual const char* libraryName() const
ovirtual const char* className() const
ovirtual bool isSameKindAs(const osg::Object* obj) const
ovirtual void endOperate()
oinline bool isEnabled() const
oinline void setEnabled(bool v)


Documentation

An operator that applies a constant force to the particles. Remember that if the mass of particles is expressed in kg and the lengths are expressed in meters, then the force should be expressed in Newtons.
o META_Object(osgParticle, ForceOperator)

ovirtual ~ForceOperator()

oForceOperator& operator=(const ForceOperator &)

oinline ForceOperator()

oinline ForceOperator(const ForceOperator &copy, const osg::CopyOp &copyop)

oinline const osg::Vec3& getForce() const
Get the force vector

oinline void setForce(const osg::Vec3 &v)
Set the force vector

oinline void operate(Particle* P, double dt)
Apply the force to a particle. Do not call this method manually.

oinline void beginOperate(Program* prg)
Perform some initialization. Do not call this method manually.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.