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/bug146
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

30 lines
721 B
Plaintext
Executable File

puts "================"
puts "OCC146"
puts "================"
############################################################################
##The first click on shape selects it - it is right. But the second one deselects it and the following clicks have no effect.
############################################################################
v2dinit
box b_b 10 15 20
trotate b_b 0 0 0 1 1 1 45
v2ddisplay b_b
v2dfit
QASelect2d 155 180
QASelect2d 155 180
QASelect2d 155 180
set coord_x 155
set coord_y 177
set color2d 1
checkcolor $coord_x $coord_y 0.8 0.8 0.8
if { $stat != 1 } {
puts "Error : The second selection of selected object deselects it and the following clicks have no effect"
}
set only_screen2d 1