decimaterToolbar.ui 17.6 KB
Newer Older
Jan Möbius's avatar
 
Jan Möbius committed
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>DecimaterToolbar</class>
 <widget class="QWidget" name="DecimaterToolbar">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9 10
    <width>378</width>
    <height>580</height>
Jan Möbius's avatar
 
Jan Möbius committed
11 12 13 14 15 16
   </rect>
  </property>
  <property name="windowTitle">
   <string>Form</string>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
   <item>
    <widget class="QGroupBox" name="groupBox">
     <property name="title">
      <string>Decimation Order</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_3">
      <item>
       <widget class="QRadioButton" name="rbByDistance">
        <property name="text">
         <string>by Distance</string>
        </property>
        <property name="checked">
         <bool>true</bool>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QRadioButton" name="rbByNormalDeviation">
        <property name="text">
         <string>by Normal Deviation</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QRadioButton" name="rbByEdgeLength">
        <property name="text">
         <string>by Edge length</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
Jan Möbius's avatar
 
Jan Möbius committed
50
   <item>
Jan Möbius's avatar
Jan Möbius committed
51
    <widget class="QGroupBox" name="groupBox_2">
Jan Möbius's avatar
 
Jan Möbius committed
52
     <property name="title">
Jan Möbius's avatar
Jan Möbius committed
53
      <string>Constraints</string>
Jan Möbius's avatar
 
Jan Möbius committed
54 55 56
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_2">
      <item>
Jan Möbius's avatar
Jan Möbius committed
57 58 59
       <layout class="QGridLayout" name="gridLayout">
        <item row="0" column="0">
         <widget class="QCheckBox" name="cbDistance">
Jan Möbius's avatar
Jan Möbius committed
60 61 62
          <property name="toolTip">
           <string>The Hausdorff distance between the original and the decimated mesh will be lower than the given tolerance.</string>
          </property>
Jan Möbius's avatar
Jan Möbius committed
63 64 65 66 67 68 69
          <property name="text">
           <string>Distance</string>
          </property>
         </widget>
        </item>
        <item row="0" column="2">
         <widget class="QDoubleSpinBox" name="distance">
Jan Möbius's avatar
Jan Möbius committed
70 71 72
          <property name="toolTip">
           <string>The Hausdorff distance between the original and the decimated mesh will be lower than the given tolerance.</string>
          </property>
Jan Möbius's avatar
Jan Möbius committed
73
          <property name="decimals">
74
           <number>5</number>
Jan Möbius's avatar
Jan Möbius committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
          </property>
          <property name="maximum">
           <double>10000.000000000000000</double>
          </property>
          <property name="singleStep">
           <double>1.000000000000000</double>
          </property>
          <property name="value">
           <double>0.000000000000000</double>
          </property>
         </widget>
        </item>
        <item row="1" column="0">
         <widget class="QCheckBox" name="cbNormalDev">
          <property name="toolTip">
           <string>Restrict Normal Deviation</string>
          </property>
          <property name="statusTip">
           <string>Restrict Normal Deviation</string>
          </property>
          <property name="text">
           <string>Normal Dev.</string>
          </property>
          <property name="checked">
           <bool>true</bool>
          </property>
         </widget>
        </item>
        <item row="1" column="1">
         <widget class="QSlider" name="normalDeviationSlider">
          <property name="toolTip">
           <string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Maximal normal deviation between &lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;original normal and normals after &lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;decimation step defined in degrees.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
          </property>
          <property name="statusTip">
           <string>Restrict Normal Deviation</string>
          </property>
          <property name="maximum">
           <number>180</number>
          </property>
          <property name="value">
           <number>10</number>
          </property>
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
         </widget>
        </item>
        <item row="1" column="2">
         <widget class="QSpinBox" name="normalDeviation">
          <property name="enabled">
           <bool>true</bool>
          </property>
          <property name="toolTip">
           <string comment="Maximal normal deviation between original normal and normals after decimation step defined in degrees.">&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Maximal normal deviation between &lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;original normal and normals after &lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;decimation step defined in degrees.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
          </property>
          <property name="statusTip">
           <string>Restrict Normal deviation</string>
          </property>
          <property name="maximum">
           <number>180</number>
          </property>
          <property name="value">
           <number>10</number>
          </property>
         </widget>
        </item>
