List of all members.
Detailed Description
A program class for performing operations on particles using a sequence of operators. To use a FluidProgram
you have to create some Operator
objects and add them to the program. All operators will be applied to each particle in the same order they've been added to the program.
Constructor & Destructor Documentation
osgParticle::FluidProgram::FluidProgram |
( |
|
) |
|
osgParticle::FluidProgram::FluidProgram |
( |
const FluidProgram & |
copy, |
|
|
const osg::CopyOp & |
copyop = osg::CopyOp::SHALLOW_COPY | |
|
) |
| | |
virtual osgParticle::FluidProgram::~FluidProgram |
( |
|
) |
[inline, protected, virtual] |
Member Function Documentation
virtual void osgParticle::FluidProgram::execute |
( |
double |
dt |
) |
[protected, virtual] |
Execute the program on the particle system. Must be overriden in descendant classes.
Implements osgParticle::Program.
const osg::Vec3& osgParticle::FluidProgram::getAcceleration |
( |
|
) |
const [inline] |
Get the acceleration vector.
float osgParticle::FluidProgram::getFluidDensity |
( |
|
) |
const [inline] |
Get the density of the fluid.
float osgParticle::FluidProgram::getFluidViscosity |
( |
|
) |
const [inline] |
Get the viscosity of the fluid.
const osg::Vec3& osgParticle::FluidProgram::getWind |
( |
|
) |
const [inline] |
osgParticle::FluidProgram::META_Node |
( |
osgParticle |
, |
|
|
FluidProgram |
| |
|
) |
| | |
void osgParticle::FluidProgram::setAcceleration |
( |
const osg::Vec3 & |
v |
) |
[inline] |
Set the acceleration vector.
void osgParticle::FluidProgram::setFluidDensity |
( |
float |
d |
) |
[inline] |
Set the density of the fluid.
References osg::PI.
void osgParticle::FluidProgram::setFluidToAir |
( |
|
) |
[inline] |
Set the fluid parameters as for air (20°C temperature).
void osgParticle::FluidProgram::setFluidToWater |
( |
|
) |
[inline] |
Set the fluid parameters as for pure water (20°C temperature).
void osgParticle::FluidProgram::setFluidViscosity |
( |
float |
v |
) |
[inline] |
Set the viscosity of the fluid.
References osg::PI.
void osgParticle::FluidProgram::setToGravity |
( |
float |
scale = 1.0f |
) |
[inline] |
Set the acceleration vector to the gravity on earth (0, 0, -9.81). The acceleration will be multiplied by the scale
parameter.
void osgParticle::FluidProgram::setWind |
( |
const osg::Vec3 & |
wind |
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: