1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-01 10:26:12 +03:00
occt/tests/bugs/vis/bug196
apn f1aa2b6272 Adding new testing cases for chl grid
Adding procedures checkcolor and checkpoint.
Modified test cases which are used QAGetPixelColor or QAAISGetPixelColor2d
Allow using command QAAISGetPixelColor2d on WNT
Rename test case tests/bugs/vis/bug19619 to pro19619
Added test cases to modalg and moddata
2012-12-14 16:56:11 +04:00

39 lines
860 B
Plaintext
Executable File

puts "========"
puts "OCC196"
puts "========"
puts ""
################################################
##puts "Rotation of text font number 23"
##puts "(visual checking for this case is desirable)"
################################################
v2dinit
set Scale 1
set Font_ind 23
set k -.2
set j 0
repeat 10 {
set Position_X [expr $j*15]
set Position_Y [expr $j*-15]
set k [expr $k+.2]
set Angle $k
v2dtext Angle_[string range $k 0 2] $Position_X $Position_Y $Angle $Scale $Font_ind
puts "=======> Angle = [string range $k 0 4] Position_X= $Position_Y Position_Y= $Position_Y"
puts " "
incr j
}
set x_coord 336
set y_coord 347
set color2d 1
checkcolor $x_coord $y_coord 1 1 1
if { $stat != 1 } {
puts "Error : Rotation of text font number 23 was NOT MADE properly"
}
set only_screen2d 1