151
        <item row="3" column="0">
Jan Möbius's avatar
Jan Möbius committed
152 153 154 155
         <widget class="QCheckBox" name="cbRoundness">
          <property name="enabled">
           <bool>true</bool>
          </property>
Jan Möbius's avatar
Jan Möbius committed
156 157 158
          <property name="toolTip">
           <string>The roundness ( radius of the circumference divided by the   length of the shortest edge) after the collapse has to be lower than the given value.</string>
          </property>
Jan Möbius's avatar
Jan Möbius committed
159 160 161 162 163 164 165 166 167 168 169
          <property name="text">
           <string>Roundness</string>
          </property>
          <property name="checkable">
           <bool>true</bool>
          </property>
          <property name="checked">
           <bool>false</bool>
          </property>
         </widget>
        </item>
170
        <item row="3" column="1">
Jan Möbius's avatar
Jan Möbius committed
171 172 173 174 175 176 177 178 179 180 181 182
         <widget class="QSlider" name="roundnessSlider">
          <property name="maximum">
           <number>100</number>
          </property>
          <property name="value">
           <number>50</number>
          </property>
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
         </widget>
        </item>
183
        <item row="3" column="2">
Jan Möbius's avatar
Jan Möbius committed
184 185 186 187
         <widget class="QDoubleSpinBox" name="roundness">
          <property name="enabled">
           <bool>true</bool>
          </property>
Jan Möbius's avatar
Jan Möbius committed
188 189 190
          <property name="toolTip">
           <string>The roundness ( radius of the circumference divided by the   length of the shortest edge) after the collapse has to be lower than the given value.</string>
          </property>
Jan Möbius's avatar
Jan Möbius committed
191
          <property name="decimals">
192
           <number>5</number>
Jan Möbius's avatar
Jan Möbius committed
193 194 195 196 197 198 199 200 201 202 203 204
          </property>
          <property name="maximum">
           <double>1.000000000000000</double>
          </property>
          <property name="singleStep">
           <double>0.010000000000000</double>
          </property>
          <property name="value">
           <double>0.500000000000000</double>
          </property>
         </widget>
        </item>
205 206
        <item row="4" column="0">
         <widget class="QCheckBox" name="cbAspectRatio">
Jan Möbius's avatar
Jan Möbius committed
207 208 209
          <property name="toolTip">
           <string>The aspect ration of a triangle( the length of the longest edge divided by its corresponding height) after the collapse has to be greater than the given value.</string>
          </property>
Jan Möbius's avatar
Jan Möbius committed
210
          <property name="text">
211
           <string>AspectRatio</string>
Jan Möbius's avatar
Jan Möbius committed
212 213 214
          </property>
         </widget>
        </item>
215 216
        <item row="4" column="2">
         <widget class="QDoubleSpinBox" name="aspectRatio">
Jan Möbius's avatar
Jan Möbius committed
217 218 219
          <property name="toolTip">
           <string>The aspect ration of a triangle( the length of the longest edge divided by its corresponding height) after the collapse has to be greater than the given value.</string>
          </property>
220 221 222
          <property name="decimals">
           <number>4</number>
          </property>
Jan Möbius's avatar
Jan Möbius committed
223
          <property name="minimum">
224
           <double>1.200000000000000</double>
Jan Möbius's avatar
Jan Möbius committed
225 226
          </property>
          <property name="maximum">
227
           <double>15.000000000000000</double>
Jan Möbius's avatar
Jan Möbius committed
228
          </property>
229 230
          <property name="singleStep">
           <double>0.100000000000000</double>
Jan Möbius's avatar
Jan Möbius committed
231
          </property>
232 233
          <property name="value">
           <double>3.000000000000000</double>
Jan Möbius's avatar
Jan Möbius committed
234 235 236
          </property>
         </widget>
        </item>
237 238
        <item row="4" column="1">
         <widget class="QSlider" name="aspectRatioSlider">
Jan Möbius's avatar
Jan Möbius committed
239
          <property name="minimum">
240
           <number>120</number>
