{
anOwners.Append (theOwner);
}
- highlightOwners (anOwners);
+ highlightOwners (anOwners, Handle(Prs3d_Drawer)());
}
//=======================================================================
{
anOwners.Append (aGlobOwner);
}
- highlightOwners (anOwners);
+ highlightOwners (anOwners, theStyle);
}
//=======================================================================
// In case of selection without using local context
clearDynamicHighlight();
- highlightOwners (mySelection->Objects());
+ highlightOwners (mySelection->Objects(), Handle(Prs3d_Drawer)());
if (theToUpdateViewer)
UpdateCurrentViewer();
//function : highlightOwners
//purpose :
//=======================================================================
-void AIS_InteractiveContext::highlightOwners (const AIS_NListOfEntityOwner& theOwners)
+void AIS_InteractiveContext::highlightOwners (const AIS_NListOfEntityOwner& theOwners,
+ const Handle(Prs3d_Drawer)& theStyle)
{
AIS_MapOfObjSelectedOwners anObjOwnerMap;
for (AIS_NListOfEntityOwner::Iterator aSelIter (theOwners); aSelIter.More(); aSelIter.Next())
if (anObj.IsNull())
continue;
- const Handle(Prs3d_Drawer)& anObjSelStyle = getSelStyle (anObj, anOwner);
+ const Handle(Prs3d_Drawer)& anObjSelStyle = !theStyle.IsNull() ? theStyle : getSelStyle (anObj, anOwner);
Handle(AIS_GlobalStatus)* aStatusPtr = myObjects.ChangeSeek (anObj);
if (!aStatusPtr)
{