Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 //#if ITK_TEMPLATE_EXPLICIT
95 //# include "Templates/itkImportMitkImageContainer+-.h"
96 //#endif
97 
98 #if ITK_TEMPLATE_TXX
100 #endif
101 
102 #endif
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
void SetImageAccessor(mitk::ImageAccessorBase *imageAccess, vcl_size_t noBytes)
Set the mitk::ImageDataItem to be imported.