1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug22879
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

38 lines
1.5 KiB
Plaintext
Executable File

puts "============"
puts "OCC22879"
puts "============"
puts ""
#######################################################################
# Possible bug in Opengl_togl_begin_layer_mode.cxx
#######################################################################
vfont add [locate_data_file DejaVuSans.ttf] SansFont
set BugNumber OCC22879
vinit
vdrawtext t1 "Text Height=14" -2d -perspos -1 1 -pos 10 -10 0 -height 14 -color 1 1 1 -font SansFont
vdrawtext t2 "Text Height=25" -2d -perspos -1 1 -pos 10 -40 0 -height 25 -color 1 1 1 -font SansFont
vdrawtext t3 "Arial" -2d -perspos -1 1 -pos 10 -60 0 -height 18 -font SansFont -color 1 0 0
vdrawtext t4 "Times New Roman" -2d -perspos -1 1 -pos 10 -80 0 -height 18 -font SansFont -color 0 0 1
vdrawtext t5 "Subtitle" -2d -perspos -1 1 -pos 10 -110 0 -height 20 -font SansFont -color 0 1 0 -disptype subtitle -subcolor 0.3 0.3 0.3
vdrawtext t6 "Decal" -2d -perspos -1 1 -pos 10 -140 0 -height 20 -font SansFont -color 0 0 1 -disptype decal -subcolor 1 0 0
vdrawtext t7 "Blend" -2d -perspos -1 1 -pos 10 -170 0 -height 20 -font SansFont -color 1 0 0 -disptype blend
box b 50 -700 450 50 50 50
vdisplay b
vsetdispmode 1
vsetcolor b ANTIQUEWHITE
checkcolor 24 55 0.753 0.000 0.000
checkcolor 16 76 0.000 0.000 1.000
checkcolor 25 107 0.000 1.000 0.000
checkcolor 34 114 0.298 0.298 0.298
checkcolor 24 131 0.922 0.000 0.000
checkcolor 18 139 0.145 0.000 0.855
checkcolor 56 160 1.000 0.000 0.000
checkcolor 30 160 0.188 0.761 0.698
checkview -screenshot -3d -path ${imagedir}/${test_image}.png