#include <itkDataObjectDecorator.h>
Inheritance diagram for itk::DataObjectDecorator< T >:
Public Types | |
typedef DataObjectDecorator | Self |
typedef DataObject | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef T | ComponentType |
typedef T::Pointer | ComponentPointer |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
virtual void | Set (T *val) |
virtual T * | Get () |
virtual const T * | Get () const |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
DataObjectDecorator () | |
~DataObjectDecorator () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
DataObjectDecorator decorates an instance of a subclass of itkObject with a DataObject API. This allows any itkObject to be encapsulated into a DataObject that can be passed down the pipeline. To decorate simple types (float, int, std::vector) see SimpleDataObjectDecorator.
The decorator provides two methods Set() and Get() to access the decorated object (referred internally as the component).
Note that when an instance of DataObjectDecorator is created, the component is initialized with its default constructor (in this case a null pointer).
DataObjectDecorator can decorate any subclass of itkObject. Two other decorators are provided. SimpleDataObjectDecorator can encapsulate simple types (float, int, std::vector). AutoPointerDataObjectDecorator will decorate any pointer type (for objects other than subclasses of itkObject) and manage the memory deallocationg of the component.
Definition at line 58 of file itkDataObjectDecorator.h.
|
Definition at line 69 of file itkDataObjectDecorator.h. |
|
Typedef for the component type (object being decorated) Definition at line 68 of file itkDataObjectDecorator.h. |
|
Reimplemented from itk::DataObject. Definition at line 65 of file itkDataObjectDecorator.h. |
|
Reimplemented from itk::DataObject. Definition at line 64 of file itkDataObjectDecorator.h. |
|
Standard typedefs. Reimplemented from itk::DataObject. Definition at line 62 of file itkDataObjectDecorator.h. |
|
Reimplemented from itk::DataObject. Definition at line 63 of file itkDataObjectDecorator.h. |
|
|
|
|
|
Get the contained object Definition at line 82 of file itkDataObjectDecorator.h. |
|
Get the contained object Definition at line 81 of file itkDataObjectDecorator.h. |
|
Run-time type information (and related methods). Reimplemented from itk::DataObject. |
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
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::DataObject. |
|
Set the contained object |