mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +03:00
Replaced QAMoveTo, QASelect and QAShiftSelect draw commands with vmoveto and vselect Moved vselect and vmoveto draw commands to ViewerTest_ViewerCommands.cxx Replaced QAMoveTo and QASelect in test cases. Corrected returned error case result in vselect and vmoveto. Added commands in ViewerTest_ViewerCommands from QADraw. Edited tests. QACommands in tests were replaced with ViewerTest commands. QAxwd command was removed from QADraw. Edited command wzoom and commands from ViewerTest. Help for ViewerTest commands was edited Small corrections. Added test cases for polygonal selection. Small correction of test cases
39 lines
557 B
Plaintext
Executable File
39 lines
557 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC727"
|
|
puts "============"
|
|
puts ""
|
|
#############################
|
|
## The second object can not be deselected.
|
|
#############################
|
|
|
|
box a 10 10 10
|
|
box b 50 50 50 10 10 10
|
|
|
|
vinit
|
|
vdisplay a
|
|
vdisplay b
|
|
vfit
|
|
|
|
set x1 60
|
|
set y1 300
|
|
set x2 350
|
|
set y2 120
|
|
|
|
vselect 0 0
|
|
vselect ${x1} ${y1}
|
|
vselect ${x2} ${y2} 1
|
|
|
|
set NbSelected1 [vnbselected]
|
|
if { ${NbSelected1} != 2 } {
|
|
puts "Error : (case 1)"
|
|
}
|
|
|
|
vselect ${x2} ${y2} 1
|
|
|
|
set NbSelected1 [vnbselected]
|
|
if { ${NbSelected1} != 1 } {
|
|
puts "Error : (case 2)"
|
|
}
|
|
|
|
set only_screen 1
|