#include <itkSimpleDataObjectDecorator.h>
Inheritance diagram for itk::SimpleDataObjectDecorator< T >:


SimpleDataObjectDecorator decorates an object with a DataObject API. This allows simple objects to be encapsulated into objects that can be passed as down the pipeline. This decorator is intended to be used on native types (float, int, etc.) or any objects not derived from itkObject. To decorate a subclass of itkObject, see DataObjectDecorator.
The decorator provides two methods Set() and Get() to access the decorated object (referred internally as the component).
Note that when an instance of SimpleDataObjectDecorator is created, the component is initialized with its default constructor.
SimpleDataObjectDecorator can decorate any simple data type. Two other decorators are provided for decorating pointers. DataObjectDecorator will decorate pointers to subclasses of itkObject (internally storing the pointer in a SmartPointer). AutoPointerDataObjectDecorator will decorate any other pointer and manage the memory deallocationg of the component.
Definition at line 59 of file itkSimpleDataObjectDecorator.h.
Public Types | |
| typedef T | ComponentType |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef SmartPointer< Self > | Pointer |
| typedef SimpleDataObjectDecorator | Self |
| typedef DataObject | Superclass |
Public Member Functions | |
| virtual T | Get () const |
| Get the contained object *virtual T & | Get () |
| virtual const char * | GetNameOfClass () const |
| virtual void | Set (const T &val) |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| virtual void | PrintSelf (std::ostream &os, Indent indent) const |
| SimpleDataObjectDecorator () | |
| ~SimpleDataObjectDecorator () | |
|
|||||
|
Typedef for the component type (object being decorated) Definition at line 69 of file itkSimpleDataObjectDecorator.h. |
|
|||||
|
Definition at line 66 of file itkSimpleDataObjectDecorator.h. |
|
|||||
|
Definition at line 65 of file itkSimpleDataObjectDecorator.h. |
|
|||||
|
Standard typedefs. Definition at line 63 of file itkSimpleDataObjectDecorator.h. |
|
|||||
|
Definition at line 64 of file itkSimpleDataObjectDecorator.h. |
|
|||||||||
|
|
|
|||||||||
|
|
|
||||||||||
|
Definition at line 82 of file itkSimpleDataObjectDecorator.h. |
|
||||||||||
|
Definition at line 81 of file itkSimpleDataObjectDecorator.h. |
|
|||||||||
|
Run-time type information (and related methods). |
|
|||||||||
|
Method for creation through the object factory. |
|
||||||||||||||||
|
|
|
||||||||||
|
Set the contained object |
1.4.2 written by Dimitri van Heesch,
© 1997-2000