Medical Imaging Interaction Toolkit  2023.04.00
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
mitk::LesionData::GetLesionPresence
const std::vector< bool > & GetLesionPresence() const
Definition: mitkLesionData.h:48
mitk::LesionData::GetLesionName
std::string GetLesionName() const
Definition: mitkLesionData.h:46
MitkSemanticRelationsExports.h
mitkSemanticTypes.h
MITKSEMANTICRELATIONS_EXPORT
#define MITKSEMANTICRELATIONS_EXPORT
Definition: MitkSemanticRelationsExports.h:15
mitk::SemanticTypes::Lesion
Definition: mitkSemanticTypes.h:108
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::LesionData::GetLesionVolume
const std::vector< double > & GetLesionVolume() const
Definition: mitkLesionData.h:49
mitk::LesionData::GetLesion
SemanticTypes::Lesion GetLesion() const
Definition: mitkLesionData.h:44
mitk::SemanticTypes::ID
std::string ID
Definition: mitkSemanticTypes.h:33
mitk::LesionData
This class holds the data of each lesion in the lesion tree view. The data is the lesion itself with ...
Definition: mitkLesionData.h:36
mitk::LesionData::GetLesionUID
SemanticTypes::ID GetLesionUID() const
Definition: mitkLesionData.h:45