]> OCCT Git - occt.git/commit
0025723: Visualization, TKV3d - the center of rotation should be calculated taking...
authoribs <ibs@opencascade.com>
Thu, 12 Feb 2015 08:59:56 +0000 (11:59 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 12 Feb 2015 09:00:47 +0000 (12:00 +0300)
commit4af098bab9fbcaeba6311c473346ca2d6b77058a
tree3214eb42e13a30b1fb60449ad323e1b1651d1c07
parent0090ae85abe80ae4cd01e9aabd3f992e46bbfe9a
0025723: Visualization, TKV3d - the center of rotation should be calculated taking into account structure visibility and selection flags

V3d_View::Gravity() - compute scene bounding box only including highlighted objects, if there are any, to provide context-oriented center of gravity.
Skip hidden objects, if there are any visible.
Do not return any value from this method.

Extend command vrotate with new flags -mouseStart and -mouseMove, to emulate rotation by mouse.

Unused argument theDi of VRotate disabled
src/V3d/V3d_View.cdl
src/V3d/V3d_View.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/bugs/vis/bug25723 [new file with mode: 0644]
tests/bugs/vis/bug25723_1 [new file with mode: 0644]