18 #ifndef itkAttributeLabelObject_h
19 #define itkAttributeLabelObject_h
30 template<
typename TLabelObject >
39 return labelObject->GetAttribute();
44 labelObject->SetAttribute( value );
69 template <
typename TLabel,
unsigned int VImageDimension,
typename TAttributeValue >
116 template<
typename TSourceLabelObject >
119 itkAssertOrThrowMacro ( ( src != ITK_NULLPTR ),
"Null Pointer" );
120 Superclass::template CopyAttributesFrom<TSourceLabelObject>( src );
125 template<
typename TSourceLabelObject >
128 itkAssertOrThrowMacro ( ( src != ITK_NULLPTR ),
"Null Pointer" );
129 this->
template CopyLinesFrom<TSourceLabelObject>( src );
130 this->
template CopyAttributesFrom<TSourceLabelObject>( src );
144 os << indent <<
"Attribute: " <<
m_Attribute << std::endl;
149 void operator=(const
Self&) ITK_DELETE_FUNCTION;
void operator()(LabelObjectType *labelObject, AttributeValueType value)
Superclass::LineType LineType
void CopyAttributesFrom(const TSourceLabelObject *src)
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
Superclass::IndexType IndexType
Superclass::LabelObjectType LabelObjectType
A LabelObject with a generic attribute.
LabelObject< TLabel, VImageDimension > Superclass
Implements a weak reference to an object.
SmartPointer< const Self > ConstPointer
LabelMap< Self > LabelMapType
void SetAttribute(const AttributeValueType &v)
LineType::LengthType LengthType
void PrintSelf(std::ostream &os, Indent indent) const override
static const unsigned int ImageDimension
LabelObjectType::AttributeValueType AttributeValueType
const AttributeValueType & GetAttribute() const
virtual void PrintSelf(std::ostream &os, Indent indent) const override
const AttributeValueType operator()(const LabelObjectType *labelObject)
Superclass::LengthType LengthType
WeakPointer< const Self > ConstWeakPointer
AttributeValueType m_Attribute
The base class for the representation of an labeled binary object in an image.
Control indentation during Print() invocation.
AttributeValueType GetAttribute()
Templated n-dimensional image to store labeled objects.
void CopyAllFrom(const TSourceLabelObject *src)
TAttributeValue AttributeValueType
AttributeLabelObject Self
TLabelObject LabelObjectType