1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0031793: Draw Harness, vmanipulator - disable sorting picking result workaround

AIS_InteractiveContext::SetPickClosest() has been removed from vmanipulator command,
and test cases using the manipulator have been updated.
This commit is contained in:
mzernova 2020-09-26 21:47:58 +03:00 committed by bugmaster
parent 9211c8ffbc
commit e2409d34b5
7 changed files with 13 additions and 15 deletions

View File

@ -93,7 +93,6 @@ DEFINE_STANDARD_HANDLE (AIS_Manipulator, AIS_InteractiveObject)
//! aManipulator->Detach();
//! @endcode
//! The last method erases manipulator object.
//! @warning
class AIS_Manipulator : public AIS_InteractiveObject
{
public:

View File

@ -12821,7 +12821,6 @@ static int VManipulator (Draw_Interpretor& theDi,
{
Handle(V3d_View) aCurrentView = ViewerTest::CurrentView();
Handle(V3d_Viewer) aViewer = ViewerTest::GetViewerFromContext();
ViewerTest::GetAISContext()->MainSelector()->SetPickClosest (Standard_False);
if (aCurrentView.IsNull()
|| aViewer.IsNull())
{

View File

@ -58,7 +58,7 @@ vdump $anImage2
# rotate around y axis
# -------------------------------------------
set mouse_pick {316 257}
set mouse_pick {316 261}
set mouse_drag {279 286}
vmoveto {*}$mouse_pick

View File

@ -45,7 +45,7 @@ vmanipulator m -attach c1 -adjustPosition 1 -adjustSize 0 -enableModes 1 -size 4
vmanipulator m -followRotation 1
set mouse_pick {201 092}
set mouse_pick {200 092}
set mouse_drag {176 142}
vmoveto {*}$mouse_pick
@ -64,7 +64,7 @@ vdump $anImage1
vmanipulator m -followRotation 1
set mouse_pick {173 137}
set mouse_drag {233 140}
set mouse_drag {233 144}
vmoveto {*}$mouse_pick
vselect {*}$mouse_pick
@ -111,8 +111,8 @@ vmanipulator m -followRotation 0
# test rotation around y axis (world reference frame)
# ---------------------------------------------------
set mouse_pick {211 095}
set mouse_drag {230 127}
set mouse_pick {211 087}
set mouse_drag {232 127}
vmoveto {*}$mouse_pick
vselect {*}$mouse_pick
@ -127,7 +127,7 @@ vdump $anImage4
# test rotation around z axis (world reference frame)
# ---------------------------------------------------
set mouse_pick {225 143}
set mouse_pick {228 141}
set mouse_drag {184 143}
vmoveto {*}$mouse_pick

View File

@ -40,7 +40,7 @@ vmanipulator m -attach c1 -adjustPosition 1 -adjustSize 0 -enableModes 1 -size 4
# test hilight and detection
# --------------------------
set mouse_pick {229 137}
set mouse_pick {229 141}
vmoveto {*}$mouse_pick
vdump $anImage1
@ -49,8 +49,8 @@ vdump $anImage1
# test scaling of an object
# -------------------------
set mouse_pick {229 137}
set mouse_drag {210 127}
set mouse_pick {229 141}
set mouse_drag {210 129}
vmoveto {*}$mouse_pick
vselect {*}$mouse_pick

View File

@ -110,8 +110,8 @@ vmanipulator m -part 0 4 0
vmanipulator m -part 1 4 0
vmanipulator m -part 2 4 0
set mouse_pick {223 143}
set mouse_drag {181 141}
set mouse_pick {223 144}
set mouse_drag {181 140}
vmoveto {*}$mouse_pick
vselect {*}$mouse_pick

View File

@ -28,7 +28,7 @@ vfit
vmanipulator m1 -attach b1 -adjustPosition 1 -adjustSize 1 -enableModes 1 -zoomable 1
set mouse_pick_1 {84 133}
set mouse_pick_1 {80 133}
set mouse_pick_2 {29 103}
set mouse_pick_3 {29 103}
set mouse_drag_3 {121 126}
@ -60,7 +60,7 @@ vfit
vmanipulator m2 -attach b2 -adjustPosition 1 -adjustSize 0 -enableModes 1 -zoomable 0 -size 40
set mouse_pick_1 {341 282}
set mouse_pick_1 {340 282}
set mouse_pick_2 {277 245}
set mouse_pick_3 {277 245}
set mouse_drag_3 {210 210}