Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Internal class for managing references on sub-images. More...
#include <mitkImageDataItem.h>
Public Types | |
typedef itk::SmartPointer< mitk::Image > | ImagePointer |
typedef itk::SmartPointer< const mitk::Image > | ImageConstPointer |
typedef ImageDataItem | Self |
typedef itk::LightObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
itk::LightObject::Pointer | InternalClone () const override |
ImageDataItem (const ImageDataItem &aParent, const mitk::ImageDescriptor::Pointer desc, int timestep, unsigned int dimension, void *data=nullptr, bool manageMemory=false, size_t offset=0) | |
~ImageDataItem () override | |
ImageDataItem (const mitk::ImageDescriptor::Pointer desc, int timestep, void *data, bool manageMemory) | |
ImageDataItem (const mitk::PixelType &type, int timestep, unsigned int dimension, unsigned int *dimensions, void *data, bool manageMemory) | |
ImageDataItem (const ImageDataItem &other) | |
bool | IsComplete () const |
void | SetComplete (bool complete) |
int | GetOffset () const |
PixelType | GetPixelType () const |
void | SetTimestep (int t) |
void | SetManageMemory (bool b) |
int | GetDimension () const |
int | GetDimension (int i) const |
ImageDataItem::ConstPointer | GetParent () const |
ImageVtkReadAccessor * | GetVtkImageAccessor (ImageConstPointer) const |
GetVtkImageAccessor Returns a vtkImageDataItem, if none is present, a new one is constructed by the ConstructVtkImageData method. Due to historical development of MITK and VTK, the vtkImage origin is explicitly set to (0, 0, 0) for 3D images. See bug 5050 for detailed information. More... | |
ImageVtkWriteAccessor * | GetVtkImageAccessor (ImagePointer) |
bool | GetManageMemory () const |
virtual void | ConstructVtkImageData (ImageConstPointer) const |
size_t | GetSize () const |
virtual void | Modified () const |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
void * | GetData () const |
Protected Attributes | |
unsigned char * | m_Data |
PixelType * | m_PixelType |
bool | m_ManageMemory |
vtkImageData * | m_VtkImageData |
ImageVtkReadAccessor * | m_VtkImageReadAccessor |
ImageVtkWriteAccessor * | m_VtkImageWriteAccessor |
int | m_Offset |
bool | m_IsComplete |
size_t | m_Size |
Internal class for managing references on sub-images.
ImageDataItem is a container for image data which is used internal in mitk::Image to handle the communication between the different data types for images used in MITK (mitk::Image, vtkImageData). Common for these image data types is the actual image data, but they differ in representation of pixel type etc.
The class is mainly used to extract sub-images inside of mitk::Image, like single slices etc. It should not be used outside of this.
manageMemory | Determines if image data is removed while destruction of ImageDataItem or not. |
Definition at line 43 of file mitkImageDataItem.h.
typedef itk::SmartPointer<const Self> mitk::ImageDataItem::ConstPointer |
Definition at line 61 of file mitkImageDataItem.h.
typedef itk::SmartPointer<const mitk::Image> mitk::ImageDataItem::ImageConstPointer |
Definition at line 59 of file mitkImageDataItem.h.
Definition at line 58 of file mitkImageDataItem.h.
Definition at line 61 of file mitkImageDataItem.h.
Definition at line 61 of file mitkImageDataItem.h.
typedef itk::LightObject mitk::ImageDataItem::Superclass |
Definition at line 61 of file mitkImageDataItem.h.
mitk::ImageDataItem::ImageDataItem | ( | const ImageDataItem & | aParent, |
const mitk::ImageDescriptor::Pointer | desc, | ||
int | timestep, | ||
unsigned int | dimension, | ||
void * | data = nullptr , |
||
bool | manageMemory = false , |
||
size_t | offset = 0 |
||
) |
|
override |
mitk::ImageDataItem::ImageDataItem | ( | const mitk::ImageDescriptor::Pointer | desc, |
int | timestep, | ||
void * | data, | ||
bool | manageMemory | ||
) |
mitk::ImageDataItem::ImageDataItem | ( | const mitk::PixelType & | type, |
int | timestep, | ||
unsigned int | dimension, | ||
unsigned int * | dimensions, | ||
void * | data, | ||
bool | manageMemory | ||
) |
mitk::ImageDataItem::ImageDataItem | ( | const ImageDataItem & | other | ) |
Pointer mitk::ImageDataItem::Clone | ( | ) | const |
|
virtual |
|
inlinevirtual |
Definition at line 61 of file mitkImageDataItem.h.
|
virtual |
|
inlineprotected |
Helper function to allow friend classes to access m_Data without changing their code. Moved to protected visibility because only friends are allowed to access m_Data directly. Other classes should used ImageWriteAccessor::GetData() or ImageReadAccessor::GetData() to get access.
Definition at line 131 of file mitkImageDataItem.h.
|
inline |
Definition at line 93 of file mitkImageDataItem.h.
Referenced by mitk::ImagePixelAccessor< TPixel, 3 >::CheckData(), and mitk::ImagePixelAccessor< TPixel, 3 >::GetDimension().
|
inline |
Definition at line 94 of file mitkImageDataItem.h.
|
inline |
Definition at line 119 of file mitkImageDataItem.h.
|
inline |
Definition at line 89 of file mitkImageDataItem.h.
|
inline |
Definition at line 105 of file mitkImageDataItem.h.
|
inline |
Definition at line 90 of file mitkImageDataItem.h.
|
inline |
Definition at line 122 of file mitkImageDataItem.h.
|
inlinestatic |
Definition at line 61 of file mitkImageDataItem.h.
ImageVtkReadAccessor* mitk::ImageDataItem::GetVtkImageAccessor | ( | ImageConstPointer | ) | const |
GetVtkImageAccessor Returns a vtkImageDataItem, if none is present, a new one is constructed by the ConstructVtkImageData method. Due to historical development of MITK and VTK, the vtkImage origin is explicitly set to (0, 0, 0) for 3D images. See bug 5050 for detailed information.
ImageVtkWriteAccessor* mitk::ImageDataItem::GetVtkImageAccessor | ( | ImagePointer | ) |
|
override |
|
inline |
Definition at line 87 of file mitkImageDataItem.h.
|
virtual |
|
inline |
Definition at line 88 of file mitkImageDataItem.h.
|
inline |
Definition at line 92 of file mitkImageDataItem.h.
|
inline |
Definition at line 91 of file mitkImageDataItem.h.
|
protected |
Definition at line 133 of file mitkImageDataItem.h.
|
protected |
Definition at line 144 of file mitkImageDataItem.h.
|
protected |
Definition at line 137 of file mitkImageDataItem.h.
|
protected |
Definition at line 142 of file mitkImageDataItem.h.
|
protected |
Definition at line 135 of file mitkImageDataItem.h.
|
protected |
Definition at line 146 of file mitkImageDataItem.h.
|
mutableprotected |
Definition at line 139 of file mitkImageDataItem.h.
|
mutableprotected |
Definition at line 140 of file mitkImageDataItem.h.
|
protected |
Definition at line 141 of file mitkImageDataItem.h.