Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkImageVtkReadAccessor.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 MITKIMAGEVTKREADACCESSOR_H
18 #define MITKIMAGEVTKREADACCESSOR_H
19 
20 #include "mitkImageAccessorBase.h"
21 
22 class vtkImageData;
23 
24 namespace mitk
25 {
26  class Image;
27  class ImageDataItem;
28 
34  {
35  public:
39  ImageVtkReadAccessor(ImageConstPointer iP, const ImageDataItem *iDI, const vtkImageData *imageDataVtk);
40 
42 
43  const vtkImageData *GetVtkImageData() const;
44 
45  // vtkTypeMacro(ImageVtkWriteAccessor,vtkDataSet)
46 
47  protected:
48  virtual const Image *GetImage() const override;
49 
50  private:
51  // due to smart pointer issues, the image is only kept as a weak pointer.
52  const Image *m_Image;
53  const vtkImageData *m_ImageDataVtk;
54  };
55 }
56 
57 #endif // MITKIMAGEVTKREADACCESSOR_H
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
class ITK_EXPORT Image
Image class for storing images.
Definition: mitkImage.h:76
ImageVtkReadAccessor class provides any image read access which is required by Vtk methods...
Internal class for managing references on sub-images.