Medical Imaging Interaction Toolkit  2022.04.99-2e1e005b
Medical Imaging Interaction Toolkit
QmitkImageAndRoiDataGeneratorBase.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 QmitkImageAndRoiDataGeneratorBase_h
14 #define QmitkImageAndRoiDataGeneratorBase_h
15 
16 #include "QmitkDataGeneratorBase.h"
18 
25 {
26 public:
28 
29  using ConstNodeVectorType = std::vector<mitk::DataNode::ConstPointer>;
30  using NodeVectorType = std::vector<mitk::DataNode::Pointer>;
31 
32  ConstNodeVectorType GetImageNodes() const;
33  ConstNodeVectorType GetROINodes() const;
34 
35 
36 public slots:
39  void SetImageNodes(const ConstNodeVectorType& imageNodes);
41  void SetImageNodes(const NodeVectorType& imageNodes);
42 
45  void SetROINodes(const ConstNodeVectorType& roiNodes);
47  void SetROINodes(const NodeVectorType& roiNodes);
48 
49 protected:
50  QmitkImageAndRoiDataGeneratorBase(mitk::DataStorage::Pointer storage, QObject* parent = nullptr) : QmitkDataGeneratorBase(storage, parent) {};
51  QmitkImageAndRoiDataGeneratorBase(QObject* parent = nullptr) : QmitkDataGeneratorBase(parent) {};
52 
54 
55  bool ChangedNodeIsRelevant(const mitk::DataNode *changedNode) const override;
57 
60 
63 };
64 
65 #endif
QmitkDataGeneratorBase & operator=(const QmitkDataGeneratorBase &other)=delete
QmitkImageAndRoiDataGeneratorBase(mitk::DataStorage::Pointer storage, QObject *parent=nullptr)
#define MITKIMAGESTATISTICSUI_EXPORT
std::vector< std::pair< mitk::DataNode::ConstPointer, mitk::DataNode::ConstPointer > > InputPairVectorType
QmitkDataGeneratorBase BaseClass that implements the organisation of (statistic) data generation for ...
QmitkDataGeneratorBase(const QmitkDataGeneratorBase &other)=delete
std::vector< mitk::DataNode::ConstPointer > ConstNodeVectorType
virtual bool ChangedNodeIsRelevant(const mitk::DataNode *changedNode) const =0
virtual InputPairVectorType GetAllImageROICombinations() const =0
Class for nodes of the DataTree.
Definition: mitkDataNode.h:63
std::vector< mitk::DataNode::Pointer > NodeVectorType