{
anObjToClear.Add (anInteractive);
}
- anOwner->SetSelected (Standard_False);
if (anOwner == anInteractive->GlobalSelOwner())
{
myObjects.ChangeFind (anInteractive)->SetHilightStatus (Standard_False);
continue;
mySelection->Select (aCurOwner);
- aCurOwner->SetSelected (Standard_True);
}
if (myAutoHilight)
continue;
mySelection->Select (anOwner);
- anOwner->SetSelected (Standard_True);
}
if (myAutoHilight)
if (anOwner.IsNull() || !anOwner->HasSelectable() || !myFilters->IsOk (anOwner))
continue;
- AIS_SelectStatus aSelStatus = mySelection->Select (anOwner);
- anOwner->SetSelected (aSelStatus == AIS_SS_Added);
+ mySelection->Select (anOwner);
}
if (myAutoHilight)
if (anOwner.IsNull() || !anOwner->HasSelectable() || !myFilters->IsOk (anOwner))
continue;
- AIS_SelectStatus aSelStatus = mySelection->Select (anOwner);
- anOwner->SetSelected (aSelStatus == AIS_SS_Added);
+ mySelection->Select (anOwner);
}
if (myAutoHilight)
aState->SetHilightStatus (Standard_True);
aState->SetHilightStyle (anObjSelStyle);
}
- anOwner->SetSelected (Standard_True);
if (!anOwner->IsAutoHilight())
{
NCollection_Handle<SelectMgr_SequenceOfOwner> aSeq;
myObjects.ChangeFind (anObj)->SetHilightStatus (Standard_False);
}
- anOwner->SetSelected (Standard_False);
anOwner->Unhilight (myMainPM);
}
{
unhighlightSelected();
}
- else
- {
- for (AIS_NListOfEntityOwner::Iterator aSelIter (mySelection->Objects()); aSelIter.More(); aSelIter.Next())
- {
- aSelIter.Value()->SetSelected (Standard_False);
- }
- }
mySelection->Clear();
if (myAutoHilight)
{
Unhilight (aSelectable, Standard_False);
}
- aSelOwner->SetSelected (Standard_False);
if (aSelOwner == aSelectable->GlobalSelOwner())
{
myObjects.ChangeFind (aSelectable)->SetHilightStatus (Standard_False);
HilightWithColor (theObject, anObjSelStyle, Standard_False);
}
}
- anOwner->SetSelected (Standard_True);
if (theToUpdateViewer)
UpdateCurrentViewer();
if (!HighlightStyle (theOwner, aCustomStyle) ||
(!aCustomStyle.IsNull() && aCustomStyle != anObjSelStyle))
{
- theOwner->SetSelected (Standard_True);
highlightSelected (theOwner);
}
}
- theOwner->SetSelected (Standard_True);
if (myAutoHilight && theOwner == anObject->GlobalSelOwner())
{
Handle(AIS_GlobalStatus)& aState = myObjects.ChangeFind (anObject);
if (!myFilters->IsOk(theOwner) && !theOwner->IsSelected())
return;
- AIS_SelectStatus aSelStat = mySelection->Select (theOwner);
- theOwner->SetSelected (aSelStat == AIS_SS_Added);
+ mySelection->Select (theOwner);
if (myAutoHilight)
{
//=======================================================================
void AIS_Selection::Clear()
{
+ for (AIS_NListOfEntityOwner::Iterator aSelIter (Objects()); aSelIter.More(); aSelIter.Next())
+ {
+ const Handle(SelectMgr_EntityOwner) anObject = aSelIter.Value();
+ anObject->SetSelected (Standard_False);
+ }
myresult.Clear();
myResultMap.Clear();
myIterator = AIS_NListOfEntityOwner::Iterator();
AIS_NListOfEntityOwner::Iterator aListIter;
myresult.Append (theObject, aListIter);
myResultMap.Bind (theObject, aListIter);
+ theObject->SetSelected (Standard_True);
return AIS_SS_Added;
}
myresult.Remove (aListIter);
myResultMap.UnBind (theObject);
+ theObject->SetSelected (Standard_False);
// update list iterator for next object in <myresult> list if any
if (aListIter.More())
AIS_NListOfEntityOwner::Iterator aListIter;
myresult.Append (theObject, aListIter);
myResultMap.Bind (theObject, aListIter);
+ theObject->SetSelected (Standard_True);
return AIS_SS_Added;
}