1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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

@@ -244,3 +244,17 @@ void StdSelect_BRepOwner::SetZLayer (const Graphic3d_ZLayerId theLayerId)
myPrsSh->SetZLayer (theLayerId);
}
}
//=======================================================================
//function : UpdateHighlightTrsf
//purpose :
//=======================================================================
void StdSelect_BRepOwner::UpdateHighlightTrsf (const Handle(V3d_Viewer)& theViewer,
const Handle(PrsMgr_PresentationManager3d)& theManager,
const Standard_Integer theDispMode)
{
if (myPrsSh.IsNull() && Selectable().IsNull())
return;
theManager->UpdateHighlightTrsf (theViewer, Selectable(), theDispMode, myPrsSh);
}

View File

@@ -130,8 +130,10 @@ public:
//! Set Z layer ID and update all presentations.
Standard_EXPORT virtual void SetZLayer (const Graphic3d_ZLayerId theLayerId) Standard_OVERRIDE;
//! 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) Standard_OVERRIDE;
DEFINE_STANDARD_RTTIEXT(StdSelect_BRepOwner,SelectMgr_EntityOwner)