Jan Möbius's avatar
Jan Möbius committed
241 242
          </property>
          <property name="maximum">
243
           <number>1500</number>
Jan Möbius's avatar
Jan Möbius committed
244 245
          </property>
          <property name="value">
246 247 248 249 250 251 252 253 254
           <number>300</number>
          </property>
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
         </widget>
        </item>
        <item row="2" column="0">
         <widget class="QCheckBox" name="cbEdgeLength">
Jan Möbius's avatar
Jan Möbius committed
255 256 257
          <property name="toolTip">
           <string>A collapse is only performed, if the length after the collapse is lower than the given value.</string>
          </property>
258 259 260 261 262 263 264
          <property name="text">
           <string>Edge Length</string>
          </property>
         </widget>
        </item>
        <item row="2" column="2">
         <widget class="QDoubleSpinBox" name="edgeLength">
Jan Möbius's avatar
Jan Möbius committed
265 266 267
          <property name="toolTip">
           <string>A collapse is only performed, if the length after the collapse is lower than the given value.</string>
          </property>
268 269 270
          <property name="decimals">
           <number>5</number>
          </property>
271 272 273 274 275 276 277
          <property name="singleStep">
           <double>0.010000000000000</double>
          </property>
         </widget>
        </item>
        <item row="5" column="0">
         <widget class="QCheckBox" name="cbIndependentSets">
Jan Möbius's avatar
Jan Möbius committed
278 279 280
          <property name="toolTip">
           <string>Lock one-ring around remaining vertex after a collapse to prevent further collapses of halfedges incident to the one-ring vertices.</string>
          </property>
281 282
          <property name="text">
           <string>Independent Sets</string>
Jan Möbius's avatar
Jan Möbius committed
283 284 285 286
          </property>
         </widget>
        </item>
       </layout>
Jan Möbius's avatar
 
Jan Möbius committed
287 288
      </item>
      <item>
Jan Möbius's avatar
Jan Möbius committed
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
       <layout class="QHBoxLayout" name="horizontalLayout">
        <item>
         <widget class="QLabel" name="label_3">
          <property name="text">
           <string>Current number of vertices:</string>
          </property>
         </widget>
        </item>
        <item>
         <widget class="QLabel" name="currentNumVertices">
          <property name="font">
           <font>
            <weight>75</weight>
            <bold>true</bold>
           </font>
          </property>
          <property name="text">
           <string>&lt;not available&gt;</string>
          </property>
         </widget>
        </item>
       </layout>
Jan Möbius's avatar
 
Jan Möbius committed
311
      </item>
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405
      <item>
       <widget class="QGroupBox" name="groupBox_3">
        <property name="title">
         <string>Stock conditions</string>
        </property>
        <layout class="QGridLayout" name="gridLayout_2">
         <item row="0" column="0">
          <widget class="QRadioButton" name="rbTriangles">
           <property name="text">
            <string>#Triangles</string>
           </property>
          </widget>
         </item>
         <item row="0" column="1">
          <widget class="QSlider" name="trianglesCountSlider">
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>100000</number>
           </property>
           <property name="value">
            <number>5000</number>
           </property>
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
          </widget>
         </item>
         <item row="0" column="2">
          <widget class="QSpinBox" name="trianglesCount">
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>99999</number>
           </property>
           <property name="value">
            <number>5000</number>
           </property>
          </widget>
         </item>
         <item row="1" column="0">
          <widget class="QRadioButton" name="rbVertices">
           <property name="text">
            <string>#Vertices</string>
           </property>
           <property name="checked">
            <bool>true</bool>
           </property>
          </widget>
         </item>
         <item row="1" column="1">
          <widget class="QSlider" name="verticesCountSlider">
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>100000</number>
           </property>
           <property name="value">
            <number>5000</number>
           </property>
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
          </widget>
         </item>
         <item row="1" column="2">
          <widget class="QSpinBox" name="verticesCount">
           <property name="enabled">
            <bool>true</bool>
           </property>
           <property name="minimum">
            <number>1</number>
           </property>
           <property name="maximum">
            <number>99999</number>
           </property>
           <property name="value">
            <number>5000</number>
           </property>
          </widget>
         </item>
         <item row="2" column="0">
          <widget class="QRadioButton" name="rbConstraintsOnly">
           <property name="text">
            <string>Constraints only</string>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
