int
main(int, char *[])
{
using LandmarkPointType = LandmarkType::LandmarkPointType;
landmark->GetProperty().SetName("Landmark1");
landmark->SetId(1);
LandmarkType::LandmarkPointListType list;
for (unsigned int i = 0; i < 5; ++i)
{
LandmarkPointType p;
pnt[0] = i;
pnt[1] = i + 1;
pnt[2] = i + 2;
p.SetPositionInObjectSpace(pnt);
p.SetColor(1, 0, 0, 1);
list.push_back(p);
}
landmark->SetPoints(list);
landmark->Update();
const size_t nPoints = landmark->GetPoints().
size();
std::cout << "Number of Points in the landmark: " << nPoints << std::endl;
LandmarkType::LandmarkPointListType::const_iterator it =
landmark->GetPoints().begin();
while (it != landmark->GetPoints().end())
{
std::cout << "Position: " << (*it).GetPositionInObjectSpace()
<< std::endl;
std::cout << "Color: " << (*it).GetColor() << std::endl;
++it;
}
return EXIT_SUCCESS;
}