int main( int , char *[] )
{
NodeType::Pointer object0 = NodeType::New();
object0->SetId(0);
NodeType::Pointer object1 = NodeType::New();
object1->SetId(1);
NodeType::Pointer object2 = NodeType::New();
object2->SetId(2);
object0->AddSpatialObject(object1);
object1->AddSpatialObject(object2);
TreeType::Pointer tree = TreeType::New();
tree->SetRoot(object0.GetPointer());
{
std::cout << levelIt.
Get()->GetId() <<
" ("<< levelIt.
GetLevel()
<< ")" << std::endl;
++levelIt;
}
NodeType::Pointer object4 = NodeType::New();
preIt.
Add(object4.GetPointer());
return EXIT_SUCCESS;
}