layout.remove_vehicle(*this);
layout.get_scene().remove(*this);
for(vector<Axle3D *>::iterator i=axles.begin(); i!=axles.end(); ++i)
+ {
+ layout.get_scene().remove(**i);
delete *i;
+ }
for(vector<Bogie3D *>::iterator i=bogies.begin(); i!=bogies.end(); ++i)
+ {
+ layout.get_scene().remove(**i);
delete *i;
+ }
for(vector<Rod3D *>::iterator i=rods.begin(); i!=rods.end(); ++i)
+ {
+ layout.get_scene().remove(**i);
delete *i;
+ }
}
Vector Vehicle3D::get_node() const