ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkLightProcessObject.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkLightProcessObject_h
00019 #define __itkLightProcessObject_h
00020 
00021 #include "itkObject.h"
00022 #include "itkObjectFactory.h"
00023 
00024 namespace itk
00025 {
00072 class ITKCommon_EXPORT LightProcessObject:public Object
00073 {
00074 public:
00076   typedef LightProcessObject         Self;
00077   typedef Object                     Superclass;
00078   typedef SmartPointer< Self >       Pointer;
00079   typedef SmartPointer< const Self > ConstPointer;
00080 
00082   itkNewMacro(Self);
00083 
00085   itkTypeMacro(LightProcessObject, Object);
00086 
00089   itkSetMacro(AbortGenerateData, bool);
00090 
00093   itkGetConstReferenceMacro(AbortGenerateData, bool);
00094 
00096   itkBooleanMacro(AbortGenerateData);
00097 
00101   itkSetClampMacro(Progress, float, 0.0f, 1.0f);
00103 
00107   itkGetConstReferenceMacro(Progress, float);
00109 
00113   void UpdateProgress(float amount);
00114 
00116   virtual void UpdateOutputData();
00117 
00118 protected:
00119   LightProcessObject();
00120   ~LightProcessObject();
00121   void PrintSelf(std::ostream & os, Indent indent) const;
00122 
00124   virtual void GenerateData() {}
00125 private:
00126   LightProcessObject(const Self &); //purposely not implemented
00127   void operator=(const Self &);     //purposely not implemented
00129 
00133   bool  m_AbortGenerateData;
00134   float m_Progress;
00135 };
00136 } // end namespace itk
00137 
00138 #endif
00139