81 :
Placer(), _vertexA(-1, 0, 0), _vertexB(1, 0, 0)
void setVertexB(const osg::Vec3 &v)
Set vertex B of the segment as a vector.
void setVertexA(const osg::Vec3 &v)
Set vertex A of the segment as a vector.
void setSegment(const osg::Vec3 &A, const osg::Vec3 &B)
Set both vertices.
void setPosition(const osg::Vec3 &p)
Set the position vector.
META_Object(osgParticle, SegmentPlacer)
void place(Particle *P) const
Place a particle. This method is called by ModularEmitter, do not call it manually.
const osg::Vec3 & getVertexA() const
get vertex A.
const osg::Vec3 & getVertexB() const
get vertex B.
float volume() const
return the length of the segment
osg::Vec3 getControlPosition() const
return the control position
range< osg::Vec3 > rangev3
Range of osg::Vec3s.
SegmentPlacer & operator=(const SegmentPlacer &)