mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
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.
26 lines
600 B
Plaintext
26 lines
600 B
Plaintext
puts "============"
|
|
puts "OCC23745"
|
|
puts "============"
|
|
puts ""
|
|
######################################################
|
|
# Draw Harness, ViewerText - vdrawtext command should not modify global text aspect
|
|
######################################################
|
|
|
|
pload QAcommands
|
|
pload VISUALIZATION
|
|
|
|
vinit
|
|
vdrawtext text0 "ANOTHERBUG" -pos 100 100 100 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 1 -height 50 -aspect regular
|
|
vtrihedron trihedron
|
|
|
|
set x 239
|
|
set y 216
|
|
set R 1
|
|
set G 1
|
|
set B 0
|
|
checkcolor ${x} ${y} ${R} ${G} ${B}
|
|
|
|
vdump ${imagedir}/${casename}.png
|
|
|
|
puts "TEST COMPLETED"
|