#include <SelectMgr_ListIteratorOfListOfFilter.hxx>
#ifdef VINSPECTOR
-#include <VInspectorAPI_CallBack.h>
+#include <VInspectorAPI_CallBack.hxx>
#endif
XGUI_SelectionMgr::XGUI_SelectionMgr(XGUI_Workshop* theParent)
void XGUI_SelectionMgr::setSelectedOwners(const SelectMgr_IndexedMapOfOwner& theSelectedOwners,
bool isUpdateViewer)
{
- SelectMgr_IndexedMapOfOwner aSelectedOwners;
- selection()->selectedOwners(aSelectedOwners);
-
Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();
if (!aContext.IsNull()) {
/// previous selection should be cleared, else there will be decomposition of selections:
for (Standard_Integer i = 1, n = theSelectedOwners.Extent(); i <= n; i++) {
Handle(SelectMgr_EntityOwner) anOwner = theSelectedOwners(i);
- if (aSelectedOwners.FindIndex(anOwner) > 0)
- continue;
aContext->AddOrRemoveSelected(anOwner, isUpdateViewer);
#ifdef VINSPECTOR