Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
Helper/QmitkAlgorithmListModel.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkAlgorithmListModel_h
14 #define QmitkAlgorithmListModel_h
15 
16 #include <QAbstractTableModel>
17 #include <QStringList>
18 
19 //MITK
21 
22 // MatchPoint
23 #include <mapDeploymentDLLDirectoryBrowser.h>
24 
31 {
32  Q_OBJECT
33 
34  public:
35  QmitkAlgorithmListModel(QObject *parent = nullptr);
36  ~QmitkAlgorithmListModel() override {};
37 
38  void SetAlgorithms(::map::deployment::DLLDirectoryBrowser::DLLInfoListType algList);
39 
40  Qt::ItemFlags flags(const QModelIndex &index) const override;
41  QVariant data(const QModelIndex &index, int role) const override;
42  QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
43  int rowCount(const QModelIndex &parent = QModelIndex()) const override;
44  int columnCount(const QModelIndex &parent = QModelIndex()) const override;
45 
46 private:
47 
48  ::map::deployment::DLLDirectoryBrowser::DLLInfoListType m_AlgList;
49 };
50 
51 #endif // mitkQmitkAlgorithmListModel_h
52 
#define MITKMATCHPOINTREGISTRATION_EXPORT