Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkLesionData.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 MITKLESIONDATA_H
14 #define MITKLESIONDATA_H
15 
17 
18 // mitk semantic relations module
19 #include "mitkSemanticTypes.h"
20 
21 // c++
22 #include <vector>
23 
24 namespace mitk
25 {
37  {
38  public:
43 
44  SemanticTypes::Lesion GetLesion() const { return m_Lesion; };
45  SemanticTypes::ID GetLesionUID() const { return m_Lesion.UID; }
46  std::string GetLesionName() const { return m_Lesion.name; }
47 
48  const std::vector<bool>& GetLesionPresence() const { return m_LesionPresence; };
49  const std::vector<double>& GetLesionVolume() const { return m_LesionVolume; };
50 
51  void SetLesion(const SemanticTypes::Lesion& lesion);
52  void SetLesionPresence(const std::vector<bool>& lesionPresence);
53  void SetLesionVolume(const std::vector<double>& lesionVolume);
54 
55  private:
56 
57  SemanticTypes::Lesion m_Lesion;
58  std::vector<bool> m_LesionPresence;
59  std::vector<double> m_LesionVolume;
60 
61  };
62 } // end namespace
63 
64 #endif // MITKLESIONDATA_H
std::string GetLesionName() const
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKSEMANTICRELATIONS_EXPORT
SemanticTypes::Lesion GetLesion() const
This class holds the data of each lesion in the lesion tree view. The data is the lesion itself with ...
const std::vector< double > & GetLesionVolume() const
SemanticTypes::ID GetLesionUID() const
const std::vector< bool > & GetLesionPresence() const