ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkLightProcessObject.h>
LightProcessObject is the base class for all process objects (source, filters, mappers) in the Insight data processing pipeline.
LightProcessObject is an abstract object that specifies behavior and interface of visualization network process objects (sources, filters, mappers). Source objects are creators of visualization data; filters input, process, and output visualization data; and mappers transform data into another form (like rendering primitives or write data to a file).
A major role of LightProcessObject is to define the inputs and outputs of a filter. More than one input and/or output may exist for a given filter. Some classes (e.g., source objects or mapper objects) will not use inputs (the source) or outputs (mappers). In this case, the inputs or outputs is just ignored.
LightProcessObject invokes the following events: , Command::StartEvent, Command::EndEvent These are convenience events you can use for any purpose (e.g., debugging info, highlighting/notifying user interface, etc.) See Command and LightObject for information on using AddObserver.
Another event Command::ProgressEvent can be observed. Some filters invoke this event periodically during their execution (with the progress, parameter, the fraction of work done). The use is similar to that of StartEvent and EndEvent. Filters may also check their AbortGenerateData flag to determine whether to prematurally end their execution.
An important feature of subclasses of LightProcessObject is that it is possible to control the memory-management model (i.e., retain output versus delete output data). If enabled the ReleaseDataFlag enables the deletion of the output data once the downstream process object finishes processing the data (please see text).
Subclasses of LightProcessObject may override 4 of the methods of this class to control how a given filter may interact with the pipeline (dataflow). These methods are: GenerateOutputInformation(), EnlargeOutputRequestedRegion(), GenerateInputRequestedRegion(), and GenerateOutputRequestedRegion(). By overriding these methods, a filter can deviate from the base assumptions of the pipeline execution model.
Definition at line 72 of file itkLightProcessObject.h.
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightProcessObject | Self |
typedef Object | Superclass |
Public Types inherited from itk::Object | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef Object | Self |
typedef LightObject | Superclass |
Public Types inherited from itk::LightObject | |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef LightObject | Self |
Public Member Functions | |
virtual void | AbortGenerateDataOff () |
virtual void | AbortGenerateDataOn () |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const bool & | GetAbortGenerateData () |
virtual const char * | GetNameOfClass () const |
virtual void | SetAbortGenerateData (bool _arg) |
virtual void | UpdateOutputData () |
void | UpdateProgress (float amount) |
virtual void | SetProgress (float _arg) |
virtual const float & | GetProgress () |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
virtual void | Register () const |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const |
Public Member Functions inherited from itk::LightObject | |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
itkCloneMacro (Self) | |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
virtual void | GenerateData () |
LightProcessObject () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
~LightProcessObject () | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &time) |
virtual | ~Object () |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Member Functions | |
LightProcessObject (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
bool | m_AbortGenerateData |
float | m_Progress |
Additional Inherited Members | |
Protected Types inherited from itk::LightObject | |
typedef int | InternalReferenceCountType |
Protected Attributes inherited from itk::LightObject | |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
typedef SmartPointer< const Self > itk::LightProcessObject::ConstPointer |
Definition at line 79 of file itkLightProcessObject.h.
typedef SmartPointer< Self > itk::LightProcessObject::Pointer |
Definition at line 78 of file itkLightProcessObject.h.
Standard class typedefs.
Definition at line 76 of file itkLightProcessObject.h.
Definition at line 77 of file itkLightProcessObject.h.
|
protected |
|
protected |
|
private |
|
virtual |
|
virtual |
Turn on and off the AbortGenerateData flag.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
Reimplemented in itk::ImageKmeansModelEstimator< TInputImage, TMembershipFunction >, itk::Bruker2DSEQImageIO, itk::PolygonGroupSpatialObjectXMLFileWriter, itk::GDCMImageIO, itk::HDF5ImageIO, itk::ImageGaussianModelEstimator< TInputImage, TMembershipFunction, TTrainingImage >, itk::CSVArray2DFileReader< TData >, itk::ImageClassifierBase< TInputImage, TClassifiedImage >, itk::CSVNumericObjectFileWriter< TValueType, NRows, NColumns >, itk::StimulateImageIO, itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, itk::IPLCommonImageIO, itk::MRCImageIO, itk::LevelSetNeighborhoodExtractor< TLevelSet >, itk::GE4ImageIO, itk::VTKImageIO, itk::GE5ImageIO, itk::VoxBoCUBImageIO, itk::BioRadImageIO, itk::SiemensVisionImageIO, itk::HDF5TransformIO, itk::Statistics::ErrorBackPropagationLearningFunctionBase< LayerType, TTargetVector >, itk::VTKPolyDataMeshIO, itk::JPEG2000ImageIO, itk::GEAdwImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::GiftiMeshIO, itk::Statistics::QuickPropLearningRule< LayerType, TTargetVector >, itk::LSMImageIO, itk::Statistics::ErrorBackPropagationLearningWithMomentum< LayerType, TTargetVector >, itk::NiftiImageIO, itk::PolygonGroupSpatialObjectXMLFileReader, itk::TIFFImageIO, itk::TransformFileWriter, itk::Statistics::RBFBackPropagationLearningFunction< LayerType, TTargetVector >, itk::FreeSurferBinaryMeshIO, itk::Statistics::RBFLayer< TMeasurementVector, TTargetVector >, itk::Statistics::TrainingFunctionBase< TSample, TTargetVector, ScalarType >, itk::BYUMeshIO, itk::MetaImageIO, itk::TransformFileReader, itk::Statistics::BatchSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::OpenCVVideoIO, itk::BMPImageIO, itk::GiplImageIO, itk::Statistics::BackPropagationLayer< TMeasurementVector, TTargetVector >, itk::Statistics::IterativeSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::FreeSurferAsciiMeshIO, itk::OFFMeshIO, itk::FileListVideoIO, itk::OBJMeshIO, itk::NrrdImageIO, itk::Statistics::CompletelyConnectedWeightSet< TMeasurementVector, TTargetVector >, itk::JPEGImageIO, itk::PNGImageIO, itk::MetaArrayWriter, itk::MetaArrayReader, and itk::MatlabTransformIO.
|
inlineprotectedvirtual |
This method causes the filter to generate its output.
Reimplemented in itk::ImageKmeansModelEstimator< TInputImage, TMembershipFunction >, itk::ClassifierBase< TDataContainer >, itk::ClassifierBase< TInputImage >, itk::LevelSetNeighborhoodExtractor< TLevelSet >, itk::ImageClassifierBase< TInputImage, TClassifiedImage >, itk::ImageModelEstimatorBase< TInputImage, TMembershipFunction >, and itk::ImageGaussianModelEstimator< TInputImage, TMembershipFunction, TTrainingImage >.
Definition at line 124 of file itkLightProcessObject.h.
|
virtual |
Get the AbortGenerateData flag for the process object. Process objects may handle premature termination of execution in different ways.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Object.
Reimplemented in itk::ImageKmeansModelEstimator< TInputImage, TMembershipFunction >, itk::Bruker2DSEQImageIO, itk::PolygonGroupSpatialObjectXMLFileWriter, itk::GDCMImageIO, itk::HDF5ImageIO, itk::ClassifierBase< TDataContainer >, itk::ClassifierBase< TInputImage >, itk::MeshIOBase, itk::ImageGaussianModelEstimator< TInputImage, TMembershipFunction, TTrainingImage >, itk::CSVArray2DFileReader< TData >, itk::ImageClassifierBase< TInputImage, TClassifiedImage >, itk::ImageIOBase, itk::ImageModelEstimatorBase< TInputImage, TMembershipFunction >, itk::CSVNumericObjectFileWriter< TValueType, NRows, NColumns >, itk::StimulateImageIO, itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, itk::IPLCommonImageIO, itk::MRCImageIO, itk::LevelSetNeighborhoodExtractor< TLevelSet >, itk::CSVFileReaderBase, itk::GE4ImageIO, itk::VideoIOBase, itk::VTKImageIO, itk::GE5ImageIO, itk::VoxBoCUBImageIO, itk::BioRadImageIO, itk::SiemensVisionImageIO, itk::VTKPolyDataMeshIO, itk::JPEG2000ImageIO, itk::StreamingImageIOBase, itk::GEAdwImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::GiftiMeshIO, itk::LSMImageIO, itk::HDF5TransformIO, itk::NiftiImageIO, itk::Statistics::ErrorBackPropagationLearningFunctionBase< LayerType, TTargetVector >, itk::TIFFImageIO, itk::TransformFileWriter, itk::Statistics::QuickPropLearningRule< LayerType, TTargetVector >, itk::FreeSurferBinaryMeshIO, itk::TransformFileReader, itk::Statistics::ErrorBackPropagationLearningWithMomentum< LayerType, TTargetVector >, itk::BYUMeshIO, itk::MetaImageIO, itk::OpenCVVideoIO, itk::BMPImageIO, itk::GiplImageIO, itk::PolygonGroupSpatialObjectXMLFileReader, itk::FreeSurferAsciiMeshIO, itk::OFFMeshIO, itk::FileListVideoIO, itk::TransformIOBase, itk::Statistics::LearningFunctionBase< LayerType, TTargetVector >, itk::OBJMeshIO, itk::Statistics::LearningFunctionBase< LayerType::LayerInterfaceType, TTargetVector >, itk::NrrdImageIO, itk::Statistics::RBFLayer< TMeasurementVector, TTargetVector >, itk::Statistics::WeightSetBase< TMeasurementVector, TTargetVector >, itk::Statistics::LayerBase< TMeasurementVector, TTargetVector >, itk::Statistics::RBFBackPropagationLearningFunction< LayerType, TTargetVector >, itk::JPEGImageIO, itk::PNGImageIO, itk::Statistics::BackPropagationLayer< TMeasurementVector, TTargetVector >, itk::Statistics::TrainingFunctionBase< TSample, TTargetVector, ScalarType >, itk::Statistics::BatchSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::MetaArrayWriter, itk::Statistics::CompletelyConnectedWeightSet< TMeasurementVector, TTargetVector >, itk::Statistics::IterativeSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::MetaArrayReader, and itk::MatlabTransformIO.
|
virtual |
Get the execution progress of a process object. The progress is a floating number between (0,1), 0 meaning no progress; 1 meaning the filter has completed execution.
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::Object.
Reimplemented in itk::ImageIOBase, itk::MeshIOBase, itk::GDCMImageIO, itk::MetaArrayReader, itk::ImageKmeansModelEstimator< TInputImage, TMembershipFunction >, itk::Bruker2DSEQImageIO, itk::OFFMeshIO, itk::CSVFileReaderBase, itk::FreeSurferBinaryMeshIO, itk::MetaArrayWriter, itk::MetaImageIO, itk::FreeSurferAsciiMeshIO, itk::OBJMeshIO, itk::ClassifierBase< TDataContainer >, itk::ClassifierBase< TInputImage >, itk::Statistics::LayerBase< TMeasurementVector, TTargetVector >, itk::ImageClassifierBase< TInputImage, TClassifiedImage >, itk::BYUMeshIO, itk::LevelSetNeighborhoodExtractor< TLevelSet >, itk::RawImageIO< TPixel, VImageDimension >, itk::HDF5ImageIO, itk::ImageModelEstimatorBase< TInputImage, TMembershipFunction >, itk::FileListVideoIO, itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, itk::OpenCVVideoIO, itk::TIFFImageIO, itk::ImageGaussianModelEstimator< TInputImage, TMembershipFunction, TTrainingImage >, itk::Statistics::WeightSetBase< TMeasurementVector, TTargetVector >, itk::Statistics::RBFLayer< TMeasurementVector, TTargetVector >, itk::IPLCommonImageIO, itk::GiftiMeshIO, itk::CSVArray2DFileReader< TData >, itk::StimulateImageIO, itk::VideoIOBase, itk::CSVNumericObjectFileWriter< TValueType, NRows, NColumns >, itk::JPEG2000ImageIO, itk::VTKPolyDataMeshIO, itk::MRCImageIO, itk::NiftiImageIO, itk::VTKImageIO, itk::Statistics::TrainingFunctionBase< TSample, TTargetVector, ScalarType >, itk::Statistics::BackPropagationLayer< TMeasurementVector, TTargetVector >, itk::TransformIOBase, itk::BioRadImageIO, itk::VoxBoCUBImageIO, itk::JPEGImageIO, itk::StreamingImageIOBase, itk::LSMImageIO, itk::TransformFileWriter, itk::PNGImageIO, itk::NrrdImageIO, itk::Statistics::QuickPropLearningRule< LayerType, TTargetVector >, itk::BMPImageIO, itk::GiplImageIO, itk::TransformFileReader, itk::Statistics::RBFBackPropagationLearningFunction< LayerType, TTargetVector >, itk::XMLReaderBase, itk::Statistics::ErrorBackPropagationLearningFunctionBase< LayerType, TTargetVector >, itk::Statistics::ErrorBackPropagationLearningWithMomentum< LayerType, TTargetVector >, itk::Statistics::BatchSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::Statistics::IterativeSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::Statistics::LearningFunctionBase< LayerType, TTargetVector >, itk::Statistics::LearningFunctionBase< LayerType::LayerInterfaceType, TTargetVector >, and itk::Statistics::CompletelyConnectedWeightSet< TMeasurementVector, TTargetVector >.
Referenced by itk::Statistics::LearningFunctionBase< LayerType::LayerInterfaceType, TTargetVector >::PrintSelf().
|
virtual |
Set the AbortGenerateData flag for the process object. Process objects may handle premature termination of execution in different ways.
|
virtual |
Set the execution progress of a process object. The progress is a floating number between (0,1), 0 meaning no progress; 1 meaning the filter has completed execution.
|
virtual |
Actually generate new output.
void itk::LightProcessObject::UpdateProgress | ( | float | amount | ) |
Update the progress of the process object. If a ProgressMethod exists, executes it. Then set the Progress ivar to amount. The parameter amount should range between (0,1).
|
private |
These support the progress method and aborting filter execution.
Definition at line 133 of file itkLightProcessObject.h.
|
private |
Definition at line 134 of file itkLightProcessObject.h.