|
#ifndef PARTICLES_H
#define PARTICLES_H
#include "osgelement.h"
#include <osgParticle/ParticleSystem>
#include <osgParticle/RandomRateCounter>
#include <osgParticle/ModularEmitter>
#include <osgParticle/AccelOperator>
#include <osgParticle/ParticleSystemUpdater>
#include <osg/MatrixTransform>
class Particles : public OSGElement
{
Q_OBJECT
public:
explicit Particles(QObject *parent = 0, QString Dir = QString(), QDomElement node = QDomElement());
virtual osg::Node *getNode();
virtual ~Particles();
protected:
virtual void copyElement();
private:
void readParticles(QDomElement node);
osg::ref_ptr<osg::MatrixTransform> _mt;
osg::ref_ptr<osg::Group> _root;
osg::ref_ptr<osg::Geode> _geode;
osg::ref_ptr<osgParticle::ParticleSystem> _ps;
osg::ref_ptr<osgParticle::RandomRateCounter> _rrc;
osg::ref_ptr<osgParticle::ModularEmitter> _emitter;
osg::ref_ptr<osgParticle::AccelOperator> _accel;
osg::ref_ptr<osgParticle::ModularProgram> _program;
osg::ref_ptr<osgParticle::ParticleSystemUpdater> _updater;
QString Dir;
signals:
public slots:
};
#endif // PARTICLES_H
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.