NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkMIDASImageUpdateClearRegionProcessor.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef itkMIDASImageUpdateClearRegionProcessor_h
16 #define itkMIDASImageUpdateClearRegionProcessor_h
17 
19 
20 namespace itk
21 {
22 
27 template <class TPixel, unsigned int VImageDimension>
28 class ITK_EXPORT MIDASImageUpdateClearRegionProcessor : public MIDASImageUpdateRegionProcessor<TPixel, VImageDimension> {
29 
30 public:
31 
35  typedef SmartPointer<Self> Pointer;
36  typedef SmartPointer<const Self> ConstPointer;
37 
39  itkNewMacro(Self);
40 
43 
45  typedef TPixel PixelType;
47  typedef typename ImageType::Pointer ImagePointer;
48  typedef typename ImageType::IndexType IndexType;
49  typedef typename ImageType::SizeType SizeType;
51 
53  itkSetMacro(WipeValue, PixelType);
54  itkGetMacro(WipeValue, PixelType);
55 
56 protected:
58  void PrintSelf(std::ostream& os, Indent indent) const;
60 
61  // This class, simply clears the image using value m_WipeValue.
62  virtual void ApplyUpdateToAfterImage();
63 
64 private:
65  MIDASImageUpdateClearRegionProcessor(const Self&); //purposely not implemented
66  void operator=(const Self&); //purposely not implemented
67 
68  PixelType m_WipeValue;
69 };
70 
71 }
72 
73 #ifndef ITK_MANUAL_INSTANTIATION
74 #include "itkMIDASImageUpdateClearRegionProcessor.txx"
75 #endif
76 
77 #endif
MIDASImageUpdateRegionProcessor< TPixel, VImageDimension > Superclass
Definition: itkMIDASImageUpdateClearRegionProcessor.h:34
ImageType::SizeType SizeType
Definition: niftkMakeLapUSProbeBasicModel.cxx:31
MIDASImageUpdateClearRegionProcessor Self
Definition: itkMIDASImageUpdateClearRegionProcessor.h:33
Image< TPixel, VImageDimension > ImageType
Definition: itkMIDASImageUpdateClearRegionProcessor.h:46
ImageType::RegionType RegionType
Definition: itkMIDASImageUpdateClearRegionProcessor.h:50
Definition: niftkITKAffineResampleImage.cxx:74
ImageType::IndexType IndexType
Definition: niftkMakeLapUSProbeBasicModel.cxx:32
Class to support undo/redo of a clear operation (set value to zero), within a given region...
Definition: itkMIDASImageUpdateClearRegionProcessor.h:28
ImageType::Pointer ImagePointer
Definition: itkMIDASImageUpdateClearRegionProcessor.h:47
ImageType::IndexType IndexType
Definition: itkMIDASImageUpdateClearRegionProcessor.h:48
ImageType::RegionType RegionType
Definition: niftkMakeLapUSProbeBasicModel.cxx:30
SmartPointer< Self > Pointer
Definition: itkMIDASImageUpdateClearRegionProcessor.h:35
SmartPointer< const Self > ConstPointer
Definition: itkMIDASImageUpdateClearRegionProcessor.h:36
ImageType::SizeType SizeType
Definition: itkMIDASImageUpdateClearRegionProcessor.h:49
Provides methods to do Undo/Redo within a specific Region.
Definition: itkMIDASImageUpdateRegionProcessor.h:30
virtual ~MIDASImageUpdateClearRegionProcessor()
Definition: itkMIDASImageUpdateClearRegionProcessor.h:59
TPixel PixelType
Definition: itkMIDASImageUpdateClearRegionProcessor.h:42