]> OCCT Git - occt.git/commit
0032055: Draw Harness, ViewerTest - add more vmanipulator position adjusting options
authorkgv <kgv@opencascade.com>
Wed, 13 Jan 2021 18:22:00 +0000 (21:22 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 14 Jan 2021 16:21:54 +0000 (19:21 +0300)
commitff6122e00888bdc76d96848c8b10054d3bfb8f87
tree2bc92ecc0417e5851b08b65552fe48d3d405731f
parent607f045954d01d7667ca5039bc5873d90078655c
0032055: Draw Harness, ViewerTest - add more vmanipulator position adjusting options

Draw::ParseOnOffIterator() - added auxiliary wrapper over Draw::ParseOnOff() for more compact syntax.
strncasecmp() definition for msvc compilers has been moved to Standard_CString for consistency with strcasecmp().
vmanipulator command has been refactored to use more straightforward parser.

vmanipulator now accepts "-adjustPosition {0|center|location|shapeLocation}" options
adjusting position to object's AABB center (existed before), object's local transformation or TopoDS_Shape location.
src/Draw/Draw.cxx
src/Draw/Draw.hxx
src/RWStl/RWStl_Reader.cxx
src/Standard/Standard_CString.hxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
tests/v3d/manipulator/shape_location [new file with mode: 0644]