mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-30 12:14:08 +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.
19 lines
670 B
Plaintext
Executable File
19 lines
670 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC22796"
|
|
puts "============"
|
|
puts ""
|
|
#######################################################################
|
|
# Possibility to display multi-line text in 3D
|
|
#######################################################################
|
|
|
|
set BugNumber OCC22796
|
|
|
|
vinit
|
|
vfont add [locate_data_file bug22149_mona.ttf] Mona
|
|
set s [encoding convertfrom unicode "\x42\x30\x09\x00\x79\x30\x0A\x00\x6F\x30\x42\x26"]
|
|
#vdrawtext "\x30\x42\x00\x09\x30\x79\x00\x0A\x30\x6F" 0 0 0 255 255 255 0 0 0 1 50 0 Mona 1
|
|
vdrawtext text0 $s -pos 0 0 0 -color 1.0 1.0 1.0 -halign left -valign bottom -angle 0 -zoom 1 -height 50 -aspect regular -font Mona
|
|
|
|
set only_screen 1
|
|
|