Object Detection  5.0
Image Processing Using Qt and Opencv
circledetectorpluginmodelimpl.h
1 #ifndef CIRCLEDETECTORPLUGINMODELIMPL_H
2 #define CIRCLEDETECTORPLUGINMODELIMPL_H
3 
4 #include <QAbstractTableModel>
5 #include <QDir>
6 #include <QObject>
7 #include <circledetectorpluginmodel.h>
8 #include "imageprocessorpluginiface.h"
9 
10 CIRCLE_MODEL_BEGIN_NAMESPACE
11 class CircleDetectorPluginModel::_CircleDetectorPluginModelImpl
12 {
13 
14 public:
15  _CircleDetectorPluginModelImpl(QString path, CircleDetectorPluginModel *const _ptr);
16 
17  void loadPlugins();
18  // QAbstractItemModel interface
19  ~_CircleDetectorPluginModelImpl();
20  int rowCount(const QModelIndex &parent) const;
21  int columnCount(const QModelIndex &parent) const;
22  QVariant data(const QModelIndex &index, int role) const;
23  QString pluginPath() const;
24  void setPluginPath(const QString &pluginPath);
25 
26  PluginSharedPointerList filters() const;
27  void setFilters(const PluginSharedPointerList &filters);
28 
29  QList<QString> pluginPaths() const;
30 
31 private:
32  QList<QString> m_pluginPaths;
33  PluginSharedPointerList m_filters;
34  QString m_pluginPath;
35  CircleDetectorPluginModel *const ptr;
36  const int COLUMN_COUNT = 4;
37 };
38 CIRCLE_MODEL_END_NAMESPACE
39 #endif // CIRCLEDETECTORPLUGINMODEL_H