interpolationDlg.ui 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>InterpolationDlg</class>
  4. <widget class="QDialog" name="InterpolationDlg">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>400</width>
  10. <height>260</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Interpolation</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout">
  17. <item>
  18. <widget class="QGroupBox" name="groupBox">
  19. <property name="title">
  20. <string>Neighbors extraction</string>
  21. </property>
  22. <layout class="QGridLayout" name="gridLayout">
  23. <item row="1" column="2">
  24. <widget class="QDoubleSpinBox" name="radiusDoubleSpinBox">
  25. <property name="toolTip">
  26. <string>Radius of the sphere inside which neighbors will be extracted</string>
  27. </property>
  28. <property name="decimals">
  29. <number>6</number>
  30. </property>
  31. <property name="maximum">
  32. <double>1000000000.000000000000000</double>
  33. </property>
  34. </widget>
  35. </item>
  36. <item row="0" column="2">
  37. <widget class="QRadioButton" name="radiusRadioButton">
  38. <property name="toolTip">
  39. <string>Extracts the neighbors inside a sphere</string>
  40. </property>
  41. <property name="text">
  42. <string>Radius (Sphere)</string>
  43. </property>
  44. <property name="checked">
  45. <bool>true</bool>
  46. </property>
  47. </widget>
  48. </item>
  49. <item row="0" column="0">
  50. <widget class="QRadioButton" name="nnRadioButton">
  51. <property name="toolTip">
  52. <string>Use only the nearest neighbor (fast)</string>
  53. </property>
  54. <property name="text">
  55. <string>Nearest neighbor</string>
  56. </property>
  57. </widget>
  58. </item>
  59. <item row="0" column="1">
  60. <widget class="QRadioButton" name="knnRadioButton">
  61. <property name="toolTip">
  62. <string>Use the 'k' nearest neighbors
  63. (faster than 'radius' based search, but more approximate)</string>
  64. </property>
  65. <property name="text">
  66. <string>Nearest neighbors</string>
  67. </property>
  68. </widget>
  69. </item>
  70. <item row="1" column="1">
  71. <widget class="QSpinBox" name="knnSpinBox">
  72. <property name="enabled">
  73. <bool>false</bool>
  74. </property>
  75. <property name="toolTip">
  76. <string>Number of neighbors to extract</string>
  77. </property>
  78. <property name="minimum">
  79. <number>3</number>
  80. </property>
  81. <property name="maximum">
  82. <number>1000000000</number>
  83. </property>
  84. <property name="value">
  85. <number>8</number>
  86. </property>
  87. </widget>
  88. </item>
  89. </layout>
  90. </widget>
  91. </item>
  92. <item>
  93. <widget class="QGroupBox" name="algoGroupBox">
  94. <property name="title">
  95. <string>Interpolation algorithm</string>
  96. </property>
  97. <layout class="QGridLayout" name="gridLayout_2">
  98. <item row="1" column="0">
  99. <widget class="QRadioButton" name="medianRadioButton">
  100. <property name="toolTip">
  101. <string>Keep the median of the neighbors SF values</string>
  102. </property>
  103. <property name="text">
  104. <string>Median</string>
  105. </property>
  106. <property name="checked">
  107. <bool>true</bool>
  108. </property>
  109. </widget>
  110. </item>
  111. <item row="0" column="0">
  112. <widget class="QRadioButton" name="averageRadioButton">
  113. <property name="toolTip">
  114. <string>Keep the average of the neighbors SF values</string>
  115. </property>
  116. <property name="text">
  117. <string>Average</string>
  118. </property>
  119. </widget>
  120. </item>
  121. <item row="2" column="0">
  122. <widget class="QRadioButton" name="normalDistribRadioButton">
  123. <property name="toolTip">
  124. <string>Compute a weighted average of the neighbors SF values
  125. (the weights will follow a Normal distribution)</string>
  126. </property>
  127. <property name="text">
  128. <string>Normal distribution</string>
  129. </property>
  130. </widget>
  131. </item>
  132. <item row="2" column="1">
  133. <widget class="QFrame" name="kernelFrame">
  134. <property name="enabled">
  135. <bool>false</bool>
  136. </property>
  137. <property name="sizePolicy">
  138. <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
  139. <horstretch>0</horstretch>
  140. <verstretch>0</verstretch>
  141. </sizepolicy>
  142. </property>
  143. <layout class="QHBoxLayout" name="horizontalLayout">
  144. <property name="margin">
  145. <number>0</number>
  146. </property>
  147. <item>
  148. <spacer name="horizontalSpacer">
  149. <property name="orientation">
  150. <enum>Qt::Horizontal</enum>
  151. </property>
  152. <property name="sizeHint" stdset="0">
  153. <size>
  154. <width>81</width>
  155. <height>20</height>
  156. </size>
  157. </property>
  158. </spacer>
  159. </item>
  160. <item>
  161. <widget class="QLabel" name="label">
  162. <property name="text">
  163. <string>sigma</string>
  164. </property>
  165. </widget>
  166. </item>
  167. <item>
  168. <widget class="QDoubleSpinBox" name="kernelDoubleSpinBox">
  169. <property name="toolTip">
  170. <string>Kernel of the Normal distribution</string>
  171. </property>
  172. <property name="decimals">
  173. <number>6</number>
  174. </property>
  175. <property name="maximum">
  176. <double>1000000000.000000000000000</double>
  177. </property>
  178. <property name="value">
  179. <double>1.000000000000000</double>
  180. </property>
  181. </widget>
  182. </item>
  183. </layout>
  184. </widget>
  185. </item>
  186. </layout>
  187. </widget>
  188. </item>
  189. <item>
  190. <spacer name="verticalSpacer">
  191. <property name="orientation">
  192. <enum>Qt::Vertical</enum>
  193. </property>
  194. <property name="sizeHint" stdset="0">
  195. <size>
  196. <width>20</width>
  197. <height>40</height>
  198. </size>
  199. </property>
  200. </spacer>
  201. </item>
  202. <item>
  203. <widget class="QDialogButtonBox" name="buttonBox">
  204. <property name="orientation">
  205. <enum>Qt::Horizontal</enum>
  206. </property>
  207. <property name="standardButtons">
  208. <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
  209. </property>
  210. </widget>
  211. </item>
  212. </layout>
  213. </widget>
  214. <resources/>
  215. <connections>
  216. <connection>
  217. <sender>buttonBox</sender>
  218. <signal>accepted()</signal>
  219. <receiver>InterpolationDlg</receiver>
  220. <slot>accept()</slot>
  221. <hints>
  222. <hint type="sourcelabel">
  223. <x>248</x>
  224. <y>254</y>
  225. </hint>
  226. <hint type="destinationlabel">
  227. <x>157</x>
  228. <y>274</y>
  229. </hint>
  230. </hints>
  231. </connection>
  232. <connection>
  233. <sender>buttonBox</sender>
  234. <signal>rejected()</signal>
  235. <receiver>InterpolationDlg</receiver>
  236. <slot>reject()</slot>
  237. <hints>
  238. <hint type="sourcelabel">
  239. <x>316</x>
  240. <y>260</y>
  241. </hint>
  242. <hint type="destinationlabel">
  243. <x>286</x>
  244. <y>274</y>
  245. </hint>
  246. </hints>
  247. </connection>
  248. <connection>
  249. <sender>knnRadioButton</sender>
  250. <signal>toggled(bool)</signal>
  251. <receiver>knnSpinBox</receiver>
  252. <slot>setEnabled(bool)</slot>
  253. <hints>
  254. <hint type="sourcelabel">
  255. <x>59</x>
  256. <y>40</y>
  257. </hint>
  258. <hint type="destinationlabel">
  259. <x>37</x>
  260. <y>64</y>
  261. </hint>
  262. </hints>
  263. </connection>
  264. <connection>
  265. <sender>radiusRadioButton</sender>
  266. <signal>toggled(bool)</signal>
  267. <receiver>radiusDoubleSpinBox</receiver>
  268. <slot>setEnabled(bool)</slot>
  269. <hints>
  270. <hint type="sourcelabel">
  271. <x>194</x>
  272. <y>40</y>
  273. </hint>
  274. <hint type="destinationlabel">
  275. <x>194</x>
  276. <y>64</y>
  277. </hint>
  278. </hints>
  279. </connection>
  280. <connection>
  281. <sender>normalDistribRadioButton</sender>
  282. <signal>toggled(bool)</signal>
  283. <receiver>kernelFrame</receiver>
  284. <slot>setEnabled(bool)</slot>
  285. <hints>
  286. <hint type="sourcelabel">
  287. <x>74</x>
  288. <y>168</y>
  289. </hint>
  290. <hint type="destinationlabel">
  291. <x>258</x>
  292. <y>170</y>
  293. </hint>
  294. </hints>
  295. </connection>
  296. <connection>
  297. <sender>nnRadioButton</sender>
  298. <signal>toggled(bool)</signal>
  299. <receiver>algoGroupBox</receiver>
  300. <slot>setDisabled(bool)</slot>
  301. <hints>
  302. <hint type="sourcelabel">
  303. <x>76</x>
  304. <y>40</y>
  305. </hint>
  306. <hint type="destinationlabel">
  307. <x>199</x>
  308. <y>141</y>
  309. </hint>
  310. </hints>
  311. </connection>
  312. </connections>
  313. </ui>