class osgParticle::RadialShooter

A shooter class that shoots particles radially.

Inheritance:


Public Methods

[more] META_Object(osgParticle, RadialShooter)
[more]inline RadialShooter()
[more]inline RadialShooter(const RadialShooter &copy, const osg::CopyOp &copyop)
[more]inline const rangef& getThetaRange() const
Get the range of possible values for theta angle
[more]inline const rangef& getPhiRange() const
Get the range of possible values for phi angle
[more]inline const rangef& getInitialSpeedRange() const
Get the range of possible values for initial speed of particles
[more]inline void setThetaRange(const rangef &r)
Set the range of possible values for theta angle
[more]inline void setThetaRange(float r1, float r2)
Set the range of possible values for theta angle
[more]inline void setPhiRange(const rangef &r)
Set the range of possible values for phi angle
[more]inline void setPhiRange(float r1, float r2)
Set the range of possible values for phi angle
[more]inline void setInitialSpeedRange(const rangef &r)
Set the range of possible values for initial speed of particles
[more]inline void setInitialSpeedRange(float r1, float r2)
Set the range of possible values for initial speed of particles
[more]inline void shoot(Particle* P) const
Shoot a particle.

Protected Methods

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


Inherited from Shooter:

Public Methods

ovirtual const char* libraryName() const
ovirtual const char* className() const
ovirtual bool isSameKindAs(const osg::Object* obj) const


Documentation

A shooter class that shoots particles radially. This shooter computes the velocity vector of incoming particles by choosing a random direction and a random speed. Both direction and speed are chosen within specified ranges. The direction is defined by two angles: theta, which is the angle between the velocity vector and the Z axis, and phi, which is the angle between the X axis and the velocity vector projected onto the X-Y plane.
o META_Object(osgParticle, RadialShooter)

ovirtual ~RadialShooter()

oRadialShooter& operator=(const RadialShooter &)

oinline RadialShooter()

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

oinline const rangef& getThetaRange() const
Get the range of possible values for theta angle

oinline const rangef& getPhiRange() const
Get the range of possible values for phi angle

oinline const rangef& getInitialSpeedRange() const
Get the range of possible values for initial speed of particles

oinline void setThetaRange(const rangef &r)
Set the range of possible values for theta angle

oinline void setThetaRange(float r1, float r2)
Set the range of possible values for theta angle

oinline void setPhiRange(const rangef &r)
Set the range of possible values for phi angle

oinline void setPhiRange(float r1, float r2)
Set the range of possible values for phi angle

oinline void setInitialSpeedRange(const rangef &r)
Set the range of possible values for initial speed of particles

oinline void setInitialSpeedRange(float r1, float r2)
Set the range of possible values for initial speed of particles

oinline void shoot(Particle* P) const
Shoot a particle. 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++.