00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkLightProcessObject.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-02-05 19:05:00 $ 00007 Version: $Revision: 1.13 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkLightProcessObject_h 00018 #define __itkLightProcessObject_h 00019 00020 #include "itkObject.h" 00021 #include "itkObjectFactory.h" 00022 00023 namespace itk 00024 { 00025 00071 class ITKCommon_EXPORT LightProcessObject : public Object 00072 { 00073 public: 00075 typedef LightProcessObject Self; 00076 typedef Object Superclass; 00077 typedef SmartPointer<Self> Pointer; 00078 typedef SmartPointer<const Self> ConstPointer; 00079 00081 itkNewMacro(Self); 00082 00084 itkTypeMacro(LightProcessObject,Object); 00085 00088 itkSetMacro(AbortGenerateData,bool); 00089 00092 itkGetConstReferenceMacro(AbortGenerateData,bool); 00093 00095 itkBooleanMacro(AbortGenerateData); 00096 00100 itkSetClampMacro(Progress,float,0.0f,1.0f); 00102 00106 itkGetConstReferenceMacro(Progress,float); 00108 00112 void UpdateProgress(float amount); 00113 00115 virtual void UpdateOutputData(); 00116 00117 protected: 00118 LightProcessObject(); 00119 ~LightProcessObject(); 00120 void PrintSelf(std::ostream& os, Indent indent) const; 00121 00123 virtual void GenerateData() {} 00124 00125 00126 private: 00127 LightProcessObject(const Self&); //purposely not implemented 00128 void operator=(const Self&); //purposely not implemented 00129 00133 bool m_AbortGenerateData; 00134 float m_Progress; 00135 }; 00136 00137 } // end namespace itk 00138 00139 #endif 00140