OpenSceneGraph 2.8.4
Public Member Functions | Protected Member Functions | Protected Attributes
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::ParticlegetStartParticle () 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

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::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.

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

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

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

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

References osgParticle::Particle::INVALID_INDEX.

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

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

References osgParticle::Particle::INVALID_INDEX.

osgParticle::ConnectedParticleSystem::META_Object ( osgParticle  ,
ConnectedParticleSystem   
)
ConnectedParticleSystem& osgParticle::ConnectedParticleSystem::operator= ( const ConnectedParticleSystem ) [inline, protected]
virtual void osgParticle::ConnectedParticleSystem::reuseParticle ( int  i) [virtual]

Reuse the i-th particle.

Reimplemented from osgParticle::ParticleSystem.

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

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


Member Data Documentation


The documentation for this class was generated from the following file:

osg logo
Generated at Sun Jan 8 2012 13:16:47 for the OpenSceneGraph by doxygen 1.7.4.