NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Provides methods to do Undo/Redo within a specific Region. More...
Public Types | |
typedef MIDASImageUpdateRegionProcessor | Self |
typedef MIDASImageUpdateProcessor < TPixel, VImageDimension > | 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 |
typedef itk::ExtractImageFilter < ImageType, ImageType > | ExtractImageFilterType |
typedef ExtractImageFilterType::Pointer | ExtractImageFilterPointer |
typedef itk::PasteImageFilter < ImageType, ImageType > | PasteImageFilterType |
typedef PasteImageFilterType::Pointer | PasteImageFilterPointer |
Public Types inherited from itk::MIDASImageUpdateProcessor< TPixel, VImageDimension > | |
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 |
virtual void | SetDestinationRegionOfInterest (RegionType _arg) |
virtual RegionType | GetDestinationRegionOfInterest () |
void | SetDestinationRegionOfInterest (std::vector< int > ®ion) |
virtual void | Undo () |
virtual void | Redo () |
Public Member Functions inherited from itk::MIDASImageUpdateProcessor< TPixel, VImageDimension > | |
itkStaticConstMacro (ImageDimension, unsigned int, VImageDimension) | |
virtual void | SetDestinationImage (ImageType *_arg) |
virtual ImageType * | GetDestinationImage () |
Protected Member Functions | |
MIDASImageUpdateRegionProcessor () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual | ~MIDASImageUpdateRegionProcessor () |
virtual ImageType * | GetAfterImage () |
virtual void | SetAfterImage (ImageType *_arg) |
virtual void | ApplyUpdateToAfterImage ()=0 |
virtual void | ValidateInputs () |
Protected Member Functions inherited from itk::MIDASImageUpdateProcessor< TPixel, VImageDimension > | |
MIDASImageUpdateProcessor () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual | ~MIDASImageUpdateProcessor () |
Provides methods to do Undo/Redo within a specific Region.
typedef SmartPointer<const Self> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ConstPointer |
typedef ExtractImageFilterType::Pointer itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ExtractImageFilterPointer |
typedef itk::ExtractImageFilter<ImageType, ImageType> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ExtractImageFilterType |
typedef ImageType::Pointer itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ImagePointer |
typedef Image<TPixel, VImageDimension> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ImageType |
typedef ImageType::IndexType itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::IndexType |
typedef PasteImageFilterType::Pointer itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::PasteImageFilterPointer |
typedef itk::PasteImageFilter<ImageType, ImageType> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::PasteImageFilterType |
typedef TPixel itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::PixelType |
Additional typedefs
typedef SmartPointer<Self> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::Pointer |
typedef ImageType::RegionType itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::RegionType |
typedef MIDASImageUpdateRegionProcessor itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::Self |
Standard class typedefs
typedef ImageType::SizeType itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::SizeType |
typedef MIDASImageUpdateProcessor<TPixel, VImageDimension> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::Superclass |
|
protected |
|
inlineprotectedvirtual |
|
protectedpure virtual |
Derived classes calculate whatever update they like, but can only affect the m_AfterImage, which must be within the destination region of interest.
Implemented in itk::MIDASImageUpdatePasteRegionProcessor< TPixel, VImageDimension >, itk::MIDASImageUpdateCopyRegionProcessor< TPixel, VImageDimension >, and itk::MIDASImageUpdateClearRegionProcessor< TPixel, VImageDimension >.
|
protectedvirtual |
Returns the after image, so derived classes can apply an update.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >.
Reimplemented in itk::MIDASImageUpdateCopyRegionProcessor< TPixel, VImageDimension >, itk::MIDASImageUpdatePasteRegionProcessor< TPixel, VImageDimension >, and itk::MIDASImageUpdateClearRegionProcessor< TPixel, VImageDimension >.
|
virtual |
|
protected |
|
virtual |
This will copy the m_AfterImage into the m_DestinationImage. This method should also be called to execute the whole process first time round.
Implements itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >.
|
protectedvirtual |
|
virtual |
Set the destination region of interest, which controls the region that is copied into m_BeforeImage and m_After image for Undo/Redo purposes.
void itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::SetDestinationRegionOfInterest | ( | std::vector< int > & | region | ) |
Overloaded method to provide simple acess via a std::vector, where we assume the length is 6 corresponding to the first 3 numbers indicating the starting index, and the next 3 numbers indicating the region size.
|
virtual |
This will copy the m_BeforeImage into the m_DestinationImage
Implements itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >.
|
protectedvirtual |
Reimplemented from itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >.