FreeCAD

Форк
0
/
DlgSettingsMeshView.ui 
500 строк · 16.5 Кб
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ui version="4.0">
3
 <class>MeshGui::DlgSettingsMeshView</class>
4
 <widget class="QWidget" name="MeshGui::DlgSettingsMeshView">
5
  <property name="geometry">
6
   <rect>
7
    <x>0</x>
8
    <y>0</y>
9
    <width>559</width>
10
    <height>396</height>
11
   </rect>
12
  </property>
13
  <property name="windowTitle">
14
   <string>Mesh view</string>
15
  </property>
16
  <layout class="QGridLayout">
17
   <property name="leftMargin">
18
    <number>9</number>
19
   </property>
20
   <property name="topMargin">
21
    <number>9</number>
22
   </property>
23
   <property name="rightMargin">
24
    <number>9</number>
25
   </property>
26
   <property name="bottomMargin">
27
    <number>9</number>
28
   </property>
29
   <property name="spacing">
30
    <number>6</number>
31
   </property>
32
   <item row="0" column="0">
33
    <widget class="QGroupBox" name="groupBox">
34
     <property name="title">
35
      <string>Default appearance for new meshes</string>
36
     </property>
37
     <layout class="QGridLayout">
38
      <property name="leftMargin">
39
       <number>9</number>
40
      </property>
41
      <property name="topMargin">
42
       <number>9</number>
43
      </property>
44
      <property name="rightMargin">
45
       <number>9</number>
46
      </property>
47
      <property name="bottomMargin">
48
       <number>9</number>
49
      </property>
50
      <property name="spacing">
51
       <number>6</number>
52
      </property>
53
      <item row="0" column="0">
54
       <layout class="QGridLayout">
55
        <property name="leftMargin">
56
         <number>0</number>
57
        </property>
58
        <property name="topMargin">
59
         <number>0</number>
60
        </property>
61
        <property name="rightMargin">
62
         <number>0</number>
63
        </property>
64
        <property name="bottomMargin">
65
         <number>0</number>
66
        </property>
67
        <property name="spacing">
68
         <number>6</number>
69
        </property>
70
        <item row="0" column="0">
71
         <widget class="QLabel" name="labelFaceColor">
72
          <property name="text">
73
           <string>Default mesh color</string>
74
          </property>
75
         </widget>
76
        </item>
77
        <item row="0" column="1">
78
         <widget class="Gui::PrefColorButton" name="buttonMeshColor">
79
          <property name="toolTip">
80
           <string>Default color for new meshes</string>
81
          </property>
82
          <property name="color">
83
           <color>
84
            <red>204</red>
85
            <green>204</green>
86
            <blue>204</blue>
87
           </color>
88
          </property>
89
          <property name="prefEntry" stdset="0">
90
           <cstring>MeshColor</cstring>
91
          </property>
92
          <property name="prefPath" stdset="0">
93
           <cstring>Mod/Mesh</cstring>
94
          </property>
95
         </widget>
96
        </item>
97
        <item row="0" column="2">
98
         <spacer>
99
          <property name="orientation">
100
           <enum>Qt::Horizontal</enum>
101
          </property>
102
          <property name="sizeType">
103
           <enum>QSizePolicy::Maximum</enum>
104
          </property>
105
          <property name="sizeHint" stdset="0">
106
           <size>
107
            <width>41</width>
108
            <height>20</height>
109
           </size>
110
          </property>
111
         </spacer>
112
        </item>
113
        <item row="0" column="3">
114
         <widget class="QLabel" name="labelMeshTransparency">
115
          <property name="text">
116
           <string>Mesh transparency</string>
117
          </property>
118
         </widget>
119
        </item>
120
        <item row="0" column="4">
121
         <widget class="Gui::PrefSpinBox" name="spinMeshTransparency">
122
          <property name="suffix">
123
           <string notr="true">%</string>
124
          </property>
125
          <property name="maximum">
126
           <number>100</number>
127
          </property>
128
          <property name="singleStep">
129
           <number>5</number>
130
          </property>
131
          <property name="prefEntry" stdset="0">
132
           <cstring>MeshTransparency</cstring>
133
          </property>
134
          <property name="prefPath" stdset="0">
135
           <cstring>Mod/Mesh</cstring>
136
          </property>
137
         </widget>
138
        </item>
139
        <item row="1" column="0">
140
         <widget class="QLabel" name="labelLineColor">
141
          <property name="text">
142
           <string>Default line color</string>
143
          </property>
144
         </widget>
145
        </item>
146
        <item row="1" column="1">
147
         <widget class="Gui::PrefColorButton" name="buttonLineColor">
148
          <property name="toolTip">
149
           <string>Default line color for new meshes</string>
150
          </property>
151
          <property name="color">
152
           <color>
153
            <red>0</red>
154
            <green>0</green>
155
            <blue>0</blue>
156
           </color>
157
          </property>
158
          <property name="prefEntry" stdset="0">
159
           <cstring>LineColor</cstring>
160
          </property>
161
          <property name="prefPath" stdset="0">
162
           <cstring>Mod/Mesh</cstring>
163
          </property>
164
         </widget>
165
        </item>
166
        <item row="1" column="2">
167
         <spacer>
168
          <property name="orientation">
169
           <enum>Qt::Horizontal</enum>
170
          </property>
171
          <property name="sizeType">
172
           <enum>QSizePolicy::Maximum</enum>
173
          </property>
174
          <property name="sizeHint" stdset="0">
175
           <size>
176
            <width>41</width>
177
            <height>20</height>
178
           </size>
179
          </property>
180
         </spacer>
181
        </item>
182
        <item row="1" column="3">
183
         <widget class="QLabel" name="labelLineTransparency">
184
          <property name="text">
185
           <string>Line transparency</string>
186
          </property>
187
         </widget>
188
        </item>
189
        <item row="1" column="4">
190
         <widget class="Gui::PrefSpinBox" name="spinLineTransparency">
191
          <property name="suffix">
192
           <string notr="true">%</string>
193
          </property>
194
          <property name="maximum">
195
           <number>100</number>
196
          </property>
197
          <property name="singleStep">
198
           <number>5</number>
199
          </property>
200
          <property name="prefEntry" stdset="0">
201
           <cstring>LineTransparency</cstring>
202
          </property>
203
          <property name="prefPath" stdset="0">
204
           <cstring>Mod/Mesh</cstring>
205
          </property>
206
         </widget>
207
        </item>
208
        <item row="2" column="0">
209
         <widget class="QLabel" name="labelBackfaceColor">
210
          <property name="text">
211
           <string>Backface color</string>
212
          </property>
213
         </widget>
214
        </item>
215
        <item row="2" column="1">
216
         <widget class="Gui::PrefColorButton" name="buttonBackfaceColor">
217
          <property name="enabled">
218
           <bool>false</bool>
219
          </property>
220
          <property name="color">
221
           <color>
222
            <red>204</red>
223
            <green>204</green>
224
            <blue>204</blue>
225
           </color>
226
          </property>
227
          <property name="prefEntry" stdset="0">
228
           <cstring>BackfaceColor</cstring>
229
          </property>
230
          <property name="prefPath" stdset="0">
231
           <cstring>Mod/Mesh</cstring>
232
          </property>
233
         </widget>
234
        </item>
235
        <item row="2" column="2" colspan="3">
236
         <spacer>
237
          <property name="orientation">
238
           <enum>Qt::Horizontal</enum>
239
          </property>
240
          <property name="sizeHint" stdset="0">
241
           <size>
242
            <width>191</width>
243
            <height>20</height>
244
           </size>
245
          </property>
246
         </spacer>
247
        </item>
248
        <item row="3" column="0">
249
         <widget class="Gui::PrefCheckBox" name="checkboxRendering">
250
          <property name="toolTip">
251
           <string>The bottom side of surface will be rendered the same way than top side.
252
If not checked, it depends on the option &quot;Enable backlight color&quot;
253
(preferences section Display -&gt; 3D View). Either the backlight color
254
will be used or black.</string>
255
          </property>
256
          <property name="text">
257
           <string>Two-side rendering</string>
258
          </property>
259
          <property name="checked">
260
           <bool>false</bool>
261
          </property>
262
          <property name="prefEntry" stdset="0">
263
           <cstring>TwoSideRendering</cstring>
264
          </property>
265
          <property name="prefPath" stdset="0">
266
           <cstring>Mod/Mesh</cstring>
267
          </property>
268
         </widget>
269
        </item>
270
        <item row="3" column="1" colspan="4">
271
         <widget class="Gui::PrefCheckBox" name="checkboxBoundbox">
272
          <property name="toolTip">
273
           <string>A bounding box will be displayed</string>
274
          </property>
275
          <property name="text">
276
           <string>Show bounding-box for highlighted or selected meshes</string>
277
          </property>
278
          <property name="checked">
279
           <bool>false</bool>
280
          </property>
281
          <property name="prefEntry" stdset="0">
282
           <cstring>ShowBoundingBox</cstring>
283
          </property>
284
          <property name="prefPath" stdset="0">
285
           <cstring>Mod/Mesh</cstring>
286
          </property>
287
         </widget>
288
        </item>
289
       </layout>
290
      </item>
291
      <item row="0" column="1">
292
       <spacer>
293
        <property name="orientation">
294
         <enum>Qt::Horizontal</enum>
295
        </property>
296
        <property name="sizeType">
297
         <enum>QSizePolicy::Maximum</enum>
298
        </property>
299
        <property name="sizeHint" stdset="0">
300
         <size>
301
          <width>71</width>
302
          <height>20</height>
303
         </size>
304
        </property>
305
       </spacer>
306
      </item>
307
     </layout>
308
    </widget>
309
   </item>
310
   <item row="1" column="0">
311
    <widget class="QGroupBox" name="GroupBox12">
312
     <property name="title">
313
      <string>Smoothing</string>
314
     </property>
315
     <layout class="QGridLayout">
316
      <property name="leftMargin">
317
       <number>9</number>
318
      </property>
319
      <property name="topMargin">
320
       <number>9</number>
321
      </property>
322
      <property name="rightMargin">
323
       <number>9</number>
324
      </property>
325
      <property name="bottomMargin">
326
       <number>9</number>
327
      </property>
328
      <property name="spacing">
329
       <number>6</number>
330
      </property>
331
      <item row="0" column="0">
332
       <widget class="Gui::PrefCheckBox" name="checkboxNormal">
333
        <property name="toolTip">
334
         <string>If this option is set Phong shading is used, otherwise flat shading.
335
Shading defines the appearance of surfaces.
336

337
With flat shading the surface normals are not defined per vertex that leads
338
to a unreal appearance for curved surfaces while using Phong shading leads
339
to a smoother appearance.
340
</string>
341
        </property>
342
        <property name="text">
343
         <string>Define normal per vertex</string>
344
        </property>
345
        <property name="prefEntry" stdset="0">
346
         <cstring>VertexPerNormals</cstring>
347
        </property>
348
        <property name="prefPath" stdset="0">
349
         <cstring>Mod/Mesh</cstring>
350
        </property>
351
       </widget>
352
      </item>
353
      <item row="1" column="0">
354
       <widget class="QLabel" name="labelAngle">
355
        <property name="toolTip">
356
         <string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;&quot;&gt;&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;This is the smallest angle between two faces where normals get calculated to do flat shading.&lt;/p&gt;&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;If the angle between the normals of two neighbouring faces is less than the crease angle, the faces will be smoothshaded around their common edge.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
357
        </property>
358
        <property name="text">
359
         <string>Crease angle</string>
360
        </property>
361
       </widget>
362
      </item>
363
      <item row="1" column="1">
364
       <widget class="Gui::PrefDoubleSpinBox" name="spinboxAngle">
365
        <property name="enabled">
366
         <bool>false</bool>
367
        </property>
368
        <property name="toolTip">
369
         <string>Crease angle is a threshold angle between two faces.
370

371
 If face angle ≥ crease angle, facet shading is used
372
 If face angle &lt; crease angle, smooth shading is used</string>
373
        </property>
374
        <property name="suffix">
375
         <string notr="true"> °</string>
376
        </property>
377
        <property name="maximum">
378
         <double>180.000000000000000</double>
379
        </property>
380
        <property name="prefEntry" stdset="0">
381
         <cstring>CreaseAngle</cstring>
382
        </property>
383
        <property name="prefPath" stdset="0">
384
         <cstring>Mod/Mesh</cstring>
385
        </property>
386
       </widget>
387
      </item>
388
      <item row="1" column="2">
389
       <spacer>
390
        <property name="orientation">
391
         <enum>Qt::Horizontal</enum>
392
        </property>
