Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
itkImportMitkImageContainer.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 __itkImportMitkImageContainer_h
14 #define __itkImportMitkImageContainer_h
15 
16 #include <itkImportImageContainer.h>
17 #include <mitkImageAccessorBase.h>
18 #include <mitkImageDataItem.h>
19 
20 namespace itk
21 {
36  template <typename TElementIdentifier, typename TElement>
37  class ImportMitkImageContainer : public ImportImageContainer<TElementIdentifier, TElement>
38  {
39  public:
42  typedef Object Superclass;
45 
47  typedef TElementIdentifier ElementIdentifier;
48  typedef TElement Element;
49 
51  itkFactorylessNewMacro(Self);
52  itkCloneMacro(Self);
53 
55  itkTypeMacro(ImportMitkImageContainer, ImportImageContainer);
56 
58  // TElement *GetImportPointer() {return m_ImportPointer;};
59 
61  // void SetImageDataItem(mitk::ImageDataItem* imageDataItem);
62  void SetImageAccessor(mitk::ImageAccessorBase *imageAccess, size_t noBytes);
63 
64  protected:
66  ~ImportMitkImageContainer() override;
67 
71  void PrintSelf(std::ostream &os, Indent indent) const override;
72 
73  private:
74  ImportMitkImageContainer(const Self &); // purposely not implemented
75  void operator=(const Self &); // purposely not implemented
76 
77  // mitk::ImageDataItem::Pointer m_ImageDataItem;
78  mitk::ImageAccessorBase *m_imageAccess;
79  };
80 
81 } // end namespace itk
82 
83 // Define instantiation macro for this template.
84 #define ITK_TEMPLATE_ImportMitkImageContainer(_, EXPORT, x, y) \
85  namespace itk \
86  { \
87  _(2(class EXPORT ImportMitkImageContainer<ITK_TEMPLATE_2 x>)) \
88  namespace Templates \
89  { \
90  typedef ImportMitkImageContainer<ITK_TEMPLATE_2 x> ImportMitkImageContainer##y; \
91  } \
92  }
93 
94 #ifndef ITK_MANUAL_INSTANTIATION
95 #include "itkImportMitkImageContainer.txx"
96 #endif
97 
98 #endif
itk::ImportMitkImageContainer::Self
ImportMitkImageContainer Self
Definition: itkImportMitkImageContainer.h:41
mitkImageAccessorBase.h
mitk::ImageAccessorBase
Definition: mitkImageAccessorBase.h:48
itk::ImportMitkImageContainer::Superclass
Object Superclass
Definition: itkImportMitkImageContainer.h:42
itk::SmartPointer< Self >
itk::ImportMitkImageContainer::Element
TElement Element
Definition: itkImportMitkImageContainer.h:48
itk::ImportMitkImageContainer
Definition: itkImportMitkImageContainer.h:37
itk::ImportMitkImageContainer::ConstPointer
SmartPointer< const Self > ConstPointer
Definition: itkImportMitkImageContainer.h:44
itk::ImportMitkImageContainer::ImportMitkImageContainer
ImportMitkImageContainer()
itk::ImportMitkImageContainer::ElementIdentifier
TElementIdentifier ElementIdentifier
Definition: itkImportMitkImageContainer.h:47
mitkImageDataItem.h
itk::ImportMitkImageContainer::Pointer
SmartPointer< Self > Pointer
Definition: itkImportMitkImageContainer.h:43
itk::ImportMitkImageContainer::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::ImportMitkImageContainer::SetImageAccessor
void SetImageAccessor(mitk::ImageAccessorBase *imageAccess, size_t noBytes)
‍** Get the pointer from which the image data is imported. *‍/
itk::ImportMitkImageContainer::~ImportMitkImageContainer
~ImportMitkImageContainer() override
itk
SET FUNCTIONS.
Definition: itkIntelligentBinaryClosingFilter.h:30