Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
I/Qmitk/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 class MITKMATCHPOINTREGISTRATIONUI_EXPORT QmitkAlgorithmListModel : public QAbstractTableModel
32 {
33  Q_OBJECT
34 
35 public:
36  QmitkAlgorithmListModel(QObject *parent = nullptr);
38 
39  void SetAlgorithms(::map::deployment::DLLDirectoryBrowser::DLLInfoListType algList);
40 
41  Qt::ItemFlags flags(const QModelIndex &index) const override;
42  QVariant data(const QModelIndex &index, int role) const override;
43  QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
44  int rowCount(const QModelIndex &parent = QModelIndex()) const override;
45  int columnCount(const QModelIndex &parent = QModelIndex()) const override;
46 
47 private:
48  ::map::deployment::DLLDirectoryBrowser::DLLInfoListType m_AlgList;
49 };
50 
51 #endif
QmitkAlgorithmListModel::~QmitkAlgorithmListModel
~QmitkAlgorithmListModel() override
Definition: I/Qmitk/QmitkAlgorithmListModel.h:37
QmitkAlgorithmListModel
Definition: include/QmitkAlgorithmListModel.h:30
MITKMATCHPOINTREGISTRATIONUI_EXPORT
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
Definition: MitkMatchPointRegistrationUIExports.h:15
MitkMatchPointRegistrationUIExports.h