int
main(int, char *[])
{
using PixelType = unsigned short;
unsigned int dataId = 0;
PixelType value = 79;
pointSet->SetPointData(dataId++, value);
const bool found = pointSet->GetPointData(dataId, &value);
if (found)
{
std::cout << "Pixel value = " << value << std::endl;
}
using PointDataContainer = PointSetType::PointDataContainer;
unsigned int pointId = 0;
const PixelType value0 = 34;
const PixelType value1 = 67;
pointData->InsertElement(pointId++, value0);
pointData->InsertElement(pointId++, value1);
pointSet->SetPointData(pointData);
using PointDataIterator = PointDataContainer::Iterator;
PointDataIterator pointDataIterator = pointData2->Begin();
const PointDataIterator end = pointData2->End();
while (pointDataIterator != end)
{
const PixelType p = pointDataIterator.Value();
std::cout << p << std::endl;
++pointDataIterator;
}
return EXIT_SUCCESS;
}