NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkMIDASRetainMarksNoThresholdingProcessor.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 itkMIDASRetainMarksNoThresholdingProcessor_h
16 #define itkMIDASRetainMarksNoThresholdingProcessor_h
17 
18 #include <itkObject.h>
20 #include <itkMIDASHelper.h>
22 
23 namespace itk
24 {
25 
31 template <class TPixel, unsigned int VImageDimension>
32 class ITK_EXPORT MIDASRetainMarksNoThresholdingProcessor : public Object {
33 
34 public:
35 
38  typedef Object Superclass;
39  typedef SmartPointer<Self> Pointer;
40  typedef SmartPointer<const Self> ConstPointer;
41 
43  itkNewMacro(Self);
44 
47 
49  typedef TPixel PixelType;
56 
58  void Undo() { m_Processor->Undo(); }
59  void Redo() { m_Processor->Redo(); }
60 
62  void SetSourceImage(ImageType* image) { m_Processor->SetSourceImage(image); this->Modified(); }
63  ImageType* GetSourceImage() const { return m_Processor->GetSourceImage(); }
64 
66  void SetDestinationImage(ImageType* image) { m_Processor->SetDestinationImage(image); this->Modified(); }
67  ImageType* GetDestinationImage() const { return m_Processor->GetDestinationImage(); }
68 
70  virtual void SetSlices(itk::Orientation orientation, int sourceSliceNumber, int targetSliceNumber);
71 
73  virtual void SetDebug(bool b) { itk::Object::SetDebug(b); m_Processor->SetDebug(b); m_Calculator->SetDebug(b); }
74  virtual void DebugOn() { this->SetDebug(true); }
75  virtual void DebugOff() { this->SetDebug(false); }
76 
77 protected:
78 
80  void PrintSelf(std::ostream& os, Indent indent) const;
82 
83  ProcessorPointer m_Processor;
84  CalculatorPointer m_Calculator;
85 
86 private:
87  MIDASRetainMarksNoThresholdingProcessor(const Self&); //purposely not implemented
88  void operator=(const Self&); //purposely not implemented
89 };
90 
91 }
92 
93 #ifndef ITK_MANUAL_INSTANTIATION
94 #include "itkMIDASRetainMarksNoThresholdingProcessor.txx"
95 #endif
96 
97 #endif
Object Superclass
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:38
Class to calculate regions within an image according to MIDAS specifications, where for example we ne...
Definition: itkMIDASRegionOfInterestCalculator.h:35
virtual void SetDebug(bool b)
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:73
itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension > CalculatorType
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:53
void Redo()
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:59
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
Orientation
Definition: itkMIDASHelper.h:35
Definition: niftkITKAffineResampleImage.cxx:74
Class to support undo/redo of a copy operation, within a given region.
Definition: itkMIDASImageUpdateCopyRegionProcessor.h:29
GLdouble GLdouble GLdouble b
Definition: glew.h:7885
Class to support the MIDAS Retain marks operation, specifically when thresholding is off...
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:32
Image< TPixel, VImageDimension > ImageType
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:50
SmartPointer< Self > Pointer
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:39
TPixel PixelType
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:46
void SetDestinationImage(ImageType *image)
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:66
ImageType::RegionType RegionType
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:55
virtual ~MIDASRetainMarksNoThresholdingProcessor()
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:81
ImageType * GetDestinationImage() const
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:67
ImageType::RegionType RegionType
Definition: niftkMakeLapUSProbeBasicModel.cxx:30
virtual void DebugOff()
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:75
ProcessorType::Pointer ProcessorPointer
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:52
void SetSourceImage(ImageType *image)
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:62
SmartPointer< Self > Pointer
Definition: itkMIDASRegionOfInterestCalculator.h:42
Provides useful utility functions that could be used in multiple ITK filters.
void Undo()
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:58
MIDASRetainMarksNoThresholdingProcessor Self
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:37
SmartPointer< Self > Pointer
Definition: itkMIDASImageUpdateCopyRegionProcessor.h:36
ProcessorPointer m_Processor
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:83
itk::MIDASImageUpdateCopyRegionProcessor< TPixel, VImageDimension > ProcessorType
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:51
CalculatorPointer m_Calculator
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:84
CalculatorType::Pointer CalculatorPointer
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:54
SmartPointer< const Self > ConstPointer
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:40
virtual void DebugOn()
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:74
ImageType * GetSourceImage() const
Definition: itkMIDASRetainMarksNoThresholdingProcessor.h:63