Jan Möbius's avatar
 
Jan Möbius committed
406
      <item>
Jan Möbius's avatar
Jan Möbius committed
407
       <widget class="QPushButton" name="pbDecimate">
Jan Möbius's avatar
 
Jan Möbius committed
408 409 410 411
        <property name="enabled">
         <bool>true</bool>
        </property>
        <property name="text">
Jan Möbius's avatar
Jan Möbius committed
412
         <string>Decimate</string>
Jan Möbius's avatar
 
Jan Möbius committed
413 414 415 416 417 418 419
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
Jan Möbius's avatar
Jan Möbius committed
420 421 422
    <spacer name="verticalSpacer">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
Jan Möbius's avatar
 
Jan Möbius committed
423
     </property>
Jan Möbius's avatar
Jan Möbius committed
424 425 426 427 428 429 430
     <property name="sizeHint" stdset="0">
      <size>
       <width>20</width>
       <height>40</height>
      </size>
     </property>
    </spacer>
Jan Möbius's avatar
 
Jan Möbius committed
431 432 433
   </item>
  </layout>
 </widget>
Jan Möbius's avatar
Jan Möbius committed
434
 <layoutdefault spacing="6" margin="11"/>
Jan Möbius's avatar
 
Jan Möbius committed
435
 <resources/>
Jan Möbius's avatar
Jan Möbius committed
436 437 438 439 440 441 442 443
 <connections>
  <connection>
   <sender>normalDeviationSlider</sender>
   <signal>valueChanged(int)</signal>
   <receiver>normalDeviation</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
444 445
     <x>235</x>
     <y>211</y>
Jan Möbius's avatar
Jan Möbius committed
446 447
    </hint>
    <hint type="destinationlabel">
448 449
     <x>344</x>
     <y>212</y>
Jan Möbius's avatar
Jan Möbius committed
450 451 452 453 454 455 456 457 458 459
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>normalDeviation</sender>
   <signal>valueChanged(int)</signal>
   <receiver>normalDeviationSlider</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
460 461
     <x>344</x>
     <y>212</y>
Jan Möbius's avatar
Jan Möbius committed
462 463
    </hint>
    <hint type="destinationlabel">
464 465
     <x>235</x>
     <y>211</y>
Jan Möbius's avatar
Jan Möbius committed
466 467 468 469
    </hint>
   </hints>
  </connection>
  <connection>
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486
   <sender>trianglesCountSlider</sender>
   <signal>sliderMoved(int)</signal>
   <receiver>trianglesCount</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>201</x>
     <y>365</y>
    </hint>
    <hint type="destinationlabel">
     <x>295</x>
     <y>367</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>trianglesCount</sender>
Jan Möbius's avatar
Jan Möbius committed
487
   <signal>valueChanged(int)</signal>
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503
   <receiver>trianglesCountSlider</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>291</x>
     <y>362</y>
    </hint>
    <hint type="destinationlabel">
     <x>230</x>
     <y>365</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>verticesCountSlider</sender>
   <signal>sliderMoved(int)</signal>
Jan Möbius's avatar
Jan Möbius committed
504 505 506 507
   <receiver>verticesCount</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
508 509
     <x>234</x>
     <y>390</y>
Jan Möbius's avatar
Jan Möbius committed
510 511
    </hint>
    <hint type="destinationlabel">
512 513
     <x>312</x>
     <y>399</y>
Jan Möbius's avatar
Jan Möbius committed
514 515 516 517 518 519 520 521 522 523
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>verticesCount</sender>
   <signal>valueChanged(int)</signal>
   <receiver>verticesCountSlider</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
524 525
     <x>317</x>
     <y>388</y>
Jan Möbius's avatar
Jan Möbius committed
526 527
    </hint>
    <hint type="destinationlabel">
528 529
     <x>228</x>
     <y>398</y>
Jan Möbius's avatar
Jan Möbius committed
530 531 532 533
    </hint>
   </hints>
  </connection>
 </connections>
Jan Möbius's avatar
 
Jan Möbius committed
534
</ui>