ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkDataObjectDecorator.h>
Public Types | |
typedef T::ConstPointer | ComponentConstPointer |
typedef T | ComponentType |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef DataObjectDecorator | Self |
typedef DataObject | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const T * | Get () const |
virtual const char * | GetNameOfClass () const |
virtual void | Set (const T *val) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
DataObjectDecorator () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
~DataObjectDecorator () | |
Private Member Functions | |
DataObjectDecorator (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
ComponentConstPointer | m_Component |
Decorates any subclass of itkObject with a DataObject API.
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 66 of file itkDataObjectDecorator.h.
typedef T::ConstPointer itk::DataObjectDecorator< T >::ComponentConstPointer |
Definition at line 77 of file itkDataObjectDecorator.h.
typedef T itk::DataObjectDecorator< T >::ComponentType |
Typedef for the component type (object being decorated)
Definition at line 76 of file itkDataObjectDecorator.h.
typedef SmartPointer< const Self > itk::DataObjectDecorator< T >::ConstPointer |
Reimplemented from itk::DataObject.
Definition at line 73 of file itkDataObjectDecorator.h.
typedef SmartPointer< Self > itk::DataObjectDecorator< T >::Pointer |
Reimplemented from itk::DataObject.
Definition at line 72 of file itkDataObjectDecorator.h.
typedef DataObjectDecorator itk::DataObjectDecorator< T >::Self |
Standard typedefs.
Reimplemented from itk::DataObject.
Definition at line 70 of file itkDataObjectDecorator.h.
typedef DataObject itk::DataObjectDecorator< T >::Superclass |
Reimplemented from itk::DataObject.
Definition at line 71 of file itkDataObjectDecorator.h.
itk::DataObjectDecorator< T >::DataObjectDecorator | ( | ) | [protected] |
itk::DataObjectDecorator< T >::~DataObjectDecorator | ( | ) | [protected] |
itk::DataObjectDecorator< T >::DataObjectDecorator | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::DataObjectDecorator< T >::CreateAnother | ( | void | ) | const [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.
virtual const T* itk::DataObjectDecorator< T >::Get | ( | ) | const [virtual] |
Get the contained object
virtual const char* itk::DataObjectDecorator< T >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::DataObject.
static Pointer itk::DataObjectDecorator< T >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::Object.
void itk::DataObjectDecorator< T >::operator= | ( | const Self & | ) | [private] |
Reimplemented from itk::DataObject.
virtual void itk::DataObjectDecorator< T >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Method for grafting the content of one data object into another one. This method is intended to be overloaded by derived classes. Each one of them should use dynamic_casting in order to verify that the grafted object is actually of the same type as the class on which the Graft() method was invoked.
Reimplemented from itk::DataObject.
virtual void itk::DataObjectDecorator< T >::Set | ( | const T * | val | ) | [virtual] |
Set the contained object
ComponentConstPointer itk::DataObjectDecorator< T >::m_Component [private] |
Definition at line 101 of file itkDataObjectDecorator.h.