int main()
{
PointSetType::Pointer pointSet = PointSetType::New();
point[0] = 1.0;
point[1] = 2.0;
point[2] = 3.0;
pointSet->SetPoint( 0UL, point);
point[0] = 2.0;
point[1] = 4.0;
point[2] = 6.0;
pointSet->SetPoint( 1UL, point );
PointSetType > SampleType;
SampleType::Pointer sample = SampleType::New();
sample->SetPointSet( pointSet );
SampleType::Iterator iter = sample->Begin();
while( iter != sample->End() )
{
std::cout << "id = " << iter.GetInstanceIdentifier()
<< "\t measurement vector = "
<< iter.GetMeasurementVector()
<< "\t frequency = "
<< iter.GetFrequency()
<< std::endl;
++iter;
}
return EXIT_SUCCESS;
}