NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Protected Member Functions | List of all members
itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension > Class Template Referenceabstract

Provides methods to do Undo/Redo within a specific Region. More...

Inheritance diagram for itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >:
Inheritance graph
[legend]
Collaboration diagram for itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >:
Collaboration graph
[legend]

Public Types

typedef
MIDASImageUpdateRegionProcessor 
Self
 
typedef
MIDASImageUpdateProcessor
< TPixel, VImageDimension > 
Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
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< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
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 > &region)
 
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 ImageTypeGetDestinationImage ()
 

Protected Member Functions

 MIDASImageUpdateRegionProcessor ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~MIDASImageUpdateRegionProcessor ()
 
virtual ImageTypeGetAfterImage ()
 
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 ()
 

Detailed Description

template<class TPixel, unsigned int VImageDimension>
class itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >

Provides methods to do Undo/Redo within a specific Region.

Member Typedef Documentation

template<class TPixel , unsigned int VImageDimension>
typedef SmartPointer<const Self> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ConstPointer
template<class TPixel , unsigned int VImageDimension>
typedef ExtractImageFilterType::Pointer itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ExtractImageFilterPointer
template<class TPixel , unsigned int VImageDimension>
typedef itk::ExtractImageFilter<ImageType, ImageType> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ExtractImageFilterType
template<class TPixel , unsigned int VImageDimension>
typedef ImageType::Pointer itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ImagePointer
template<class TPixel , unsigned int VImageDimension>
typedef Image<TPixel, VImageDimension> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ImageType
template<class TPixel , unsigned int VImageDimension>
typedef ImageType::IndexType itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::IndexType
template<class TPixel , unsigned int VImageDimension>
typedef PasteImageFilterType::Pointer itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::PasteImageFilterPointer
template<class TPixel , unsigned int VImageDimension>
typedef itk::PasteImageFilter<ImageType, ImageType> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::PasteImageFilterType
template<class TPixel , unsigned int VImageDimension>
typedef TPixel itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::PixelType

Additional typedefs

template<class TPixel , unsigned int VImageDimension>
typedef SmartPointer<Self> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::Pointer
template<class TPixel , unsigned int VImageDimension>
typedef ImageType::RegionType itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::RegionType
template<class TPixel , unsigned int VImageDimension>
typedef MIDASImageUpdateRegionProcessor itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::Self

Standard class typedefs

template<class TPixel , unsigned int VImageDimension>
typedef ImageType::SizeType itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::SizeType
template<class TPixel , unsigned int VImageDimension>
typedef MIDASImageUpdateProcessor<TPixel, VImageDimension> itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::Superclass

Constructor & Destructor Documentation

template<class TPixel , unsigned int VImageDimension>
itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::MIDASImageUpdateRegionProcessor ( )
protected
template<class TPixel , unsigned int VImageDimension>
virtual itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::~MIDASImageUpdateRegionProcessor ( )
inlineprotectedvirtual

Member Function Documentation

template<class TPixel , unsigned int VImageDimension>
virtual void itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ApplyUpdateToAfterImage ( )
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 >.

template<class TPixel , unsigned int VImageDimension>
virtual ImageType* itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::GetAfterImage ( )
protectedvirtual

Returns the after image, so derived classes can apply an update.

template<class TPixel , unsigned int VImageDimension>
virtual const char* itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::GetClassName ( ) const
virtual
template<class TPixel , unsigned int VImageDimension>
virtual RegionType itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::GetDestinationRegionOfInterest ( )
virtual
template<class TPixel , unsigned int VImageDimension>
void itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected
template<class TPixel , unsigned int VImageDimension>
virtual void itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::Redo ( )
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 >.

template<class TPixel , unsigned int VImageDimension>
virtual void itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::SetAfterImage ( ImageType _arg)
protectedvirtual
template<class TPixel , unsigned int VImageDimension>
virtual void itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::SetDestinationRegionOfInterest ( RegionType  _arg)
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.

template<class TPixel , unsigned int VImageDimension>
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.

template<class TPixel , unsigned int VImageDimension>
virtual void itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::Undo ( )
virtual

This will copy the m_BeforeImage into the m_DestinationImage

Implements itk::MIDASImageUpdateProcessor< TPixel, VImageDimension >.

template<class TPixel , unsigned int VImageDimension>
virtual void itk::MIDASImageUpdateRegionProcessor< TPixel, VImageDimension >::ValidateInputs ( )
protectedvirtual

The documentation for this class was generated from the following file: