0022785: Draw Harness - add possibility to remove a text drawn by the command vdrawtext
authorisk <isk@opencascade.com>
Tue, 5 May 2015 08:06:29 +0000 (11:06 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 6 May 2015 12:06:47 +0000 (15:06 +0300)
commit29e2c6d2473cdfccd3581c0bbb5addfc3eb22c1a
tree8041a8fa5792ecd82a4250d84cc7e8fa1fdea284
parent2b5097c6767887bd76b4a2ef0056dd5e8c0dade5
0022785: Draw Harness - add possibility to remove a text drawn by the command vdrawtext

AIS_TextLabel - new public class to display simple text labels (based on MyTextClass private class from Draw Harness).
ViewerTest::Display() - add more reliable replacement for VDisplayAISObject() with no viewer update flag.

vdrawtext command redesign:
- Use new AIS_TextLabel class instead of private MyTextClass.
- Take object name and allow to clear labels from the Viewer.
- Use parameter name + parameter value syntax instead of strict list of mandatory arguments.
- Use [0; 1] range for colors and accept names.
- Drop redundant argument "isMultiByte".
- Support argument -noupdate to skip Viewer update.

Update test cases to new syntax of vdrawtext.
42 files changed:
samples/tcl/Penrose.tcl
samples/tcl/materials.tcl
src/AIS/AIS_TextLabel.cxx [new file with mode: 0644]
src/AIS/AIS_TextLabel.hxx [new file with mode: 0644]
src/AIS/FILES
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest.hxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
tests/3rdparty/export/A2
tests/3rdparty/export/A3
tests/3rdparty/export/A4
tests/3rdparty/export/A5
tests/3rdparty/export/A6
tests/3rdparty/export/A7
tests/3rdparty/fonts/A2
tests/3rdparty/fonts/A3
tests/3rdparty/fonts/A4
tests/3rdparty/fonts/A5
tests/3rdparty/fonts/A6
tests/3rdparty/fonts/B1
tests/3rdparty/fonts/B2
tests/bugs/vis/bug21091_4
tests/bugs/vis/bug21091_5
tests/bugs/vis/bug21091_6
tests/bugs/vis/bug21091_7
tests/bugs/vis/bug21091_8
tests/bugs/vis/bug21091_9
tests/bugs/vis/bug22149
tests/bugs/vis/bug22796_1
tests/bugs/vis/bug22796_2
tests/bugs/vis/bug22796_3
tests/bugs/vis/bug23652
tests/bugs/vis/bug23654_MarkersRecompute
tests/bugs/vis/bug24131_markers
tests/bugs/vis/bug24555
tests/bugs/vis/bug24837_2
tests/bugs/vis/bug25121
tests/bugs/vis/bug25369
tests/bugs/vis/bug25732_1
tests/bugs/vis/bug25732_2
tests/demo/draw/bug23745
tests/v3d/raytrace/bug24819