Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
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 
42 {
43  Q_OBJECT
44 
45 public:
50  QmitkAlgorithmListModel(QObject *parent = nullptr);
51 
54 
63  void SetAlgorithms(::map::deployment::DLLDirectoryBrowser::DLLInfoListType algList);
64 
70  Qt::ItemFlags flags(const QModelIndex &index) const override;
71 
82  QVariant data(const QModelIndex &index, int role) const override;
83 
95  QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
96 
102  int rowCount(const QModelIndex &parent = QModelIndex()) const override;
103 
109  int columnCount(const QModelIndex &parent = QModelIndex()) const override;
110 
111 private:
112  ::map::deployment::DLLDirectoryBrowser::DLLInfoListType m_AlgList;
113 };
114 
115 #endif
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
Qt table model representing a list of MatchPoint registration algorithm DLL handles.
QmitkAlgorithmListModel(QObject *parent=nullptr)
Constructs the algorithm list model.
Qt::ItemFlags flags(const QModelIndex &index) const override
Returns item flags for the given model index.
QVariant data(const QModelIndex &index, int role) const override
Returns data for the given model index and role.
~QmitkAlgorithmListModel() override
Destructor.
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Returns header data for the given section, orientation, and role.
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of rows (algorithms) in the model.
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Returns the number of columns in the model.
void SetAlgorithms(::map::deployment::DLLDirectoryBrowser::DLLInfoListType algList)
Sets the list of algorithm DLL info objects to be displayed.