#include "SUIT_ResourceMgr.h"
#include "SUIT_Desktop.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOME_ListIO.hxx"
#include "SALOME_ListIteratorOfListIO.hxx"
#include "SVTK_Selector.h"
#include "SVTK_ViewModel.h"
#include "SVTK_ViewWindow.h"
-#include "SVTK_InteractorStyle.h"
// OCCT Includes
#include <Precision.hxx>
SMESH::RemoveFilters();
SMESH::SetPickable();
- mySelectionMgr->clearSelected();
+ //mySelectionMgr->clearSelected();
mySelectionMgr->clearFilters();
reject();
myActor = SMESH::FindActorByEntry(aList.First()->getEntry());
if (!myActor)
myActor = SMESH::FindActorByObject(myMesh);
- SVTK_InteractorStyle* aStyle = SMESH::GetInteractorStyle();
- Handle(VTKViewer_Filter) aFilter = aStyle->GetFilter(myFilterType);
+ SVTK_Selector* aSelector = SMESH::GetSelector();
+ Handle(VTKViewer_Filter) aFilter = aSelector->GetFilter(myFilterType);
if (!aFilter.IsNull())
aFilter->SetActor(myActor);
}
//=======================================================================
bool SMESHGUI_MultiEditDlg::isIdValid (const int theId) const
{
- SVTK_InteractorStyle* aStyle = SMESH::GetInteractorStyle();
+ SVTK_Selector* aSelector = SMESH::GetSelector();
Handle(SMESHGUI_Filter) aFilter =
- Handle(SMESHGUI_Filter)::DownCast(aStyle->GetFilter(myFilterType));
+ Handle(SMESHGUI_Filter)::DownCast(aSelector->GetFilter(myFilterType));
return (!aFilter.IsNull() && aFilter->IsObjValid(theId));
}
bool aResult = process(aMeshEditor, anIds.inout());
if (aResult) {
if (myActor) {
- mySelectionMgr->clearSelected();
+ SALOME_ListIO sel;
+ mySelectionMgr->selectedObjects( sel );
+ mySelector->ClearIndex();
+ mySelectionMgr->setSelectedObjects( sel );
SMESH::UpdateView();
}