1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-11 10:44:53 +03:00
occt/tests/bugs/vis/bug25732_2
isk 29e2c6d247 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.
2015-05-06 15:06:47 +03:00

26 lines
673 B
Plaintext

puts "========"
puts "OCC25732"
puts "========"
puts ""
#########################################################################################
# Visualization, TKOpenGl - back face culling should not affect textured font rendering
#########################################################################################
box b 1 2 3
explode b F
vinit
vsetdispmode 1
vdisplay b_1 b_2
vfit
vdrawtext text "SAMPLE TEXT" -pos 1 0 3 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 30 -aspect regular
set bug_info [vreadpixel 260 137 rgb name]
if {$bug_info != "RED"} {
puts "ERROR: OCC25732 is reproduced. Text is missed."
}
set only_screen 1