00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_DLGSETTINGS3DVIEWPART_H
00011 #define UI_DLGSETTINGS3DVIEWPART_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QFrame>
00018 #include <QtGui/QGridLayout>
00019 #include <QtGui/QGroupBox>
00020 #include <QtGui/QHeaderView>
00021 #include <QtGui/QLabel>
00022 #include <QtGui/QSpacerItem>
00023 #include <QtGui/QWidget>
00024 #include "Gui/PrefWidgets.h"
00025
00026 namespace PartGui {
00027
00028 class Ui_DlgSettings3DViewPart
00029 {
00030 public:
00031 QGridLayout *gridLayout;
00032 QSpacerItem *spacerItem;
00033 QGroupBox *GroupBox12;
00034 QGridLayout *gridLayout1;
00035 QGridLayout *gridLayout2;
00036 Gui::PrefCheckBox *prefCheckBox8;
00037 QLabel *textLabel1;
00038 QLabel *label;
00039 QLabel *textLabel1_3_3_2;
00040 Gui::PrefDoubleSpinBox *maxDeviation;
00041 Gui::PrefCheckBox *prefCheckBox3;
00042 QFrame *line2;
00043 QLabel *textLabel1_3;
00044 QFrame *line2_2_2;
00045
00046 void setupUi(QWidget *PartGui__DlgSettings3DViewPart)
00047 {
00048 if (PartGui__DlgSettings3DViewPart->objectName().isEmpty())
00049 PartGui__DlgSettings3DViewPart->setObjectName(QString::fromUtf8("PartGui__DlgSettings3DViewPart"));
00050 PartGui__DlgSettings3DViewPart->resize(610, 339);
00051 gridLayout = new QGridLayout(PartGui__DlgSettings3DViewPart);
00052 gridLayout->setSpacing(6);
00053 gridLayout->setMargin(9);
00054 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00055 spacerItem = new QSpacerItem(20, 61, QSizePolicy::Minimum, QSizePolicy::Expanding);
00056
00057 gridLayout->addItem(spacerItem, 1, 0, 1, 1);
00058
00059 GroupBox12 = new QGroupBox(PartGui__DlgSettings3DViewPart);
00060 GroupBox12->setObjectName(QString::fromUtf8("GroupBox12"));
00061 gridLayout1 = new QGridLayout(GroupBox12);
00062 gridLayout1->setSpacing(6);
00063 gridLayout1->setMargin(9);
00064 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00065 gridLayout2 = new QGridLayout();
00066 gridLayout2->setSpacing(6);
00067 gridLayout2->setMargin(0);
00068 gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
00069 prefCheckBox8 = new Gui::PrefCheckBox(GroupBox12);
00070 prefCheckBox8->setObjectName(QString::fromUtf8("prefCheckBox8"));
00071 prefCheckBox8->setProperty("prefEntry", QVariant(QByteArray("NoPerVertexNormals")));
00072 prefCheckBox8->setProperty("prefPath", QVariant(QByteArray("Mod/Part")));
00073
00074 gridLayout2->addWidget(prefCheckBox8, 4, 0, 1, 3);
00075
00076 textLabel1 = new QLabel(GroupBox12);
00077 textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
00078
00079 gridLayout2->addWidget(textLabel1, 1, 0, 2, 2);
00080
00081 label = new QLabel(GroupBox12);
00082 label->setObjectName(QString::fromUtf8("label"));
00083
00084 gridLayout2->addWidget(label, 6, 0, 1, 4);
00085
00086 textLabel1_3_3_2 = new QLabel(GroupBox12);
00087 textLabel1_3_3_2->setObjectName(QString::fromUtf8("textLabel1_3_3_2"));
00088
00089 gridLayout2->addWidget(textLabel1_3_3_2, 3, 0, 1, 1);
00090
00091 maxDeviation = new Gui::PrefDoubleSpinBox(GroupBox12);
00092 maxDeviation->setObjectName(QString::fromUtf8("maxDeviation"));
00093 maxDeviation->setDecimals(4);
00094 maxDeviation->setMinimum(0.0001);
00095 maxDeviation->setMaximum(100);
00096 maxDeviation->setSingleStep(0.01);
00097 maxDeviation->setValue(0.5);
00098 maxDeviation->setProperty("prefEntry", QVariant(QByteArray("MeshDeviation")));
00099 maxDeviation->setProperty("prefPath", QVariant(QByteArray("Mod/Part")));
00100
00101 gridLayout2->addWidget(maxDeviation, 2, 3, 1, 1);
00102
00103 prefCheckBox3 = new Gui::PrefCheckBox(GroupBox12);
00104 prefCheckBox3->setObjectName(QString::fromUtf8("prefCheckBox3"));
00105 prefCheckBox3->setProperty("prefEntry", QVariant(QByteArray("QualityNormals")));
00106 prefCheckBox3->setProperty("prefPath", QVariant(QByteArray("Mod/Part")));
00107
00108 gridLayout2->addWidget(prefCheckBox3, 5, 0, 1, 3);
00109
00110 line2 = new QFrame(GroupBox12);
00111 line2->setObjectName(QString::fromUtf8("line2"));
00112 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
00113 sizePolicy.setHorizontalStretch(0);
00114 sizePolicy.setVerticalStretch(0);
00115 sizePolicy.setHeightForWidth(line2->sizePolicy().hasHeightForWidth());
00116 line2->setSizePolicy(sizePolicy);
00117 line2->setFrameShape(QFrame::HLine);
00118 line2->setFrameShadow(QFrame::Sunken);
00119 line2->setFrameShape(QFrame::HLine);
00120
00121 gridLayout2->addWidget(line2, 0, 2, 2, 2);
00122
00123 textLabel1_3 = new QLabel(GroupBox12);
00124 textLabel1_3->setObjectName(QString::fromUtf8("textLabel1_3"));
00125
00126 gridLayout2->addWidget(textLabel1_3, 0, 0, 1, 2);
00127
00128 line2_2_2 = new QFrame(GroupBox12);
00129 line2_2_2->setObjectName(QString::fromUtf8("line2_2_2"));
00130 sizePolicy.setHeightForWidth(line2_2_2->sizePolicy().hasHeightForWidth());
00131 line2_2_2->setSizePolicy(sizePolicy);
00132 line2_2_2->setFrameShape(QFrame::HLine);
00133 line2_2_2->setFrameShadow(QFrame::Sunken);
00134 line2_2_2->setFrameShape(QFrame::HLine);
00135
00136 gridLayout2->addWidget(line2_2_2, 3, 1, 1, 3);
00137
00138
00139 gridLayout1->addLayout(gridLayout2, 0, 0, 1, 1);
00140
00141
00142 gridLayout->addWidget(GroupBox12, 0, 0, 1, 1);
00143
00144
00145 retranslateUi(PartGui__DlgSettings3DViewPart);
00146
00147 QMetaObject::connectSlotsByName(PartGui__DlgSettings3DViewPart);
00148 }
00149
00150 void retranslateUi(QWidget *PartGui__DlgSettings3DViewPart)
00151 {
00152 PartGui__DlgSettings3DViewPart->setWindowTitle(QApplication::translate("PartGui::DlgSettings3DViewPart", "Shape view", 0, QApplication::UnicodeUTF8));
00153 GroupBox12->setTitle(QApplication::translate("PartGui::DlgSettings3DViewPart", "Tessellation", 0, QApplication::UnicodeUTF8));
00154 #ifndef QT_NO_TOOLTIP
00155 prefCheckBox8->setToolTip(QApplication::translate("PartGui::DlgSettings3DViewPart", "Defines the appearance of surfaces", 0, QApplication::UnicodeUTF8));
00156 #endif // QT_NO_TOOLTIP
00157 #ifndef QT_NO_WHATSTHIS
00158 prefCheckBox8->setWhatsThis(QApplication::translate("PartGui::DlgSettings3DViewPart", "<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;\"><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;\"></p><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">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;\"></p><p style=\" margin-top:0px; "
00159 "margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">If this option is unset Phong shading is used, if it is set flat shading is used.</p></body></html>", 0, QApplication::UnicodeUTF8));
00160 #endif // QT_NO_WHATSTHIS
00161 prefCheckBox8->setText(QApplication::translate("PartGui::DlgSettings3DViewPart", "Do not define normal per vertex", 0, QApplication::UnicodeUTF8));
00162 #ifndef QT_NO_TOOLTIP
00163 textLabel1->setToolTip(QApplication::translate("PartGui::DlgSettings3DViewPart", "Defines the deviation of tessellation to the actual surface", 0, QApplication::UnicodeUTF8));
00164 #endif // QT_NO_TOOLTIP
00165 #ifndef QT_NO_WHATSTHIS
00166 textLabel1->setWhatsThis(QApplication::translate("PartGui::DlgSettings3DViewPart", "<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;\"><span style=\" font-weight:600;\">Tessellation</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-weight:600;\"></p><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"><span style=\" font-weight:400;\">Defines the maximum deviation of the tessellated mesh to the surface. The smaller the value is the slower the render speed and the nicer the appearance are.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
00167 #endif // QT_NO_WHATSTHIS
00168 textLabel1->setText(QApplication::translate("PartGui::DlgSettings3DViewPart", "Maximum deviation depending on the model bounding box", 0, QApplication::UnicodeUTF8));
00169 label->setText(QApplication::translate("PartGui::DlgSettings3DViewPart", "<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));
00170 textLabel1_3_3_2->setText(QApplication::translate("PartGui::DlgSettings3DViewPart", "View smoothing", 0, QApplication::UnicodeUTF8));
00171 maxDeviation->setSuffix(QApplication::translate("PartGui::DlgSettings3DViewPart", " %", 0, QApplication::UnicodeUTF8));
00172 #ifndef QT_NO_TOOLTIP
00173 prefCheckBox3->setToolTip(QApplication::translate("PartGui::DlgSettings3DViewPart", "This will slow down render speed but will lead to nicer results", 0, QApplication::UnicodeUTF8));
00174 #endif // QT_NO_TOOLTIP
00175 #ifndef QT_NO_WHATSTHIS
00176 prefCheckBox3->setWhatsThis(QApplication::translate("PartGui::DlgSettings3DViewPart", "<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;\"><span style=\" font-weight:600;\">High-quality normals</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;\"></p><p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This will slow down render speed but will lead to nicer results.</p></body></html>", 0, QApplication::UnicodeUTF8));
00177 #endif // QT_NO_WHATSTHIS
00178 prefCheckBox3->setText(QApplication::translate("PartGui::DlgSettings3DViewPart", "Using high-quality normals", 0, QApplication::UnicodeUTF8));
00179 textLabel1_3->setText(QApplication::translate("PartGui::DlgSettings3DViewPart", "View accuracy / Performance", 0, QApplication::UnicodeUTF8));
00180 Q_UNUSED(PartGui__DlgSettings3DViewPart);
00181 }
00182
00183 };
00184
00185 }
00186
00187 namespace PartGui {
00188 namespace Ui {
00189 class DlgSettings3DViewPart: public Ui_DlgSettings3DViewPart {};
00190 }
00191 }
00192
00193 #endif // UI_DLGSETTINGS3DVIEWPART_H