int main( int , char *[] )
{
SceneSpatialObjectType::Pointer scene = SceneSpatialObjectType::New();
EllipseType::Pointer ellipse1 = EllipseType::New();
ellipse1->SetRadius(1);
ellipse1->SetId(1);
EllipseType::Pointer ellipse2 = EllipseType::New();
ellipse2->SetId(2);
ellipse2->SetRadius(2);
scene->AddSpatialObject(ellipse1);
scene->AddSpatialObject(ellipse2);
std::cout << "Number of objects in the SceneSpatialObject = ";
std::cout << scene->GetNumberOfObjects() << std::endl;
std::cout << "Object in the SceneSpatialObject with an ID == 2: "
<< std::endl;
scene->GetObjectById(2)->Print(std::cout);
scene->RemoveSpatialObject(ellipse1);
SceneSpatialObjectType::ObjectListType * myObjectList = scene->GetObjects();
std::cout << "Number of objects in the SceneSpatialObject = ";
std::cout << myObjectList->size() << std::endl;
scene->FixHierarchy();
scene->Clear();
return 0;
}