00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_DLGSETTINGSMESHVIEW_H
00011 #define UI_DLGSETTINGSMESHVIEW_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QGridLayout>
00018 #include <QtGui/QGroupBox>
00019 #include <QtGui/QHeaderView>
00020 #include <QtGui/QLabel>
00021 #include <QtGui/QSpacerItem>
00022 #include <QtGui/QWidget>
00023 #include "Gui/PrefWidgets.h"
00024 #include "Gui/Widgets.h"
00025
00026 namespace MeshGui {
00027
00028 class Ui_DlgSettingsMeshView
00029 {
00030 public:
00031 QGridLayout *gridLayout;
00032 QGroupBox *groupBox;
00033 QGridLayout *gridLayout1;
00034 QGridLayout *gridLayout2;
00035 QSpacerItem *spacerItem;
00036 QLabel *labelLineColor;
00037 QLabel *labelMeshTransparency;
00038 Gui::PrefColorButton *buttonMeshColor;
00039 Gui::PrefSpinBox *spinLineTransparency;
00040 QLabel *labelFaceColor;
00041 Gui::PrefSpinBox *spinMeshTransparency;
00042 QSpacerItem *spacerItem1;
00043 Gui::PrefCheckBox *checkboxBoundbox;
00044 Gui::PrefColorButton *buttonBackfaceColor;
00045 Gui::PrefColorButton *buttonLineColor;
00046 Gui::PrefCheckBox *checkboxRendering;
00047 QLabel *labelLineTransparency;
00048 QLabel *labelBackfaceColor;
00049 QSpacerItem *spacerItem2;
00050 QSpacerItem *spacerItem3;
00051 QGroupBox *GroupBox12;
00052 QGridLayout *gridLayout3;
00053 QLabel *labelAngle;
00054 Gui::PrefCheckBox *checkboxNormal;
00055 QSpacerItem *spacerItem4;
00056 Gui::PrefDoubleSpinBox *spinboxAngle;
00057 QLabel *labelHint;
00058 QSpacerItem *spacerItem5;
00059
00060 void setupUi(QWidget *MeshGui__DlgSettingsMeshView)
00061 {
00062 if (MeshGui__DlgSettingsMeshView->objectName().isEmpty())
00063 MeshGui__DlgSettingsMeshView->setObjectName(QString::fromUtf8("MeshGui__DlgSettingsMeshView"));
00064 MeshGui__DlgSettingsMeshView->resize(559, 396);
00065 gridLayout = new QGridLayout(MeshGui__DlgSettingsMeshView);
00066 gridLayout->setSpacing(6);
00067 gridLayout->setMargin(9);
00068 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00069 groupBox = new QGroupBox(MeshGui__DlgSettingsMeshView);
00070 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00071 gridLayout1 = new QGridLayout(groupBox);
00072 gridLayout1->setSpacing(6);
00073 gridLayout1->setMargin(9);
00074 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00075 gridLayout2 = new QGridLayout();
00076 gridLayout2->setSpacing(6);
00077 gridLayout2->setMargin(0);
00078 gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
00079 spacerItem = new QSpacerItem(41, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
00080
00081 gridLayout2->addItem(spacerItem, 1, 2, 1, 1);
00082
00083 labelLineColor = new QLabel(groupBox);
00084 labelLineColor->setObjectName(QString::fromUtf8("labelLineColor"));
00085
00086 gridLayout2->addWidget(labelLineColor, 1, 0, 1, 1);
00087
00088 labelMeshTransparency = new QLabel(groupBox);
00089 labelMeshTransparency->setObjectName(QString::fromUtf8("labelMeshTransparency"));
00090
00091 gridLayout2->addWidget(labelMeshTransparency, 0, 3, 1, 1);
00092
00093 buttonMeshColor = new Gui::PrefColorButton(groupBox);
00094 buttonMeshColor->setObjectName(QString::fromUtf8("buttonMeshColor"));
00095 buttonMeshColor->setColor(QColor(204, 204, 204));
00096 buttonMeshColor->setProperty("prefEntry", QVariant(QByteArray("MeshColor")));
00097 buttonMeshColor->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00098
00099 gridLayout2->addWidget(buttonMeshColor, 0, 1, 1, 1);
00100
00101 spinLineTransparency = new Gui::PrefSpinBox(groupBox);
00102 spinLineTransparency->setObjectName(QString::fromUtf8("spinLineTransparency"));
00103 spinLineTransparency->setMaximum(100);
00104 spinLineTransparency->setProperty("prefEntry", QVariant(QByteArray("LineTransparency")));
00105 spinLineTransparency->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00106
00107 gridLayout2->addWidget(spinLineTransparency, 1, 4, 1, 1);
00108
00109 labelFaceColor = new QLabel(groupBox);
00110 labelFaceColor->setObjectName(QString::fromUtf8("labelFaceColor"));
00111
00112 gridLayout2->addWidget(labelFaceColor, 0, 0, 1, 1);
00113
00114 spinMeshTransparency = new Gui::PrefSpinBox(groupBox);
00115 spinMeshTransparency->setObjectName(QString::fromUtf8("spinMeshTransparency"));
00116 spinMeshTransparency->setMaximum(100);
00117 spinMeshTransparency->setProperty("prefEntry", QVariant(QByteArray("MeshTransparency")));
00118 spinMeshTransparency->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00119
00120 gridLayout2->addWidget(spinMeshTransparency, 0, 4, 1, 1);
00121
00122 spacerItem1 = new QSpacerItem(191, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00123
00124 gridLayout2->addItem(spacerItem1, 2, 2, 1, 3);
00125
00126 checkboxBoundbox = new Gui::PrefCheckBox(groupBox);
00127 checkboxBoundbox->setObjectName(QString::fromUtf8("checkboxBoundbox"));
00128 checkboxBoundbox->setChecked(false);
00129 checkboxBoundbox->setProperty("prefEntry", QVariant(QByteArray("ShowBoundingBox")));
00130 checkboxBoundbox->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00131
00132 gridLayout2->addWidget(checkboxBoundbox, 3, 1, 1, 4);
00133
00134 buttonBackfaceColor = new Gui::PrefColorButton(groupBox);
00135 buttonBackfaceColor->setObjectName(QString::fromUtf8("buttonBackfaceColor"));
00136 buttonBackfaceColor->setEnabled(false);
00137 buttonBackfaceColor->setColor(QColor(204, 204, 204));
00138 buttonBackfaceColor->setProperty("prefEntry", QVariant(QByteArray("BackfaceColor")));
00139 buttonBackfaceColor->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00140
00141 gridLayout2->addWidget(buttonBackfaceColor, 2, 1, 1, 1);
00142
00143 buttonLineColor = new Gui::PrefColorButton(groupBox);
00144 buttonLineColor->setObjectName(QString::fromUtf8("buttonLineColor"));
00145 buttonLineColor->setColor(QColor(0, 0, 0));
00146 buttonLineColor->setProperty("prefEntry", QVariant(QByteArray("LineColor")));
00147 buttonLineColor->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00148
00149 gridLayout2->addWidget(buttonLineColor, 1, 1, 1, 1);
00150
00151 checkboxRendering = new Gui::PrefCheckBox(groupBox);
00152 checkboxRendering->setObjectName(QString::fromUtf8("checkboxRendering"));
00153 checkboxRendering->setChecked(false);
00154 checkboxRendering->setProperty("prefEntry", QVariant(QByteArray("TwoSideRendering")));
00155 checkboxRendering->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00156
00157 gridLayout2->addWidget(checkboxRendering, 3, 0, 1, 1);
00158
00159 labelLineTransparency = new QLabel(groupBox);
00160 labelLineTransparency->setObjectName(QString::fromUtf8("labelLineTransparency"));
00161
00162 gridLayout2->addWidget(labelLineTransparency, 1, 3, 1, 1);
00163
00164 labelBackfaceColor = new QLabel(groupBox);
00165 labelBackfaceColor->setObjectName(QString::fromUtf8("labelBackfaceColor"));
00166
00167 gridLayout2->addWidget(labelBackfaceColor, 2, 0, 1, 1);
00168
00169 spacerItem2 = new QSpacerItem(41, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
00170
00171 gridLayout2->addItem(spacerItem2, 0, 2, 1, 1);
00172
00173
00174 gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
00175
00176 spacerItem3 = new QSpacerItem(71, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
00177
00178 gridLayout1->addItem(spacerItem3, 0, 1, 1, 1);
00179
00180
00181 gridLayout->addWidget(groupBox, 0, 0, 1, 1);
00182
00183 GroupBox12 = new QGroupBox(MeshGui__DlgSettingsMeshView);
00184 GroupBox12->setObjectName(QString::fromUtf8("GroupBox12"));
00185 gridLayout3 = new QGridLayout(GroupBox12);
00186 gridLayout3->setSpacing(6);
00187 gridLayout3->setMargin(9);
00188 gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
00189 labelAngle = new QLabel(GroupBox12);
00190 labelAngle->setObjectName(QString::fromUtf8("labelAngle"));
00191
00192 gridLayout3->addWidget(labelAngle, 1, 0, 1, 1);
00193
00194 checkboxNormal = new Gui::PrefCheckBox(GroupBox12);
00195 checkboxNormal->setObjectName(QString::fromUtf8("checkboxNormal"));
00196 checkboxNormal->setProperty("prefEntry", QVariant(QByteArray("VertexPerNormals")));
00197 checkboxNormal->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00198
00199 gridLayout3->addWidget(checkboxNormal, 0, 0, 1, 1);
00200
00201 spacerItem4 = new QSpacerItem(221, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00202
00203 gridLayout3->addItem(spacerItem4, 1, 2, 1, 1);
00204
00205 spinboxAngle = new Gui::PrefDoubleSpinBox(GroupBox12);
00206 spinboxAngle->setObjectName(QString::fromUtf8("spinboxAngle"));
00207 spinboxAngle->setEnabled(false);
00208 spinboxAngle->setMaximum(180);
00209 spinboxAngle->setProperty("prefEntry", QVariant(QByteArray("CreaseAngle")));
00210 spinboxAngle->setProperty("prefPath", QVariant(QByteArray("Mod/Mesh")));
00211
00212 gridLayout3->addWidget(spinboxAngle, 1, 1, 1, 1);
00213
00214 labelHint = new QLabel(GroupBox12);
00215 labelHint->setObjectName(QString::fromUtf8("labelHint"));
00216
00217 gridLayout3->addWidget(labelHint, 2, 0, 1, 3);
00218
00219
00220 gridLayout->addWidget(GroupBox12, 1, 0, 1, 1);
00221
00222 spacerItem5 = new QSpacerItem(541, 41, QSizePolicy::Minimum, QSizePolicy::Expanding);
00223
00224 gridLayout->addItem(spacerItem5, 2, 0, 1, 1);
00225
00226 QWidget::setTabOrder(buttonMeshColor, buttonLineColor);
00227 QWidget::setTabOrder(buttonLineColor, buttonBackfaceColor);
00228 QWidget::setTabOrder(buttonBackfaceColor, spinMeshTransparency);
00229 QWidget::setTabOrder(spinMeshTransparency, spinLineTransparency);
00230 QWidget::setTabOrder(spinLineTransparency, checkboxRendering);
00231 QWidget::setTabOrder(checkboxRendering, checkboxBoundbox);
00232 QWidget::setTabOrder(checkboxBoundbox, checkboxNormal);
00233 QWidget::setTabOrder(checkboxNormal, spinboxAngle);
00234
00235 retranslateUi(MeshGui__DlgSettingsMeshView);
00236 QObject::connect(checkboxNormal, SIGNAL(toggled(bool)), spinboxAngle, SLOT(setEnabled(bool)));
00237 QObject::connect(checkboxRendering, SIGNAL(toggled(bool)), buttonBackfaceColor, SLOT(setEnabled(bool)));
00238
00239 QMetaObject::connectSlotsByName(MeshGui__DlgSettingsMeshView);
00240 }
00241
00242 void retranslateUi(QWidget *MeshGui__DlgSettingsMeshView)
00243 {
00244 MeshGui__DlgSettingsMeshView->setWindowTitle(QApplication::translate("MeshGui::DlgSettingsMeshView", "Mesh view", 0, QApplication::UnicodeUTF8));
00245 groupBox->setTitle(QApplication::translate("MeshGui::DlgSettingsMeshView", "Default appearance for new meshes", 0, QApplication::UnicodeUTF8));
00246 labelLineColor->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Default line color", 0, QApplication::UnicodeUTF8));
00247 labelMeshTransparency->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Mesh transparency", 0, QApplication::UnicodeUTF8));
00248 labelFaceColor->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Default mesh color", 0, QApplication::UnicodeUTF8));
00249 checkboxBoundbox->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Show bounding-box for highlighted or selected meshes", 0, QApplication::UnicodeUTF8));
00250 checkboxRendering->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Two-side rendering", 0, QApplication::UnicodeUTF8));
00251 labelLineTransparency->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Line transparency", 0, QApplication::UnicodeUTF8));
00252 labelBackfaceColor->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Backface color", 0, QApplication::UnicodeUTF8));
00253 GroupBox12->setTitle(QApplication::translate("MeshGui::DlgSettingsMeshView", "Smoothing", 0, QApplication::UnicodeUTF8));
00254 #ifndef QT_NO_TOOLTIP
00255 labelAngle->setToolTip(QApplication::translate("MeshGui::DlgSettingsMeshView", "<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>", 0, QApplication::UnicodeUTF8));
00256 #endif // QT_NO_TOOLTIP
00257 labelAngle->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Crease angle", 0, QApplication::UnicodeUTF8));
00258 #ifndef QT_NO_TOOLTIP
00259 checkboxNormal->setToolTip(QApplication::translate("MeshGui::DlgSettingsMeshView", "<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-ind"
00260 "ent: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>", 0, QApplication::UnicodeUTF8));
00261 #endif // QT_NO_TOOLTIP
00262 checkboxNormal->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "Define normal per vertex", 0, QApplication::UnicodeUTF8));
00263 spinboxAngle->setSuffix(QApplication::translate("MeshGui::DlgSettingsMeshView", " \302\260", 0, QApplication::UnicodeUTF8));
00264 labelHint->setText(QApplication::translate("MeshGui::DlgSettingsMeshView", "<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>", 0, QApplication::UnicodeUTF8));
00265 Q_UNUSED(MeshGui__DlgSettingsMeshView);
00266 }
00267
00268 };
00269
00270 }
00271
00272 namespace MeshGui {
00273 namespace Ui {
00274 class DlgSettingsMeshView: public Ui_DlgSettingsMeshView {};
00275 }
00276 }
00277
00278 #endif // UI_DLGSETTINGSMESHVIEW_H