Medical Imaging Interaction Toolkit  2018.4.99-87d68d9f
Medical Imaging Interaction Toolkit
mitkImageVtkWriteAccessor.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 MITKIMAGEVTKWRITEACCESSOR_H
14 #define MITKIMAGEVTKWRITEACCESSOR_H
15 
16 #include "mitkImageAccessorBase.h"
17 
18 class vtkImageData;
19 
20 namespace mitk
21 {
22  class Image;
23  class ImageDataItem;
24 
30  {
31  public:
33 
37  ImageVtkWriteAccessor(ImagePointer iP, const ImageDataItem *iDI, vtkImageData *imageDataVtk);
38 
39  ~ImageVtkWriteAccessor() override;
40 
41  vtkImageData *GetVtkImageData() const;
42 
43  protected:
44  const Image *GetImage() const override;
45 
46  private:
47  // due to smart pointer issues, the image is only kept as a weak pointer.
48  Image *m_Image;
49  vtkImageData *m_ImageDataVtk;
50  };
51 }
52 
53 #endif // MITKIMAGEVTKWRITEACCESSOR_H
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
class ITK_EXPORT Image
Image class for storing images.
Definition: mitkImage.h:72
Internal class for managing references on sub-images.
ImageVtkWriteAccessor class provides any image write access which is required by Vtk methods...
itk::SmartPointer< Image > ImagePointer