1
0
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:
vpa
2015-12-18 21:29:13 +03:00
committed by bugmaster
parent 3510db6201
commit 5396886c90
8 changed files with 144 additions and 3 deletions

View File

@@ -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);
}
}
//=======================================================================