コード例 #1
0
void AnimationCleanerVisitor::removeAnimationTransforms() {
    for(MatrixTransformList::iterator transform = _transforms.begin() ; transform != _transforms.end() ; ++ transform) {
        if(transform->valid()) {
            removeFromParents(transform->get());
        }
    }
}
コード例 #2
0
ファイル: MultiComponent.cpp プロジェクト: 151706061/sofa
// ------------------ destructor ---------------------
MultiComponent::~MultiComponent() {
    deleteProperties();
    
    deleteAllSubComponents();
    
    // tell all parents that I am going away to the paradise of pointers
    removeFromParents();    
}
コード例 #3
0
ファイル: Cell.cpp プロジェクト: ricortiz/Bender-SOFA
//----------------------- 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();
}