00001 #ifndef GENERATORFACTORY_H
00002 #define GENERATORFACTORY_H
00003
00004 #include <QObject>
00005 #include <QStringList>
00006
00007 #include "generator.h"
00008 #include "randompointgenerator.h"
00009 #include "imagegenerator.h"
00010
00017 class GeneratorFactory : public QObject
00018 {
00019
00020 static GeneratorFactory * _instance;
00021 public:
00022 static GeneratorFactory * instance(QObject * parent = 0);
00023
00024
00025 private:
00026 QStringList _generatorNames;
00027
00028 explicit GeneratorFactory(QObject *parent = 0);
00029
00030 public:
00031 QStringList names() { return _generatorNames; }
00032 Generator * generator(QString name, FractalInfo * info, bool autoParam = true);
00033 };
00034
00035 #endif // GENERATORFACTORY_H