Google

class osgParticle::SegmentPlacer

A segment-shaped particle placer.

Inheritance:


Public Methods

[more] META_Object(osgParticle, SegmentPlacer)
[more]inline SegmentPlacer()
[more]inline SegmentPlacer(const SegmentPlacer &copy, const osg::CopyOp &copyop)
[more]inline const osg::Vec3& getVertexA() const
get vertex A
[more]inline const osg::Vec3& getVertexB() const
get vertex B
[more]inline void setSegment(const osg::Vec3 &A, const osg::Vec3 &B)
Set both vertices
[more]inline void place(Particle* P) const
Place a particle.
[more]inline void setVertexA(const osg::Vec3 &v)
Set vertex A of the segment as a vector
[more]inline void setVertexA(float x, float y, float z)
Set vertex A of the segment as three floats
[more]inline void setVertexB(const osg::Vec3 &v)
Set vertex B of the segment as a vector
[more]inline void setVertexB(float x, float y, float z)
Set vertex B of the segment as three floats

Protected Methods

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


Inherited from Placer:

Public Methods

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


Documentation

A segment-shaped particle placer. 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.
o META_Object(osgParticle, SegmentPlacer)

ovirtual ~SegmentPlacer()

oSegmentPlacer& operator=(const SegmentPlacer &)

oinline SegmentPlacer()

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

oinline const osg::Vec3& getVertexA() const
get vertex A

oinline const osg::Vec3& getVertexB() const
get vertex B

oinline void setSegment(const osg::Vec3 &A, const osg::Vec3 &B)
Set both vertices

oinline void place(Particle* P) const
Place a particle. This method is called by ModularEmitter, do not call it manually.

oinline void setVertexA(const osg::Vec3 &v)
Set vertex A of the segment as a vector

oinline void setVertexA(float x, float y, float z)
Set vertex A of the segment as three floats

oinline void setVertexB(const osg::Vec3 &v)
Set vertex B of the segment as a vector

oinline void setVertexB(float x, float y, float z)
Set vertex B of the segment as three floats


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.