14#ifndef OSGPARTICLE_CONNECTEDPARTICLESYSTEM
15#define OSGPARTICLE_CONNECTEDPARTICLESYSTEM 1
47 return (_startParticle != Particle::INVALID_INDEX) ? &_particles[_startParticle] : 0;
53 return (_startParticle != Particle::INVALID_INDEX) ? &_particles[_startParticle] : 0;
Definition ConnectedParticleSystem:27
ConnectedParticleSystem(const ConnectedParticleSystem ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
ConnectedParticleSystem & operator=(const ConnectedParticleSystem &)
Definition ConnectedParticleSystem:66
virtual ~ConnectedParticleSystem()
virtual Particle * createParticle(const Particle *ptemplate)
Create a new particle from the specified template (or the default one if ptemplate is null).
ConnectedParticleSystem()
osgParticle::Particle * getStartParticle()
Get the particle from where the line or quadstrip starts to be drawn.
Definition ConnectedParticleSystem:51
const osgParticle::Particle * getStartParticle() const
Get the (const) particle from where the line or quadstrip starts to be drawn.
Definition ConnectedParticleSystem:45
int _startParticle
Definition ConnectedParticleSystem:71
unsigned int getMaxNumberOfParticlesToSkip()
Get the maximum numbers of particles to be skipped during the predraw filtering.
Definition ConnectedParticleSystem:60
void setMaxNumberOfParticlesToSkip(unsigned int maxNumberofParticlesToSkip)
Set the maximum numbers of particles to be skipped during the predraw filtering.
Definition ConnectedParticleSystem:57
virtual void drawImplementation(osg::RenderInfo &renderInfo) const
Draw the connected particles as either a line or a quad strip, depending upon viewing distance....
int _lastParticleCreated
Definition ConnectedParticleSystem:68
unsigned int _maxNumberOfParticlesToSkip
Definition ConnectedParticleSystem:69
virtual void reuseParticle(int i)
Reuse the i-th particle.
META_Object(osgParticle, ConnectedParticleSystem)
Definition ParticleSystem:54
@ SHALLOW_COPY
Definition CopyOp:47
Definition AccelOperator:27
#define OSGPARTICLE_EXPORT
Definition osgParticle/Export:40