osgParticle::ConnectedParticleSystem Class Reference

ConnectConnectedParticleSystem is a specialise ConnectedParticleSystem for effects like missle trails, where the individual particles are rendered as single ribbon. More...

Inheritance diagram for osgParticle::ConnectedParticleSystem:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ConnectedParticleSystem ()
 ConnectedParticleSystem (const ConnectedParticleSystem &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgParticle, ConnectedParticleSystem)
virtual ParticlecreateParticle (const Particle *ptemplate)
 Create a new particle from the specified template (or the default one if ptemplate is null).
virtual void reuseParticle (int i)
 Reuse the i-th particle.
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 Draw the connected particles as either a line or a quad strip, depending upon viewing distance. .
const
osgParticle::Particle
getStartParticle () const
 Get the (const) particle from where the line or quadstrip starts to be drawn.
osgParticle::ParticlegetStartParticle ()
 Get the particle from where the line or quadstrip starts to be drawn.
void setMaxNumberOfParticlesToSkip (unsigned int maxNumberofParticlesToSkip)
 Set the maximum numbers of particles to be skipped during the predraw filtering.
unsigned int getMaxNumberOfParticlesToSkip ()
 Get the maximum numbers of particles to be skipped during the predraw filtering.

Protected Member Functions

virtual ~ConnectedParticleSystem ()
ConnectedParticleSystemoperator= (const ConnectedParticleSystem &)

Protected Attributes

int _lastParticleCreated
unsigned int _maxNumberOfParticlesToSkip
int _startParticle


Detailed Description

ConnectConnectedParticleSystem is a specialise ConnectedParticleSystem for effects like missle trails, where the individual particles are rendered as single ribbon.

Constructor & Destructor Documentation

osgParticle::ConnectedParticleSystem::ConnectedParticleSystem (  ) 

osgParticle::ConnectedParticleSystem::ConnectedParticleSystem ( const ConnectedParticleSystem copy,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

virtual osgParticle::ConnectedParticleSystem::~ConnectedParticleSystem (  )  [protected, virtual]


Member Function Documentation

osgParticle::ConnectedParticleSystem::META_Object ( osgParticle  ,
ConnectedParticleSystem   
)

virtual Particle* osgParticle::ConnectedParticleSystem::createParticle ( const Particle ptemplate  )  [virtual]

Create a new particle from the specified template (or the default one if ptemplate is null).

Reimplemented from osgParticle::ParticleSystem.

virtual void osgParticle::ConnectedParticleSystem::reuseParticle ( int  i  )  [virtual]

Reuse the i-th particle.

Reimplemented from osgParticle::ParticleSystem.

virtual void osgParticle::ConnectedParticleSystem::drawImplementation ( osg::RenderInfo renderInfo  )  const [virtual]

Draw the connected particles as either a line or a quad strip, depending upon viewing distance. .

Reimplemented from osgParticle::ParticleSystem.

const osgParticle::Particle* osgParticle::ConnectedParticleSystem::getStartParticle (  )  const [inline]

Get the (const) particle from where the line or quadstrip starts to be drawn.

osgParticle::Particle* osgParticle::ConnectedParticleSystem::getStartParticle (  )  [inline]

Get the particle from where the line or quadstrip starts to be drawn.

void osgParticle::ConnectedParticleSystem::setMaxNumberOfParticlesToSkip ( unsigned int  maxNumberofParticlesToSkip  )  [inline]

Set the maximum numbers of particles to be skipped during the predraw filtering.

unsigned int osgParticle::ConnectedParticleSystem::getMaxNumberOfParticlesToSkip (  )  [inline]

Get the maximum numbers of particles to be skipped during the predraw filtering.

ConnectedParticleSystem& osgParticle::ConnectedParticleSystem::operator= ( const ConnectedParticleSystem  )  [inline, protected]


Member Data Documentation

int osgParticle::ConnectedParticleSystem::_lastParticleCreated [protected]

unsigned int osgParticle::ConnectedParticleSystem::_maxNumberOfParticlesToSkip [protected]

int osgParticle::ConnectedParticleSystem::_startParticle [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:42 2007 for the OpenSceneGraph by doxygen 1.5.3.