OpenSceneGraph 2.8.4
|
A sector-shaped particle placer. More...
Public Member Functions | |
SectorPlacer () | |
SectorPlacer (const SectorPlacer ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
const rangef & | getRadiusRange () const |
Get the range of possible values for radius. | |
void | setRadiusRange (const rangef &r) |
Set the range of possible values for radius. | |
void | setRadiusRange (float r1, float r2) |
Set the range of possible values for radius. | |
const rangef & | getPhiRange () const |
Get the range of possible values for the central angle. | |
void | setPhiRange (const rangef &r) |
Set the range of possible values for the central angle. | |
void | setPhiRange (float r1, float r2) |
Set the range of possible values for the central angle. | |
META_Object (osgParticle, SectorPlacer) | |
void | place (Particle *P) const |
Place a particle. Do not call it manually. | |
osg::Vec3 | getControlPosition () const |
return the control position | |
Protected Member Functions | |
virtual | ~SectorPlacer () |
SectorPlacer & | operator= (const SectorPlacer &) |
A sector-shaped particle placer.
This placer sets the initial position of incoming particle by choosing a random position within a circular sector; this sector is defined by three parameters: a center point, which is inherited directly from osgParticle::CenteredPlacer
, a range of values for radius, and a range of values for the central angle (sometimes called phi).
osgParticle::SectorPlacer::SectorPlacer | ( | ) | [inline] |
osgParticle::SectorPlacer::SectorPlacer | ( | const SectorPlacer & | copy, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) | [inline] |
virtual osgParticle::SectorPlacer::~SectorPlacer | ( | ) | [inline, protected, virtual] |
osg::Vec3 osgParticle::SectorPlacer::getControlPosition | ( | ) | const [inline, virtual] |
return the control position
Implements osgParticle::Placer.
References osgParticle::CenteredPlacer::getCenter().
const rangef & osgParticle::SectorPlacer::getPhiRange | ( | ) | const [inline] |
Get the range of possible values for the central angle.
const rangef & osgParticle::SectorPlacer::getRadiusRange | ( | ) | const [inline] |
Get the range of possible values for radius.
osgParticle::SectorPlacer::META_Object | ( | osgParticle | , |
SectorPlacer | |||
) |
SectorPlacer& osgParticle::SectorPlacer::operator= | ( | const SectorPlacer & | ) | [inline, protected] |
void osgParticle::SectorPlacer::place | ( | Particle * | P | ) | const [inline, virtual] |
Place a particle. Do not call it manually.
Implements osgParticle::Placer.
References osgParticle::range< ValueType >::get_random(), osgParticle::range< ValueType >::get_random_sqrtf(), osgParticle::CenteredPlacer::getCenter(), and osgParticle::Particle::setPosition().
void osgParticle::SectorPlacer::setPhiRange | ( | const rangef & | r | ) | [inline] |
Set the range of possible values for the central angle.
void osgParticle::SectorPlacer::setPhiRange | ( | float | r1, |
float | r2 | ||
) | [inline] |
Set the range of possible values for the central angle.
References osgParticle::range< ValueType >::maximum, and osgParticle::range< ValueType >::minimum.
void osgParticle::SectorPlacer::setRadiusRange | ( | const rangef & | r | ) | [inline] |
Set the range of possible values for radius.
void osgParticle::SectorPlacer::setRadiusRange | ( | float | r1, |
float | r2 | ||
) | [inline] |
Set the range of possible values for radius.
References osgParticle::range< ValueType >::maximum, and osgParticle::range< ValueType >::minimum.
![]() | Generated at Sun Jan 8 2012 13:16:49 for the OpenSceneGraph by doxygen 1.7.4. |