18 #ifndef itkPointSetToListSampleAdaptor_h
19 #define itkPointSetToListSampleAdaptor_h
45 template<
typename TPo
intSet >
47 public ListSample< typename TPointSet::PointType >
87 void SetPointSet(
const TPointSet *pointSet);
90 const TPointSet * GetPointSet();
116 *
this = adaptor->
Begin();
144 return m_InstanceIdentifier;
150 ++m_InstanceIdentifier;
156 return ( m_Iter != it.
m_Iter );
161 return ( m_Iter == it.
m_Iter );
171 m_InstanceIdentifier = iid;
197 this->ConstIterator::operator=(iter);
223 Iterator iter(nonConstPointsDataContainer->Begin(), 0);
235 Iterator iter( nonConstPointsDataContainer->End(), m_PointsContainer->Size() );
251 ConstIterator iter( m_PointsContainer->End(), m_PointsContainer->Size() );
260 void PrintSelf(std::ostream & os,
Indent indent)
const override;
276 #ifndef ITK_MANUAL_INSTANTIATION
277 #include "itkPointSetToListSampleAdaptor.hxx"
bool operator!=(const ConstIterator &it)
typename TPointSet::PointType PointType
ConstIterator & operator=(const ConstIterator &iter)
ConstIterator End() const
typename TPointSet::PointsContainerIterator PointsContainerIteratorType
typename TPointSet::PointsContainerConstPointer PointsContainerConstPointer
Iterator(const Iterator &iter)
MeasurementVectorType ValueType
PointsContainerConstPointer m_PointsContainer
Iterator(PointsContainerIteratorType iter, InstanceIdentifier iid)
ConstIterator Begin() const
PointsContainerConstIteratorType m_Iter
AbsoluteFrequencyType GetFrequency() const
typename TPointSet::Pointer PointSetPointer
typename Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
typename Superclass::MeasurementType MeasurementType
Represent a n-dimensional size (bounds) of a n-dimensional image.
ConstIterator(PointsContainerConstIteratorType iter, InstanceIdentifier iid)
typename Superclass::MeasurementVectorType MeasurementVectorType
This class provides ListSample interface to ITK PointSet.
const MeasurementVectorType & GetMeasurementVector() const
typename Superclass::InstanceIdentifier InstanceIdentifier
ConstIterator(const PointSetToListSampleAdaptor *adaptor)
InstanceIdentifier GetInstanceIdentifier() const
InstanceIdentifier m_InstanceIdentifier
This class is the native implementation of the a Sample with an STL container.
Control indentation during Print() invocation.
Iterator & operator=(const Iterator &iter)
PointSetConstPointer m_PointSet
ImageBaseType::PointType PointType
typename TPointSet::PointsContainerConstIterator PointsContainerConstIteratorType
typename TPointSet::PointsContainerPointer PointsContainerPointer
Base class for most ITK classes.
typename TPointSet::ConstPointer PointSetConstPointer
typename TPointSet::PointsContainer PointsContainer
bool operator==(const ConstIterator &it)
typename Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
Base class for all data objects in ITK.
ConstIterator & operator++()
ConstIterator(const ConstIterator &iter)
typename Superclass::MeasurementVectorSizeType MeasurementVectorSizeType