Inheritance diagram for osgParticle::SegmentPlacer:

Public Member Functions | |
| SegmentPlacer () | |
| SegmentPlacer (const SegmentPlacer ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| META_Object (osgParticle, SegmentPlacer) | |
| const osg::Vec3 & | getVertexA () const |
| get vertex A. | |
| void | setVertexA (const osg::Vec3 &v) |
| Set vertex A of the segment as a vector. | |
| void | setVertexA (float x, float y, float z) |
| Set vertex A of the segment as three floats. | |
| const osg::Vec3 & | getVertexB () const |
| get vertex B. | |
| void | setVertexB (const osg::Vec3 &v) |
| Set vertex B of the segment as a vector. | |
| void | setVertexB (float x, float y, float z) |
| Set vertex B of the segment as three floats. | |
| void | setSegment (const osg::Vec3 &A, const osg::Vec3 &B) |
| Set both vertices. | |
| void | place (Particle *P) const |
Place a particle. This method is called by ModularEmitter, do not call it manually. | |
| osg::Vec3 | getControlPosition () const |
| return the control position | |
Protected Member Functions | |
| virtual | ~SegmentPlacer () |
| SegmentPlacer & | operator= (const SegmentPlacer &) |
To use this placer you have to define a segment, by setting its two vertices (A and B); when an emitter requests a SegmentPlacer to place a particle, the position is chosen randomly within that segment.
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
return the control position
Implements osgParticle::Placer. |
|
|
get vertex A.
|
|
|
get vertex B.
|
|
||||||||||||
|
|
|
|
|
|
|
Place a particle. This method is called by
Implements osgParticle::Placer. |
|
||||||||||||
|
Set both vertices.
|
|
||||||||||||||||
|
Set vertex A of the segment as three floats.
|
|
|
Set vertex A of the segment as a vector.
|
|
||||||||||||||||
|
Set vertex B of the segment as three floats.
|
|
|
Set vertex B of the segment as a vector.
|