Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkModalityProperty.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 mitkModalityProperty_h
14 #define mitkModalityProperty_h
15 
17 #include <MitkCoreExports.h>
18 #include <itkObjectFactory.h>
19 
20 namespace mitk
21 {
33  {
34  public:
36  itkFactorylessNewMacro(Self);
37  itkCloneMacro(Self);
39  mitkNewMacro1Param(ModalityProperty, const std::string &);
40 
41  using BaseProperty::operator=;
42 
43  protected:
46 
49 
57  ModalityProperty(const IdType &value);
58 
66  ModalityProperty(const std::string &value);
67 
68  ~ModalityProperty() override;
69 
71  virtual void AddEnumerationTypes();
72 
74 
75  private:
76  // purposely not implemented
77  const ModalityProperty &operator=(const ModalityProperty &);
78  };
79 
80 
81 } // namespace
82 
83 #endif
#define MITKCORE_EXPORT
Property for storing enumeration-like values identified by id and name.
unsigned int IdType
Unsigned integer type used as unique enumeration value identifier.
Enumeration property for known imaging modalities.
ModalityProperty(const ModalityProperty &other)
Copy constructor.
mitkCloneMacro(ModalityProperty)
ModalityProperty(const IdType &value)
Construct with a modality id.
mitkNewMacro1Param(ModalityProperty, const std::string &)
virtual void AddEnumerationTypes()
Populates the enumeration with standard DICOM modality types (CT, MR, US, etc.).
mitkNewMacro1Param(ModalityProperty, const IdType &)
ModalityProperty()
Default constructor. Populates the enumeration with standard modality types.
ModalityProperty(const std::string &value)
Construct with a modality name string.
mitkClassMacro(ModalityProperty, EnumerationProperty)
~ModalityProperty() override
Find image slices visible on a given plane.