18 #ifndef itkPointSetToListSampleAdaptor_h 19 #define itkPointSetToListSampleAdaptor_h 45 template<
typename TPo
intSet >
47 public ListSample< typename TPointSet::PointType >
91 InstanceIdentifier
Size() const ITK_OVERRIDE;
98 AbsoluteFrequencyType
GetFrequency(InstanceIdentifier
id) const ITK_OVERRIDE;
114 *
this = adaptor->
Begin();
137 return (
const MeasurementVectorType & )m_Iter.Value();
142 return m_InstanceIdentifier;
148 ++m_InstanceIdentifier;
154 return ( m_Iter != it.
m_Iter );
159 return ( m_Iter == it.
m_Iter );
165 PointsContainerConstIteratorType iter,
166 InstanceIdentifier iid)
169 m_InstanceIdentifier = iid;
172 ConstIterator() ITK_DELETE_FUNCTION;
204 Iterator(
const Self *adaptor) ITK_DELETE_FUNCTION;
205 Iterator(PointsContainerConstIteratorType iter, InstanceIdentifier iid) ITK_DELETE_FUNCTION;
210 PointsContainerIteratorType iter,
220 PointsContainerPointer nonConstPointsDataContainer =
222 Iterator iter(nonConstPointsDataContainer->Begin(), 0);
231 PointsContainerPointer nonConstPointsDataContainer =
263 void operator=(
const Self &) ITK_DELETE_FUNCTION;
278 #ifndef ITK_MANUAL_INSTANTIATION 279 #include "itkPointSetToListSampleAdaptor.hxx" ListSample< typename TPointSet::PointType > Superclass
bool operator!=(const ConstIterator &it)
TPointSet::PointsContainerConstIterator PointsContainerConstIteratorType
Superclass::MeasurementType MeasurementType
PointSetToListSampleAdaptor Self
ConstIterator & operator=(const ConstIterator &iter)
ConstIterator End() const
Superclass::MeasurementVectorType MeasurementVectorType
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
Iterator(const Iterator &iter)
TPointSet::PointsContainerPointer PointsContainerPointer
TPointSet::PointsContainer PointsContainer
SmartPointer< Self > Pointer
TotalAbsoluteFrequencyType GetTotalFrequency() const override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
PointsContainerConstPointer m_PointsContainer
Iterator(PointsContainerIteratorType iter, InstanceIdentifier iid)
InstanceIdentifier Size() const override
Superclass::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
ConstIterator Begin() const
MeasurementVectorType ValueType
PointsContainerConstIteratorType m_Iter
TPointSet::PointType PointType
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
virtual ~PointSetToListSampleAdaptor()
AbsoluteFrequencyType GetFrequency() const
TPointSet::PointsContainerConstPointer PointsContainerConstPointer
Superclass::InstanceIdentifier InstanceIdentifier
Iterator() ITK_DELETE_FUNCTION
TPointSet::PointsContainerIterator PointsContainerIteratorType
ConstIterator(PointsContainerConstIteratorType iter, InstanceIdentifier iid)
void SetPointSet(const TPointSet *pointSet)
TPointSet::Pointer PointSetPointer
friend class PointSetToListSampleAdaptor
This class provides ListSample interface to ITK PointSet.
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
TPointSet::ConstPointer PointSetConstPointer
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const override
const MeasurementVectorType & GetMeasurementVector() const
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
ConstIterator(const PointSetToListSampleAdaptor *adaptor)
InstanceIdentifier GetInstanceIdentifier() const
InstanceIdentifier m_InstanceIdentifier
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
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
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const override
const TPointSet * GetPointSet()
Superclass::MeasurementVectorType MeasurementVectorType
Superclass::MeasurementType MeasurementType
Superclass::AbsoluteFrequencyType AbsoluteFrequencyType
bool operator==(const ConstIterator &it)
Superclass::InstanceIdentifier InstanceIdentifier
ConstIterator & operator++()
ConstIterator(const ConstIterator &iter)