18 #ifndef __itkAttributeLabelObject_h
19 #define __itkAttributeLabelObject_h
30 template<
class TLabelObject >
39 return labelObject->GetAttribute();
44 labelObject->SetAttribute( value );
69 template <
class TLabel,
unsigned int VImageDimension,
class TAttributeValue >
89 itkStaticConstMacro(ImageDimension,
unsigned int, VImageDimension);
119 Superclass::CopyAttributesFrom( lo );
122 const Self * src =
dynamic_cast<const Self *
>( lo );
127 m_Attribute = src->m_Attribute;
137 void PrintSelf(std::ostream& os,
Indent indent)
const
139 Superclass::PrintSelf( os, indent );
141 os << indent <<
"Attribute: " << m_Attribute << std::endl;
146 void operator=(
const Self&);