18#ifndef itkPointSetToListSampleAdaptor_h
19#define itkPointSetToListSampleAdaptor_h
46template <
typename TPo
intSet>
77 using typename Superclass::MeasurementType;
78 using typename Superclass::MeasurementVectorType;
79 using typename Superclass::AbsoluteFrequencyType;
80 using typename Superclass::TotalAbsoluteFrequencyType;
81 using typename Superclass::MeasurementVectorSizeType;
82 using typename Superclass::InstanceIdentifier;
151 return m_InstanceIdentifier;
158 ++m_InstanceIdentifier;
165 return (m_Iter == it.
m_Iter);
175 m_InstanceIdentifier = iid;
204 this->ConstIterator::operator=(iter);
226 Iterator iter(nonConstPointsDataContainer->Begin(), 0);
238 Iterator iter(nonConstPointsDataContainer->End(), m_PointsContainer->Size());
256 ConstIterator iter(m_PointsContainer->End(), m_PointsContainer->Size());
282#ifndef ITK_MANUAL_INSTANTIATION
283# include "itkPointSetToListSampleAdaptor.hxx"
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Base class for most ITK classes.
This class is the native implementation of the a Sample with an STL container.
InstanceIdentifier GetInstanceIdentifier() const
InstanceIdentifier m_InstanceIdentifier
PointsContainerConstIteratorType m_Iter
ConstIterator & operator++()
ConstIterator(PointsContainerConstIteratorType iter, InstanceIdentifier iid)
ConstIterator(const PointSetToListSampleAdaptor *adaptor)
AbsoluteFrequencyType GetFrequency() const
bool operator==(const ConstIterator &it) const
const MeasurementVectorType & GetMeasurementVector() const
ConstIterator(const ConstIterator &iter)
ConstIterator & operator=(const ConstIterator &iter)
ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(ConstIterator)
Iterator(const Self *adaptor)=delete
Iterator(PointsContainerConstIteratorType iter, InstanceIdentifier iid)=delete
Iterator & operator=(const Iterator &iter)
Iterator(const Iterator &iter)
ConstIterator & operator=(const ConstIterator &it)=delete
Iterator(const ConstIterator &it)=delete
Iterator(PointsContainerIteratorType iter, InstanceIdentifier iid)
This class provides ListSample interface to ITK PointSet.
void SetPointSet(const TPointSet *pointSet)
PointSetToListSampleAdaptor()
TotalAbsoluteFrequencyType GetTotalFrequency() const override
typename TPointSet::ConstPointer PointSetConstPointer
typename TPointSet::PointsContainerIterator PointsContainerIteratorType
MeasurementVectorType ValueType
void PrintSelf(std::ostream &os, Indent indent) const override
ConstIterator Begin() const
typename TPointSet::PointsContainer PointsContainer
const TPointSet * GetPointSet()
AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const override
const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier identifier) const override
typename TPointSet::PointsContainerConstIterator PointsContainerConstIteratorType
typename TPointSet::PointsContainerPointer PointsContainerPointer
InstanceIdentifier Size() const override
typename TPointSet::Pointer PointSetPointer
typename TPointSet::PointType PointType
typename TPointSet::PointsContainerConstPointer PointsContainerConstPointer
~PointSetToListSampleAdaptor() override=default
ConstIterator End() const
TPointSet::PointType MeasurementVectorType
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ImageBaseType::PointType PointType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....