18 #ifndef itkAttributeLabelObject_h
19 #define itkAttributeLabelObject_h
31 template <
typename TLabelObject>
41 return labelObject->GetAttribute();
47 labelObject->SetAttribute(value);
72 template <
typename TLabel,
unsigned int VImageDimension,
typename TAttributeValue>
94 static constexpr
unsigned int ImageDimension = VImageDimension;
112 const AttributeValueType &
124 template <
typename TSourceLabelObject>
128 itkAssertOrThrowMacro((src !=
nullptr),
"Null Pointer");
129 Superclass::template CopyAttributesFrom<TSourceLabelObject>(src);
131 m_Attribute = src->GetAttribute();
134 template <
typename TSourceLabelObject>
138 itkAssertOrThrowMacro((src !=
nullptr),
"Null Pointer");
139 this->
template CopyLinesFrom<TSourceLabelObject>(src);
140 this->
template CopyAttributesFrom<TSourceLabelObject>(src);
150 Superclass::PrintSelf(os, indent);
152 os << indent <<
"Attribute: " << m_Attribute << std::endl;