void AnimationCleanerVisitor::removeAnimationTransforms() { for(MatrixTransformList::iterator transform = _transforms.begin() ; transform != _transforms.end() ; ++ transform) { if(transform->valid()) { removeFromParents(transform->get()); } } }
// ------------------ destructor --------------------- MultiComponent::~MultiComponent() { deleteProperties(); deleteAllSubComponents(); // tell all parents that I am going away to the paradise of pointers removeFromParents(); }
//----------------------- Destructor ----------------------- Cell::~Cell() { // delete the structural component properties deleteProperties(); // if (Structure::properties) delete (CellProperties*) Structure::properties; if (StructuralComponent::atomList) delete StructuralComponent::atomList; StructuralComponent::atomList = NULL; // delete all children deleteAllStructures(); // tell all parents that I am going away to the paradise of pointers removeFromParents(); }