NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Class that takes a pointer to a destination image, and applies changes directly to it and enablng undo/redo. In practice, this may result in large memory overhead, so, if we are using this for undo/redo we should consider using a small undo/redo stack or small regions. More...
Public Types | |
typedef MIDASImageUpdateProcessor | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TPixel | PixelType |
typedef Image< TPixel, VImageDimension > | ImageType |
typedef ImageType::Pointer | ImagePointer |
typedef ImageType::IndexType | IndexType |
typedef ImageType::SizeType | SizeType |
typedef ImageType::RegionType | RegionType |
Public Member Functions | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (ImageDimension, unsigned int, VImageDimension) | |
virtual void | SetDestinationImage (ImageType *_arg) |
virtual ImageType * | GetDestinationImage () |
virtual void | Undo ()=0 |
virtual void | Redo ()=0 |
Protected Member Functions | |
MIDASImageUpdateProcessor () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual | ~MIDASImageUpdateProcessor () |
virtual void | ValidateInputs () |
Class that takes a pointer to a destination image, and applies changes directly to it and enablng undo/redo. In practice, this may result in large memory overhead, so, if we are using this for undo/redo we should consider using a small undo/redo stack or small regions.
At this level of the hierarchy, we basically store a reference to the output image, and define Undo/Redo methods. Its up to sub-classes to do the rest.
typedef SmartPointer<const Self> itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::ConstPointer |
typedef ImageType::Pointer itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::ImagePointer |
typedef Image<TPixel, VImageDimension> itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::ImageType |
typedef ImageType::IndexType itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::IndexType |
typedef TPixel itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::PixelType |
Additional typedefs
typedef SmartPointer<Self> itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::Pointer |
typedef ImageType::RegionType itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::RegionType |
typedef MIDASImageUpdateProcessor itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::Self |
Standard class typedefs
typedef ImageType::SizeType itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::SizeType |
typedef Object itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::Superclass |
|
protected |
|
inlineprotectedvirtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented in itk::MIDASImageUpdatePixelWiseSingleValueProcessor< TPixel, VImageDimension >, itk::MIDASImageUpdateCopyRegionProcessor< TPixel, VImageDimension >, itk::MIDASImageUpdatePasteRegionProcessor< TPixel, VImageDimension >, itk::MIDASImageUpdateClearRegionProcessor< TPixel, VImageDimension >, and itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >.
|
virtual |
itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >::itkStaticConstMacro | ( | ImageDimension | , |
unsigned | int, | ||
VImageDimension | |||
) |
Dimension of the image. This constant is used by functions that are templated over image type (as opposed to being templated over pixel type and dimension) when they need compile time access to the dimension of the image.
|
overrideprotected |
|
pure virtual |
Sub-classes decide how to implement this.
Implemented in itk::MIDASImageUpdatePixelWiseSingleValueProcessor< TPixel, VImageDimension >, and itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >.
|
virtual |
Set the destination image, which is the image actually modified. This is not a filter with separate input/output.
|
pure virtual |
Sub-classes decide how to implement this.
Implemented in itk::MIDASImageUpdatePixelWiseSingleValueProcessor< TPixel, VImageDimension >, and itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >.
|
protectedvirtual |
Reimplemented in itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >.