1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0030218: Visualization - custom selection presentation is not updated within SelectMgr_SelectableObject::UpdateTransformation()

SelectMgr_SelectableObject now assigns transformation to mySelectionPrs and myHilightPrs presentations.
Removed confusing method PrsMgr_PresentableObject::UpdateTransformation() with presentation as argument.
This commit is contained in:
kgv
2018-10-08 19:16:06 +03:00
committed by apn
parent 84e847557a
commit 1b63268eb2
4 changed files with 37 additions and 15 deletions

View File

@@ -77,7 +77,7 @@ void PrsMgr_PresentableObject::Fill (const Handle(PrsMgr_PresentationManager)& t
{
Handle(Prs3d_Presentation) aStruct3d = thePrs->Presentation();
Compute (thePrsMgr, aStruct3d, theMode);
UpdateTransformation (aStruct3d);
aStruct3d->SetTransformation (myTransformation);
aStruct3d->SetClipPlanes (myClipPlanes);
aStruct3d->SetTransformPersistence (TransformPersistence());
}
@@ -296,15 +296,6 @@ void PrsMgr_PresentableObject::UpdateTransformation()
}
}
//=======================================================================
//function : UpdateTransformation
//purpose :
//=======================================================================
void PrsMgr_PresentableObject::UpdateTransformation(const Handle(Prs3d_Presentation)& P)
{
P->SetTransformation (myTransformation);
}
//=======================================================================
//function : SetTransformPersistence
//purpose :

View File

@@ -157,14 +157,13 @@ public:
: getIdentityTrsf(); }
const gp_GTrsf& InversedTransformation() const { return myInvTransformation; }
//! resets local transformation to identity.
Standard_EXPORT virtual void ResetTransformation();
//! Updates final transformation (parent + local) of presentable object and its presentations.
Standard_EXPORT virtual void UpdateTransformation();
Standard_EXPORT virtual void UpdateTransformation (const Handle(Prs3d_Presentation)& P);
//! Set Z layer ID and update all presentations of the presentable object.
//! The layers mechanism allows drawing objects in higher layers in overlay of objects in lower layers.
Standard_EXPORT virtual void SetZLayer (const Graphic3d_ZLayerId theLayerId);