#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI_Utils.h"
+#include "SMESHGUI_Filter.h"
#include <vtkRenderer.h>
#include <vtkActorCollection.h>
void RemoveActor(QAD_StudyFrame *theStudyFrame, SMESH_Actor* theActor){
if(VTKViewer_ViewFrame* aViewFrame = GetVtkViewFrame(theStudyFrame)){
aViewFrame->RemoveActor(theActor);
+ if(theActor->hasIO()){
+ Handle(SALOME_InteractiveObject) anIO = theActor->getIO();
+ if(anIO->hasEntry()){
+ std::string anEntry = anIO->getEntry();
+ QAD_Study* aStudy = theStudyFrame->getStudy();
+ int aStudyId = aStudy->getStudyId();
+ TVisualObjCont::key_type aKey(aStudyId,anEntry);
+ VISUAL_OBJ_CONT.erase(aKey);
+ }
+ }
+ theActor->Delete();
aViewFrame->Repaint();
}
}
theStyle->RemoveFilter(theId);
}
+ void RemoveFilters(VTKViewer_InteractorStyleSALOME* theStyle){
+ for ( int id = SMESHGUI_NodeFilter; theStyle && id < SMESHGUI_LastFilter; id++ )
+ theStyle->RemoveFilter( id );
+ }
+
bool IsValid(SALOME_Actor* theActor, int theCellId,
VTKViewer_InteractorStyleSALOME* theStyle)
{