mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026960: Visualization, TKOpenGl - update transformation of dynamically highlighted presentation
- added method UpdateHighlightTrsf for immediate update of highlight presentation's transformation; - interfaces for immediate transformation update of corresponding presentations were added to entity owner classes; - test case for issue #26960
This commit is contained in:
@@ -1431,6 +1431,15 @@ void AIS_InteractiveContext::SetLocation (const Handle(AIS_InteractiveObject)& t
|
||||
Handle(StdSelect_ViewerSelector3d) aTempSel = myLocalContexts (myCurLocalIndex)->MainSelector();
|
||||
mgrSelector->Update (theIObj, aTempSel, Standard_False);
|
||||
}
|
||||
|
||||
// if the object or its part is highlighted dynamically, it is necessary to apply location transformation
|
||||
// to its highlight structure immediately
|
||||
if (!myLastPicked.IsNull() && myLastPicked->Selectable() == theIObj)
|
||||
{
|
||||
myLastPicked->UpdateHighlightTrsf (myMainVwr,
|
||||
myMainPM,
|
||||
theIObj->HasDisplayMode() ? theIObj->DisplayMode() : 0);
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user