Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef __itkImportMitkImageContainer_h
18 #define __itkImportMitkImageContainer_h
19 
20 #include <itkImportImageContainer.h>
21 #include <mitkImageAccessorBase.h>
22 #include <mitkImageDataItem.h>
23 
24 namespace itk
25 {
40  template <typename TElementIdentifier, typename TElement>
41  class ImportMitkImageContainer : public ImportImageContainer<TElementIdentifier, TElement>
42  {
43  public:
46  typedef Object Superclass;
49 
51  typedef TElementIdentifier ElementIdentifier;
52  typedef TElement Element;
53 
55  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
56 
58  itkTypeMacro(ImportMitkImageContainer, ImportImageContainer);
59 
61  // TElement *GetImportPointer() {return m_ImportPointer;};
62 
64  // void SetImageDataItem(mitk::ImageDataItem* imageDataItem);
65  void SetImageAccessor(mitk::ImageAccessorBase *imageAccess, size_t noBytes);
66 
67  protected:
68  ImportMitkImageContainer();
69  virtual ~ImportMitkImageContainer();
70 
74  void PrintSelf(std::ostream &os, Indent indent) const override;
75 
76  private:
77  ImportMitkImageContainer(const Self &); // purposely not implemented
78  void operator=(const Self &); // purposely not implemented
79 
80  // mitk::ImageDataItem::Pointer m_ImageDataItem;
81  mitk::ImageAccessorBase *m_imageAccess;
82  };
83 
84 } // end namespace itk
85 
86 // Define instantiation macro for this template.
87 #define ITK_TEMPLATE_ImportMitkImageContainer(_, EXPORT, x, y) \
88  namespace itk \
89  { \
90  _(2(class EXPORT ImportMitkImageContainer<ITK_TEMPLATE_2 x>)) \
91  namespace Templates \
92  { \
93  typedef ImportMitkImageContainer<ITK_TEMPLATE_2 x> ImportMitkImageContainer##y; \
94  } \
95  }
96 
97 //#if ITK_TEMPLATE_EXPLICIT
98 //# include "Templates/itkImportMitkImageContainer+-.h"
99 //#endif
100 
101 #if ITK_TEMPLATE_TXX
103 #endif
104 
105 #endif
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
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.