9 #ifndef UI_PQDISPLAYSIZEDIMPLICITPLANEPROPERTYWIDGET_H 10 #define UI_PQDISPLAYSIZEDIMPLICITPLANEPROPERTYWIDGET_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> 49 void setupUi(QWidget *DisplaySizedImplicitPlanePropertyWidget)
51 if (DisplaySizedImplicitPlanePropertyWidget->objectName().isEmpty())
52 DisplaySizedImplicitPlanePropertyWidget->setObjectName(QString::fromUtf8(
"DisplaySizedImplicitPlanePropertyWidget"));
53 DisplaySizedImplicitPlanePropertyWidget->resize(611, 395);
54 vboxLayout =
new QVBoxLayout(DisplaySizedImplicitPlanePropertyWidget);
55 vboxLayout->setSpacing(2);
56 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
57 vboxLayout->setContentsMargins(0, 0, 0, 0);
58 show3DWidget =
new QCheckBox(DisplaySizedImplicitPlanePropertyWidget);
59 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
60 show3DWidget->setChecked(
true);
62 vboxLayout->addWidget(show3DWidget);
64 showOutlineAndIntersectionEdges =
new QCheckBox(DisplaySizedImplicitPlanePropertyWidget);
65 showOutlineAndIntersectionEdges->setObjectName(QString::fromUtf8(
"showOutlineAndIntersectionEdges"));
66 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
67 sizePolicy.setHorizontalStretch(0);
68 sizePolicy.setVerticalStretch(0);
69 sizePolicy.setHeightForWidth(showOutlineAndIntersectionEdges->sizePolicy().hasHeightForWidth());
70 showOutlineAndIntersectionEdges->setSizePolicy(sizePolicy);
72 vboxLayout->addWidget(showOutlineAndIntersectionEdges);
74 gridLayout =
new QGridLayout();
75 gridLayout->setSpacing(2);
76 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
77 gridLayout->setContentsMargins(0, 0, 0, 0);
78 labelNormal =
new QLabel(DisplaySizedImplicitPlanePropertyWidget);
79 labelNormal->setObjectName(QString::fromUtf8(
"labelNormal"));
81 gridLayout->addWidget(labelNormal, 1, 0, 1, 1);
84 normalX->setObjectName(QString::fromUtf8(
"normalX"));
86 gridLayout->addWidget(normalX, 1, 1, 1, 1);
88 labelOrigin =
new QLabel(DisplaySizedImplicitPlanePropertyWidget);
89 labelOrigin->setObjectName(QString::fromUtf8(
"labelOrigin"));
91 gridLayout->addWidget(labelOrigin, 0, 0, 1, 1);
94 normalZ->setObjectName(QString::fromUtf8(
"normalZ"));
96 gridLayout->addWidget(normalZ, 1, 3, 1, 1);
99 originZ->setObjectName(QString::fromUtf8(
"originZ"));
101 gridLayout->addWidget(originZ, 0, 3, 1, 1);
104 originY->setObjectName(QString::fromUtf8(
"originY"));
106 gridLayout->addWidget(originY, 0, 2, 1, 1);
109 normalY->setObjectName(QString::fromUtf8(
"normalY"));
111 gridLayout->addWidget(normalY, 1, 2, 1, 1);
114 originX->setObjectName(QString::fromUtf8(
"originX"));
116 gridLayout->addWidget(originX, 0, 1, 1, 1);
119 vboxLayout->addLayout(gridLayout);
121 pickLabel =
new QLabel(DisplaySizedImplicitPlanePropertyWidget);
122 pickLabel->setObjectName(QString::fromUtf8(
"pickLabel"));
126 pickLabel->setFont(font);
127 pickLabel->setWordWrap(
true);
129 vboxLayout->addWidget(pickLabel);
131 gridLayout1 =
new QGridLayout();
132 gridLayout1->setSpacing(2);
133 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
134 gridLayout1->setContentsMargins(0, 0, 0, 0);
135 useCameraNormal =
new QPushButton(DisplaySizedImplicitPlanePropertyWidget);
136 useCameraNormal->setObjectName(QString::fromUtf8(
"useCameraNormal"));
138 gridLayout1->addWidget(useCameraNormal, 0, 1, 1, 1);
140 useXNormal =
new QPushButton(DisplaySizedImplicitPlanePropertyWidget);
141 useXNormal->setObjectName(QString::fromUtf8(
"useXNormal"));
143 gridLayout1->addWidget(useXNormal, 0, 0, 1, 1);
145 useZNormal =
new QPushButton(DisplaySizedImplicitPlanePropertyWidget);
146 useZNormal->setObjectName(QString::fromUtf8(
"useZNormal"));
148 gridLayout1->addWidget(useZNormal, 2, 0, 1, 1);
150 useYNormal =
new QPushButton(DisplaySizedImplicitPlanePropertyWidget);
151 useYNormal->setObjectName(QString::fromUtf8(
"useYNormal"));
153 gridLayout1->addWidget(useYNormal, 1, 0, 1, 1);
155 resetToDataBounds =
new QPushButton(DisplaySizedImplicitPlanePropertyWidget);
156 resetToDataBounds->setObjectName(QString::fromUtf8(
"resetToDataBounds"));
158 gridLayout1->addWidget(resetToDataBounds, 6, 0, 1, 2);
160 resetCameraToNormal =
new QPushButton(DisplaySizedImplicitPlanePropertyWidget);
161 resetCameraToNormal->setObjectName(QString::fromUtf8(
"resetCameraToNormal"));
163 gridLayout1->addWidget(resetCameraToNormal, 5, 0, 1, 2);
165 resetRadiusSize =
new QPushButton(DisplaySizedImplicitPlanePropertyWidget);
166 resetRadiusSize->setObjectName(QString::fromUtf8(
"resetRadiusSize"));
168 gridLayout1->addWidget(resetRadiusSize, 7, 0, 1, 2);
171 vboxLayout->addLayout(gridLayout1);
173 QWidget::setTabOrder(show3DWidget, originX);
174 QWidget::setTabOrder(originX, originY);
175 QWidget::setTabOrder(originY, originZ);
176 QWidget::setTabOrder(originZ, normalX);
177 QWidget::setTabOrder(normalX, normalY);
178 QWidget::setTabOrder(normalY, normalZ);
179 QWidget::setTabOrder(normalZ, useXNormal);
180 QWidget::setTabOrder(useXNormal, useYNormal);
181 QWidget::setTabOrder(useYNormal, useZNormal);
185 QMetaObject::connectSlotsByName(DisplaySizedImplicitPlanePropertyWidget);
190 DisplaySizedImplicitPlanePropertyWidget->setWindowTitle(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Form",
nullptr));
191 #if QT_CONFIG(tooltip) 192 show3DWidget->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Show the interactive plane in the 3D render view.",
nullptr));
193 #endif // QT_CONFIG(tooltip) 194 show3DWidget->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Show Plane",
nullptr));
195 #if QT_CONFIG(tooltip) 196 showOutlineAndIntersectionEdges->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Show the outline of the data the intersection edges of the plane with the outline.",
nullptr));
197 #endif // QT_CONFIG(tooltip) 198 showOutlineAndIntersectionEdges->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Show Outline and Intersection Edges",
nullptr));
199 labelNormal->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Normal",
nullptr));
200 labelOrigin->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Origin",
nullptr));
201 pickLabel->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Note: Use 'P' to pick '%1' on mesh or 'Ctrl+P' to snap to the closest mesh point. Also, use 'N' to pick \"Normal\" on mesh or 'Ctrl+N' to snap to the closest mesh point normal, if it's available.",
nullptr));
202 #if QT_CONFIG(tooltip) 203 useCameraNormal->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Set the normal to the camera's view direction.",
nullptr));
204 #endif // QT_CONFIG(tooltip) 205 useCameraNormal->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Camera Normal",
nullptr));
206 #if QT_CONFIG(tooltip) 207 useXNormal->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Set the normal to the x-axis.",
nullptr));
208 #endif // QT_CONFIG(tooltip) 209 useXNormal->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"&X Normal",
nullptr));
210 #if QT_CONFIG(tooltip) 211 useZNormal->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Set the normal to the z-axis.",
nullptr));
212 #endif // QT_CONFIG(tooltip) 213 useZNormal->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"&Z Normal",
nullptr));
214 #if QT_CONFIG(tooltip) 215 useYNormal->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Set the normal to the y-axis.",
nullptr));
216 #endif // QT_CONFIG(tooltip) 217 useYNormal->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"&Y Normal",
nullptr));
218 #if QT_CONFIG(tooltip) 219 resetToDataBounds->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Reset the plane based on the data bounds.",
nullptr));
220 #endif // QT_CONFIG(tooltip) 221 resetToDataBounds->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Reset to Data Bounds",
nullptr));
222 #if QT_CONFIG(tooltip) 223 resetCameraToNormal->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Reset the camera to look along the normal.",
nullptr));
224 #endif // QT_CONFIG(tooltip) 225 resetCameraToNormal->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Reset Camera to Normal",
nullptr));
226 #if QT_CONFIG(tooltip) 227 resetRadiusSize->setToolTip(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Reset the radius size of the disk plane to its default value.",
nullptr));
228 #endif // QT_CONFIG(tooltip) 229 resetRadiusSize->setText(QCoreApplication::translate(
"DisplaySizedImplicitPlanePropertyWidget",
"Reset Radius Size",
nullptr));
240 #endif // UI_PQDISPLAYSIZEDIMPLICITPLANEPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive