28 #ifndef itkDataObjectDecorator_h 29 #define itkDataObjectDecorator_h 65 template<
typename T >
87 virtual void Set(
const ComponentType *val);
90 virtual const ComponentType *
Get()
const;
109 void Graft( const Self * decorator );
116 template <typename TOther>
119 ComponentType *component =
const_cast< ComponentType *
>(
dynamic_cast< const ComponentType *
>( decorator->Get() ) );
124 this->
Set( component );
131 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
137 void operator=(
const Self &) ITK_DELETE_FUNCTION;
143 #ifndef ITK_MANUAL_INSTANTIATION 144 #include "itkDataObjectDecorator.hxx"
ComponentPointer m_Component
virtual ModifiedTimeType GetMTime() const override
unsigned long ModifiedTimeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
SmartPointer< const Self > ConstPointer
virtual void Initialize() override
virtual const ComponentType * Get() const
void operator=(const Self &) ITK_DELETE_FUNCTION
Decorates any subclass of itkObject with a DataObject API.
SmartPointer< Self > Pointer
virtual void Set(const ComponentType *val)
T::ConstPointer ComponentConstPointer
T::Pointer ComponentPointer
Control indentation during Print() invocation.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
virtual ComponentType * GetModifiable()
Base class for all data objects in ITK.
virtual void Graft(const DataObject *) override
Graft the content of one decorator onto another.