4
<exportmacro></exportmacro>
5
<class>MeshGui::DlgSettingsMeshView</class>
6
<widget class="QWidget" name="MeshGui::DlgSettingsMeshView" >
7
<property name="geometry" >
15
<property name="windowTitle" >
16
<string>Mesh view</string>
18
<layout class="QGridLayout" >
19
<property name="margin" >
22
<property name="spacing" >
25
<item row="0" column="0" >
26
<widget class="QGroupBox" name="groupBox" >
27
<property name="title" >
28
<string>Appearance</string>
30
<layout class="QGridLayout" >
31
<property name="margin" >
34
<property name="spacing" >
37
<item row="0" column="0" >
38
<layout class="QGridLayout" >
39
<property name="margin" >
42
<property name="spacing" >
45
<item row="1" column="0" >
46
<widget class="QLabel" name="labelFaceColor" >
47
<property name="text" >
48
<string>Face color</string>
52
<item row="2" column="1" >
53
<widget class="Gui::PrefColorButton" name="buttonBackfaceColor" >
54
<property name="enabled" >
57
<property name="color" >
64
<property name="prefEntry" stdset="0" >
65
<cstring>BackfaceColor</cstring>
67
<property name="prefPath" stdset="0" >
68
<cstring>Mod/Mesh</cstring>
72
<item row="0" column="1" >
74
<property name="orientation" >
75
<enum>Qt::Horizontal</enum>
77
<property name="sizeHint" >
85
<item row="1" column="1" >
86
<widget class="Gui::PrefColorButton" name="buttonMeshColor" >
87
<property name="color" >
94
<property name="prefEntry" stdset="0" >
95
<cstring>MeshColor</cstring>
97
<property name="prefPath" stdset="0" >
98
<cstring>Mod/Mesh</cstring>
102
<item row="0" column="0" >
103
<widget class="Gui::PrefCheckBox" name="checkboxRendering" >
104
<property name="text" >
105
<string>Two-side rendering</string>
107
<property name="checked" >
110
<property name="prefEntry" stdset="0" >
111
<cstring>TwoSideRendering</cstring>
113
<property name="prefPath" stdset="0" >
114
<cstring>Mod/Mesh</cstring>
118
<item row="2" column="0" >
119
<widget class="QLabel" name="labelBackfaceColor" >
120
<property name="text" >
121
<string>Backface color</string>
127
<item row="0" column="1" >
129
<property name="orientation" >
130
<enum>Qt::Horizontal</enum>
132
<property name="sizeHint" >
143
<item row="1" column="0" >
144
<widget class="QGroupBox" name="GroupBox12" >
145
<property name="title" >
146
<string>Smoothing</string>
148
<layout class="QGridLayout" >
149
<property name="margin" >
152
<property name="spacing" >
155
<item row="1" column="0" >
156
<widget class="QLabel" name="labelAngle" >
157
<property name="toolTip" >
158
<string><html><head><meta name="qrichtext" content="1" /></head><body style=" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;"><p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">This is the smallest angle between two faces where normals get calculated to do flat shading.</p><p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">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.</p></body></html></string>
160
<property name="text" >
161
<string>Crease angle</string>
165
<item row="0" column="0" >
166
<widget class="Gui::PrefCheckBox" name="checkboxNormal" >
167
<property name="toolTip" >
168
<string><html><head><meta name="qrichtext" content="1" /></head><body style=" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;"><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><span style=" font-weight:600;">Flat shading/Phong shading</span></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">Defines the appearance of surfaces.</p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">With flat shading the surface normals are not defined per vertex that leads to a unreal appearance for curved surfaces while using Phong shading leads to a smoother appearance. </p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">If this option is set Phong shading is used, if it is unset flat shading is used.</p></body></html></string>
170
<property name="text" >
171
<string>Define normal per vertex</string>
173
<property name="prefEntry" stdset="0" >
174
<cstring>VertexPerNormals</cstring>
176
<property name="prefPath" stdset="0" >
177
<cstring>Mod/Mesh</cstring>
181
<item row="1" column="2" >
183
<property name="orientation" >
184
<enum>Qt::Horizontal</enum>
186
<property name="sizeHint" >
194
<item row="1" column="1" >
195
<widget class="Gui::PrefDoubleSpinBox" name="spinboxAngle" >
196
<property name="enabled" >
199
<property name="suffix" >
202
<property name="maximum" >
205
<property name="prefEntry" stdset="0" >
206
<cstring>CreaseAngle</cstring>
208
<property name="prefPath" stdset="0" >
209
<cstring>Mod/Mesh</cstring>
213
<item row="2" column="0" colspan="3" >
214
<widget class="QLabel" name="labelHint" >
215
<property name="text" >
216
<string><html><head><meta name="qrichtext" content="1" /></head><body style=" white-space: pre-wrap; font-family:MS Shell Dlg 2; font-size:7.8pt; font-weight:400; font-style:normal; text-decoration:none;"><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><span style=" font-weight:600;">Hint</span></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">Defining the normals per vertex is also called <span style=" font-style:italic;">Phong shading</span></p><p style=" 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;"><span style=" font-style:normal;">while defining the normals per face is called </span>Flat shading<span style=" font-style:normal;">.</span></p></body></html></string>
223
<item row="2" column="0" >
225
<property name="orientation" >
226
<enum>Qt::Vertical</enum>
228
<property name="sizeHint" >
238
<layoutdefault spacing="6" margin="11" />
239
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
242
<class>Gui::PrefCheckBox</class>
243
<extends>QCheckBox</extends>
244
<header>Gui/PrefWidgets.h</header>
245
<container>0</container>
249
<class>Gui::PrefDoubleSpinBox</class>
250
<extends>QDoubleSpinBox</extends>
251
<header>Gui/PrefWidgets.h</header>
252
<container>0</container>
256
<class>Gui::PrefColorButton</class>
257
<extends>Gui::ColorButton</extends>
258
<header>Gui/PrefWidgets.h</header>
259
<container>0</container>
264
<tabstop>checkboxRendering</tabstop>
265
<tabstop>buttonBackfaceColor</tabstop>
266
<tabstop>checkboxNormal</tabstop>
267
<tabstop>spinboxAngle</tabstop>
272
<sender>checkboxNormal</sender>
273
<signal>toggled(bool)</signal>
274
<receiver>spinboxAngle</receiver>
275
<slot>setEnabled(bool)</slot>
277
<hint type="sourcelabel" >
281
<hint type="destinationlabel" >
288
<sender>checkboxRendering</sender>
289
<signal>toggled(bool)</signal>
290
<receiver>buttonBackfaceColor</receiver>
291
<slot>setEnabled(bool)</slot>
293
<hint type="sourcelabel" >
297
<hint type="destinationlabel" >