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

@@ -164,3 +164,17 @@ void SelectMgr_EntityOwner::SetZLayer (const Standard_Integer )
{
//
}
//=======================================================================
//function : UpdateHighlightTrsf
//purpose :
//=======================================================================
void SelectMgr_EntityOwner::UpdateHighlightTrsf (const Handle(V3d_Viewer)& theViewer,
const Handle(PrsMgr_PresentationManager3d)& theManager,
const Standard_Integer theDispMode)
{
if (mySelectable == NULL)
return;
theManager->UpdateHighlightTrsf (theViewer, mySelectable, theDispMode);
}

View File

@@ -31,6 +31,7 @@ class Standard_NoSuchObject;
class SelectMgr_SelectableObject;
class PrsMgr_PresentationManager;
class TopLoc_Location;
class V3d_Viewer;
class SelectMgr_EntityOwner;
@@ -130,7 +131,10 @@ public:
//! Set Z layer ID and update all presentations.
Standard_EXPORT virtual void SetZLayer (const Graphic3d_ZLayerId theLayerId);
//! Implements immediate application of location transformation of parent object to dynamic highlight structure
Standard_EXPORT virtual void UpdateHighlightTrsf (const Handle(V3d_Viewer)& theViewer,
const Handle(PrsMgr_PresentationManager3d)& theManager,
const Standard_Integer theDispMode);
DEFINE_STANDARD_RTTIEXT(SelectMgr_EntityOwner,SelectBasics_EntityOwner)