393
        <property name="sizeHint" stdset="0">
394
         <size>
395
          <width>221</width>
396
          <height>20</height>
397
         </size>
398
        </property>
399
       </spacer>
400
      </item>
401
      <item row="2" column="0" colspan="3">
402
       <widget class="QLabel" name="labelHint">
403
        <property name="text">
404
         <string>&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;/head&gt;&lt;body style=&quot; white-space: pre-wrap; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;&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; font-size:8pt;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Hint&lt;/span&gt;&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; font-size:8pt;&quot;&gt;Defining the normals per vertex is also called &lt;span style=&quot; font-style:italic;&quot;&gt;Phong shading&lt;/span&gt;&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; font-size:8pt; font-style:italic;&quot;&gt;&lt;span style=&quot; font-style:normal;&quot;&gt;while defining the normals per face is called &lt;/span&gt;Flat shading&lt;span style=&quot; font-style:normal;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
405
        </property>
406
       </widget>
407
      </item>
408
     </layout>
409
    </widget>
410
   </item>
411
   <item row="2" column="0">
412
    <spacer>
413
     <property name="orientation">
414
      <enum>Qt::Vertical</enum>
415
     </property>
416
     <property name="sizeHint" stdset="0">
417
      <size>
418
       <width>541</width>
419
       <height>41</height>
420
      </size>
421
     </property>
422
    </spacer>
423
   </item>
424
  </layout>
425
 </widget>
426
 <layoutdefault spacing="6" margin="11"/>
427
 <customwidgets>
428
  <customwidget>
429
   <class>Gui::ColorButton</class>
430
   <extends>QPushButton</extends>
431
   <header>Gui/Widgets.h</header>
432
  </customwidget>
433
  <customwidget>
434
   <class>Gui::PrefSpinBox</class>
435
   <extends>QSpinBox</extends>
436
   <header>Gui/PrefWidgets.h</header>
437
  </customwidget>
438
  <customwidget>
439
   <class>Gui::PrefColorButton</class>
440
   <extends>Gui::ColorButton</extends>
441
   <header>Gui/PrefWidgets.h</header>
442
  </customwidget>
443
  <customwidget>
444
   <class>Gui::PrefCheckBox</class>
445
   <extends>QCheckBox</extends>
446
   <header>Gui/PrefWidgets.h</header>
447
  </customwidget>
448
  <customwidget>
449
   <class>Gui::PrefDoubleSpinBox</class>
450
   <extends>QDoubleSpinBox</extends>
451
   <header>Gui/PrefWidgets.h</header>
452
  </customwidget>
453
 </customwidgets>
454
 <tabstops>
455
  <tabstop>buttonMeshColor</tabstop>
456
  <tabstop>buttonLineColor</tabstop>
457
  <tabstop>buttonBackfaceColor</tabstop>
458
  <tabstop>spinMeshTransparency</tabstop>
459
  <tabstop>spinLineTransparency</tabstop>
460
  <tabstop>checkboxRendering</tabstop>
461
  <tabstop>checkboxBoundbox</tabstop>
462
  <tabstop>checkboxNormal</tabstop>
463
  <tabstop>spinboxAngle</tabstop>
464
 </tabstops>
465
 <resources/>
466
 <connections>
467
  <connection>
468
   <sender>checkboxNormal</sender>
469
   <signal>toggled(bool)</signal>
470
   <receiver>spinboxAngle</receiver>
471
   <slot>setEnabled(bool)</slot>
472
   <hints>
473
    <hint type="sourcelabel">
474
     <x>110</x>
475
     <y>147</y>
476
    </hint>
477
    <hint type="destinationlabel">
478
     <x>266</x>
479
     <y>181</y>
480
    </hint>
481
   </hints>
482
  </connection>
483
  <connection>
484
   <sender>checkboxRendering</sender>
485
   <signal>toggled(bool)</signal>
486
   <receiver>buttonBackfaceColor</receiver>
487
   <slot>setEnabled(bool)</slot>
488
   <hints>
489
    <hint type="sourcelabel">
490
     <x>93</x>
491
     <y>53</y>
492
    </hint>
493
    <hint type="destinationlabel">
494
     <x>210</x>
495
     <y>71</y>
496
    </hint>
497
   </hints>
498
  </connection>
499
 </connections>
500
</ui>
501

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.