15#ifndef OSGPARTICLE_FORCEOPERATOR
16#define OSGPARTICLE_FORCEOPERATOR 1
69 :
Operator(copy, copyop), _force(copy._force)
Vec3f Vec3
Definition Vec3:21
The osgParticle library is a NodeKit that extends the core scene graph to support particle effects.
Definition AccelOperator:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
void beginOperate(Program *prg)
Perform some initialization. Do not call this method manually.
Definition ForceOperator:88
void operate(Particle *P, double dt)
Apply the force to a particle. Do not call this method manually.
Definition ForceOperator:83
ForceOperator()
Definition ForceOperator:63
const osg::Vec3 & getForce() const
Get the force vector.
Definition ForceOperator:73
virtual ~ForceOperator()
Definition ForceOperator:53
void setForce(const osg::Vec3 &f)
Set the force vector.
Definition ForceOperator:78
META_Object(osgParticle, ForceOperator)
ForceOperator & operator=(const ForceOperator &)
Definition ForceOperator:54
Operator()
Definition Operator:92
Implementation of a particle.
Definition Particle:47
void addVelocity(const osg::Vec3 &dv)
Add a vector to the velocity vector.
Definition Particle:493
float getMassInv() const
Get 1 / getMass().
Definition Particle:547
@ RELATIVE_RF
Definition ParticleProcessor:42
ReferenceFrame getReferenceFrame() const
Get the reference frame.
Definition ParticleProcessor:179
osg::Vec3 rotateLocalToWorld(const osg::Vec3 &P)
Transform a vector from local to world coordinates, discarding translation (valid only during cull tr...
Definition ParticleProcessor:315
An abstract ParticleProcessor descendant for modifying particles "on the fly" during the cull travers...
Definition Program:36