Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
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 (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 mitkImageVtkReadAccessor_h
14 #define mitkImageVtkReadAccessor_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:
37  ImageVtkReadAccessor(ImageConstPointer iP, const ImageDataItem *iDI, const vtkImageData *imageDataVtk);
38 
39  ~ImageVtkReadAccessor() override;
40 
41  const vtkImageData *GetVtkImageData() const;
42 
43  // vtkTypeMacro(ImageVtkWriteAccessor,vtkDataSet)
44 
45  protected:
46  const Image *GetImage() const override;
47 
48  private:
49  // due to smart pointer issues, the image is only kept as a weak pointer.
50  const Image *m_Image;
51  const vtkImageData *m_ImageDataVtk;
52  };
53 }
54 
55 #endif
mitkImageAccessorBase.h
mitk::ImageDataItem
Internal class for managing references on sub-images.
Definition: mitkImageDataItem.h:43
mitk::ImageAccessorBase
Definition: mitkImageAccessorBase.h:48
mitk::Image
Image class for storing images.
Definition: mitkImage.h:69
itk::SmartPointer
Definition: mitkIFileReader.h:30
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ImageVtkReadAccessor
ImageVtkReadAccessor class provides any image read access which is required by Vtk methods.
Definition: mitkImageVtkReadAccessor.h:29
itk::Image
class ITK_EXPORT Image
Definition: mitkGeometryClipImageFilter.h:25
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15