Medical Imaging Interaction Toolkit
2024.06.00
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
29
class
MITKCORE_EXPORT
ImageVtkWriteAccessor
:
public
ImageAccessorBase
30
{
31
public
:
32
typedef
itk::SmartPointer<Image>
ImagePointer
;
33
39
ImageVtkWriteAccessor
(
ImagePointer
iP,
const
ImageDataItem
*iDI, vtkImageData *imageDataVtk);
40
41
~
ImageVtkWriteAccessor
()
override
;
42
43
vtkImageData *GetVtkImageData()
const
;
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
Image
*m_Image;
51
vtkImageData *m_ImageDataVtk;
52
};
53
}
54
55
#endif
mitk::ImageVtkWriteAccessor
ImageVtkWriteAccessor class provides any image write access which is required by Vtk methods.
Definition:
mitkImageVtkWriteAccessor.h:29
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
itk::Image
class ITK_EXPORT Image
Definition:
mitkGeometryClipImageFilter.h:25
mitk::ImageVtkWriteAccessor::ImagePointer
itk::SmartPointer< Image > ImagePointer
Definition:
mitkImageVtkWriteAccessor.h:32
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkImageVtkWriteAccessor.h
Generated on Mon Jun 17 2024 12:43:27 for Medical Imaging Interaction Toolkit by
1.8.17