9 #ifndef UI_PQIMPLICITPLANEPROPERTYWIDGET_H 10 #define UI_PQIMPLICITPLANEPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QPushButton> 18 #include <QtWidgets/QVBoxLayout> 19 #include <QtWidgets/QWidget> 47 void setupUi(QWidget *ImplicitPlanePropertyWidget)
49 if (ImplicitPlanePropertyWidget->objectName().isEmpty())
50 ImplicitPlanePropertyWidget->setObjectName(QString::fromUtf8(
"ImplicitPlanePropertyWidget"));
51 ImplicitPlanePropertyWidget->resize(611, 395);
52 vboxLayout =
new QVBoxLayout(ImplicitPlanePropertyWidget);
53 vboxLayout->setSpacing(2);
54 vboxLayout->setContentsMargins(0, 0, 0, 0);
55 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
56 show3DWidget =
new QCheckBox(ImplicitPlanePropertyWidget);
57 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
58 show3DWidget->setChecked(
true);
60 vboxLayout->addWidget(show3DWidget);
62 gridLayout =
new QGridLayout();
63 gridLayout->setSpacing(2);
64 gridLayout->setContentsMargins(0, 0, 0, 0);
65 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
66 labelNormal =
new QLabel(ImplicitPlanePropertyWidget);
67 labelNormal->setObjectName(QString::fromUtf8(
"labelNormal"));
69 gridLayout->addWidget(labelNormal, 1, 0, 1, 1);
72 normalX->setObjectName(QString::fromUtf8(
"normalX"));
74 gridLayout->addWidget(normalX, 1, 1, 1, 1);
76 labelOrigin =
new QLabel(ImplicitPlanePropertyWidget);
77 labelOrigin->setObjectName(QString::fromUtf8(
"labelOrigin"));
79 gridLayout->addWidget(labelOrigin, 0, 0, 1, 1);
82 normalZ->setObjectName(QString::fromUtf8(
"normalZ"));
84 gridLayout->addWidget(normalZ, 1, 3, 1, 1);
87 originZ->setObjectName(QString::fromUtf8(
"originZ"));
89 gridLayout->addWidget(originZ, 0, 3, 1, 1);
92 originY->setObjectName(QString::fromUtf8(
"originY"));
94 gridLayout->addWidget(originY, 0, 2, 1, 1);
97 normalY->setObjectName(QString::fromUtf8(
"normalY"));
99 gridLayout->addWidget(normalY, 1, 2, 1, 1);
102 originX->setObjectName(QString::fromUtf8(
"originX"));
104 gridLayout->addWidget(originX, 0, 1, 1, 1);
107 vboxLayout->addLayout(gridLayout);
109 pickLabel =
new QLabel(ImplicitPlanePropertyWidget);
110 pickLabel->setObjectName(QString::fromUtf8(
"pickLabel"));
114 pickLabel->setFont(font);
115 pickLabel->setWordWrap(
true);
117 vboxLayout->addWidget(pickLabel);
119 gridLayout1 =
new QGridLayout();
120 gridLayout1->setSpacing(2);
121 gridLayout1->setContentsMargins(0, 0, 0, 0);
122 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
123 useCameraNormal =
new QPushButton(ImplicitPlanePropertyWidget);
124 useCameraNormal->setObjectName(QString::fromUtf8(
"useCameraNormal"));
126 gridLayout1->addWidget(useCameraNormal, 0, 1, 1, 1);
128 useXNormal =
new QPushButton(ImplicitPlanePropertyWidget);
129 useXNormal->setObjectName(QString::fromUtf8(
"useXNormal"));
131 gridLayout1->addWidget(useXNormal, 0, 0, 1, 1);
133 useZNormal =
new QPushButton(ImplicitPlanePropertyWidget);
134 useZNormal->setObjectName(QString::fromUtf8(
"useZNormal"));
136 gridLayout1->addWidget(useZNormal, 2, 0, 1, 1);
138 useYNormal =
new QPushButton(ImplicitPlanePropertyWidget);
139 useYNormal->setObjectName(QString::fromUtf8(
"useYNormal"));
141 gridLayout1->addWidget(useYNormal, 1, 0, 1, 1);
143 resetToDataBounds =
new QPushButton(ImplicitPlanePropertyWidget);
144 resetToDataBounds->setObjectName(QString::fromUtf8(
"resetToDataBounds"));
146 gridLayout1->addWidget(resetToDataBounds, 6, 0, 1, 2);
148 resetCameraToNormal =
new QPushButton(ImplicitPlanePropertyWidget);
149 resetCameraToNormal->setObjectName(QString::fromUtf8(
"resetCameraToNormal"));
151 gridLayout1->addWidget(resetCameraToNormal, 5, 0, 1, 2);
154 vboxLayout->addLayout(gridLayout1);
156 QWidget::setTabOrder(show3DWidget, originX);
157 QWidget::setTabOrder(originX, originY);
158 QWidget::setTabOrder(originY, originZ);
159 QWidget::setTabOrder(originZ, normalX);
160 QWidget::setTabOrder(normalX, normalY);
161 QWidget::setTabOrder(normalY, normalZ);
162 QWidget::setTabOrder(normalZ, useXNormal);
163 QWidget::setTabOrder(useXNormal, useYNormal);
164 QWidget::setTabOrder(useYNormal, useZNormal);
168 QMetaObject::connectSlotsByName(ImplicitPlanePropertyWidget);
173 ImplicitPlanePropertyWidget->setWindowTitle(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Form",
nullptr));
174 #if QT_CONFIG(tooltip) 175 show3DWidget->setToolTip(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Show the interactive plane in the 3D render view.",
nullptr));
176 #endif // QT_CONFIG(tooltip) 177 show3DWidget->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Show Plane",
nullptr));
178 labelNormal->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Normal",
nullptr));
179 labelOrigin->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Origin",
nullptr));
180 pickLabel->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Note: Use 'P' to pick '%1' on mesh or 'Ctrl+P' to snap to the closest mesh point",
nullptr));
181 #if QT_CONFIG(tooltip) 182 useCameraNormal->setToolTip(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Set the normal to the camera's view direction.",
nullptr));
183 #endif // QT_CONFIG(tooltip) 184 useCameraNormal->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Camera Normal",
nullptr));
185 #if QT_CONFIG(tooltip) 186 useXNormal->setToolTip(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Set the normal to the x-axis.",
nullptr));
187 #endif // QT_CONFIG(tooltip) 188 useXNormal->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"&X Normal",
nullptr));
189 #if QT_CONFIG(tooltip) 190 useZNormal->setToolTip(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Set the normal to the z-axis.",
nullptr));
191 #endif // QT_CONFIG(tooltip) 192 useZNormal->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"&Z Normal",
nullptr));
193 #if QT_CONFIG(tooltip) 194 useYNormal->setToolTip(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Set the normal to the y-axis.",
nullptr));
195 #endif // QT_CONFIG(tooltip) 196 useYNormal->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"&Y Normal",
nullptr));
197 #if QT_CONFIG(tooltip) 198 resetToDataBounds->setToolTip(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Reset the plane based on the data bounds.",
nullptr));
199 #endif // QT_CONFIG(tooltip) 200 resetToDataBounds->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Reset to Data Bounds",
nullptr));
201 #if QT_CONFIG(tooltip) 202 resetCameraToNormal->setToolTip(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Reset the camera to look along the normal.",
nullptr));
203 #endif // QT_CONFIG(tooltip) 204 resetCameraToNormal->setText(QCoreApplication::translate(
"ImplicitPlanePropertyWidget",
"Reset Camera to Normal",
nullptr));
215 #endif // UI_PQIMPLICITPLANEPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive