1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0029993: Visualization - AIS_TextLabel computes selection primitive only for attachment point

The text label is selected as a rectangle (adds a sensitive object - Select3D_SensitiveFace).
The bounding box has been resized to fit the sensitive rectangle.
Transform persistent has been added to AIS_TextLabel to correctly position the sensitive rectangle.
The findConnectedObject function has also been changed to correctly set transform persistence.
This commit is contained in:
mzernova
2019-12-03 12:32:39 +03:00
committed by bugmaster
parent 8f5760bc16
commit 3e9c1d1e5a
7 changed files with 166 additions and 52 deletions

View File

@@ -4254,6 +4254,10 @@ static Handle(AIS_InteractiveObject) findConnectedObject (const TCollection_Asci
aConnected->SetDisplayMode (aPrs->DisplayMode());
}
aConnected->Connect (aPrs, aPrs->LocalTransformationGeom());
if (!aPrs->TransformPersistence().IsNull())
{
aConnected->SetTransformPersistence (aPrs->TransformPersistence());
}
ViewerTest::Display (theName, aConnected, false);
return aConnected;
}