Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkImageWriteAccessor.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 mitkImageWriteAccessor_h
14
#define mitkImageWriteAccessor_h
15
16
#include "
mitkImage.h
"
17
#include "
mitkImageAccessorBase.h
"
18
19
namespace
mitk
20
{
25
class
MITKCORE_EXPORT
ImageWriteAccessor
:
public
ImageAccessorBase
26
{
27
template
<
class
TPixel,
unsigned
int
VDimension>
28
friend
class
ImagePixelReadAccessor
;
29
30
public
:
31
typedef
Image::Pointer
ImagePointer
;
32
42
ImageWriteAccessor
(
ImagePointer
image,
43
const
ImageDataItem
*iDI =
nullptr
,
44
int
OptionFlags =
ImageAccessorBase::DefaultBehavior
);
45
47
inline
void
*
GetData
() {
return
m_AddressBegin; }
49
~
ImageWriteAccessor
()
override
;
50
51
protected
:
52
const
Image
*GetImage()
const override
;
53
54
private
:
56
void
OrganizeWriteAccess();
57
58
ImageWriteAccessor
&operator=(
const
ImageWriteAccessor
&);
// Not implemented on purpose.
59
ImageWriteAccessor
(
const
ImageWriteAccessor
&);
60
61
ImagePointer m_Image;
62
};
63
}
64
#endif
mitkImageAccessorBase.h
mitkImage.h
mitk::ImageWriteAccessor
ImageWriteAccessor class to get locked write-access for a particular image part.
Definition:
mitkImageWriteAccessor.h:25
mitk::ImageAccessorBase::DefaultBehavior
@ DefaultBehavior
Definition:
mitkImageAccessorBase.h:69
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< Self >
mitk::ImageWriteAccessor::ImagePointer
Image::Pointer ImagePointer
Definition:
mitkImageWriteAccessor.h:31
mitk::ImagePixelReadAccessor
Gives locked and index-based read access for a particular image part. The class provides several set-...
Definition:
mitkImagePixelReadAccessor.h:32
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::ImageWriteAccessor::GetData
void * GetData()
Gives full data access.
Definition:
mitkImageWriteAccessor.h:47
src
MITK
Modules
Core
include
mitkImageWriteAccessor.h
Generated on Mon Dec 23 2024 02:13:19 for Medical Imaging Interaction Toolkit by
1.8.17