0022785: Draw Harness - add possibility to remove a text drawn by the command vdrawtext
[occt.git] / tests / bugs / vis / bug21091_6
CommitLineData
a8676008 1puts "============"
2puts "OCC21091"
3puts "OCC21450"
4puts "============"
5puts ""
6#vexport
7#vexport full_file_path {PS | EPS | TEX | PDF | SVG | PGF } : exports the view to a vector file of a given format
8#Testing export to EPS format
9
10vinit
a8676008 11vtrihedron trihedron
12
13vpoint p1 -300 -300 -300
29e2c6d2 14vdrawtext OC0 OpenCascade -pos -300 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
15
a8676008 16vpoint p2 -300 -300 -100
29e2c6d2 17vdrawtext OC1 OpenCascade -pos -300 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
18
a8676008 19vpoint p3 -100 -100 -300
29e2c6d2 20vdrawtext OC2 OpenCascade -pos -100 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
21
a8676008 22vpoint p4 -100 -100 -100
29e2c6d2 23vdrawtext OC3 OpenCascade -pos -100 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
a8676008 24
25
26vpoint p5 -300 -100 -300
29e2c6d2 27vdrawtext OC4 OpenCascade -pos -300 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
28
a8676008 29vpoint p6 -100 -300 -300
29e2c6d2 30vdrawtext OC5 OpenCascade -pos -100 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
31
a8676008 32vpoint p7 -300 -100 -100
29e2c6d2 33vdrawtext OC6 OpenCascade -pos -300 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
a8676008 34
29e2c6d2 35vpoint p8 -100 -300 -100
36vdrawtext OC7 OpenCascade -pos -100 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font Courier
a8676008 37vaxis ax1 100 100 100 100 100 0
38
39box a 110 110 110 200 200 200
40vdisplay a
41
9aa684ed 42file delete -force ${imagedir}/${test_image}.eps
43set aFile ${imagedir}/${test_image}.eps
a8676008 44
45vexport ${aFile} EPS
46
9aa684ed 47if { [string compare $tcl_platform(platform) "windows"] != 0 } {
48 set refsize 10314
49} else {
c1e0171c 50 set refsize 10338
9aa684ed 51}
52
a8676008 53if { [file exists ${aFile}] } {
54 puts "Export to EPS file was done"
55 set filesize [file size ${aFile}]
9aa684ed 56 if { $filesize != $refsize } {
57 puts "Error: Export to EPS file was done but size of file is incorrect (refsize = $refsize, current = $filesize)."
58 puts "Error: Compare content of resulting EPS file with reference."
59 puts "Error: Update refsize if it's necessary."
60 }
61} else {
62 puts "Faulty : Export to EPS file was not done"
63}
64
29e2c6d2 65set only_screen 1