mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-20 12:45:50 +03:00
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
46 lines
1.0 KiB
Plaintext
Executable File
46 lines
1.0 KiB
Plaintext
Executable File
puts "========"
|
|
puts "OCC197"
|
|
puts "(case 1)"
|
|
puts "========"
|
|
puts ""
|
|
#############################################################
|
|
##puts "Multiple Selection: Choosing of viewer MODA for selection of PRIMITIVE"
|
|
##puts "(visual checking for this case is desirable)"
|
|
#############################################################
|
|
# Selection Modes Activation:
|
|
# 0 - OBJECT, 1 - PRIMITIVE, 2 - ELEMENT, 3 - VERTEX, 4 - NONE
|
|
|
|
v2dinit
|
|
|
|
box b_b 10 15 20
|
|
v2ddisplay b_b 0 0 0 1 1 1 1 0 0
|
|
v2dfit
|
|
set color2d 1
|
|
|
|
QAv2dSetHighlightMode 1
|
|
|
|
QASelect2d 169 148
|
|
QAMoveTo2d 0 0
|
|
QAShiftSelect2d 184 180
|
|
|
|
set x_coord 169
|
|
set y_coord 148
|
|
|
|
checkcolor $x_coord $y_coord 0.8 0.8 0.8
|
|
if { ${stat} != 1 } {
|
|
puts "Error : (PRIMITIVE number 1) Multiple Selection: Choosing of viewer MOD for selection of PRIMITIVE was NOT MADE properly"
|
|
}
|
|
|
|
set x_coord 184
|
|
set y_coord 180
|
|
|
|
checkcolor $x_coord $y_coord 0.8 0.8 0.8
|
|
if { ${stat} != 1 } {
|
|
puts "Error : (PRIMITIVE number 2) Multiple Selection: Choosing of viewer MOD for selection of PRIMITIVE was NOT MADE properly"
|
|
}
|
|
|
|
set only_screen2d 1
|
|
|
|
|
|
|