mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-10 11:34:06 +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.
21 lines
530 B
Plaintext
21 lines
530 B
Plaintext
puts "============"
|
|
puts "OCC23457 Text rendering performance"
|
|
puts "Test case performs rendering of single huge text label"
|
|
puts "============"
|
|
puts ""
|
|
|
|
vtrihedron trihedr
|
|
|
|
set aFileHandle [open [locate_data_file screw.step] r]
|
|
set aText [read $aFileHandle]
|
|
close $aFileHandle
|
|
|
|
vpoint p0 0 0 -400
|
|
vpoint p1 0 10000 -400
|
|
vpoint p2 1000 0 -400
|
|
vfit
|
|
|
|
vdrawtext text "$aText" -pos 100 100 -400 -color 0.0 1.0 1.0 -halign left -valign bottom -angle 000 -zoom 1 -height 50 -aspect regular -font Times-Roman
|
|
|
|
vfps
|