18 #ifndef __itkLabelObject_h
19 #define __itkLabelObject_h
63 template<
class TLabel,
unsigned int VImageDimension >
81 itkStaticConstMacro(ImageDimension,
unsigned int, VImageDimension);
93 static AttributeType GetAttributeFromName(
const std::string & s);
95 static std::string GetNameFromAttribute(
const AttributeType & a);
108 bool HasIndex(
const IndexType & idx)
const;
121 bool RemoveIndex(
const IndexType & idx );
131 void AddLine(
const LineType & line);
163 virtual void CopyAttributesFrom(
const Self *src);
166 void CopyAllFrom(
const Self *src);
188 m_Begin = lo->m_LineContainer.begin();
189 m_End = lo->m_LineContainer.end();
190 m_Iterator = m_Begin;
233 return !( *
this == iter );
238 m_Iterator = m_Begin;
243 return m_Iterator == m_End;
272 m_Begin = lo->m_LineContainer.begin();
273 m_End = lo->m_LineContainer.end();
302 if( m_Index[0] >= m_Iterator->GetIndex()[0] + (
OffsetValueType)m_Iterator->GetLength() )
325 return !( *
this == iter );
330 m_Iterator = m_Begin;
337 return m_Iterator == m_End;
347 while( m_Iterator != m_End && m_Iterator->GetLength() == 0 )
351 if( m_Iterator != m_End )
353 m_Index = m_Iterator->GetIndex();
365 void PrintSelf(std::ostream & os,
Indent indent)
const;
369 void operator=(
const Self &);
378 #ifndef ITK_MANUAL_INSTANTIATION
379 #include "itkLabelObject.hxx"