0032366: Visualization, SelectMgr_ViewerSelector3d::ToPixMap() - add option dumping...
[occt.git] / tests / vselect / sphere / single_click_selection
diff --git a/tests/vselect/sphere/single_click_selection b/tests/vselect/sphere/single_click_selection
new file mode 100644 (file)
index 0000000..d65469b
--- /dev/null
@@ -0,0 +1,22 @@
+puts "================================="
+puts "0032182: Visualization - add Select3D_SensitiveSphere"
+puts "Tests selection of Select3D_SenstiveSphere"
+puts "================================="
+
+psphere s 1
+vdisplay -dispMode 1 s
+vfit
+vselect 300 200
+if { ![string match "*Selected*" [vstate s]] } { puts "Error: sphere should be selected" }
+vselect 195 110
+if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" } 
+vselect 390 110
+if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }
+vselect 390 282
+if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }
+vselect 213 291
+if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }
+vselect 300 200 -allowoverlap 1
+if { ![string match "*Selected*" [vstate s]] } { puts "Error: sphere should be selected" }
+vselect 195 110 -allowoverlap 1
+if { [string match "*Selected*" [vstate s]] } { puts "Error: sphere should be unselected" }