9 #ifndef UI_PQANNULUSPROPERTYWIDGET_H 10 #define UI_PQANNULUSPROPERTYWIDGET_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/QWidget> 52 void setupUi(QWidget *AnnulusPropertyWidget)
54 if (AnnulusPropertyWidget->objectName().isEmpty())
55 AnnulusPropertyWidget->setObjectName(QString::fromUtf8(
"AnnulusPropertyWidget"));
56 AnnulusPropertyWidget->resize(372, 357);
57 layout1 =
new QGridLayout(AnnulusPropertyWidget);
58 layout1->setSpacing(2);
59 layout1->setContentsMargins(0, 0, 0, 0);
60 layout1->setObjectName(QString::fromUtf8(
"layout1"));
61 show3DWidget =
new QCheckBox(AnnulusPropertyWidget);
62 show3DWidget->setObjectName(QString::fromUtf8(
"show3DWidget"));
63 show3DWidget->setChecked(
true);
65 layout1->addWidget(show3DWidget, 0, 0, 1, 2);
67 gridLayout1 =
new QGridLayout();
68 gridLayout1->setSpacing(2);
69 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
70 outlineTranslation =
new QCheckBox(AnnulusPropertyWidget);
71 outlineTranslation->setObjectName(QString::fromUtf8(
"outlineTranslation"));
73 gridLayout1->addWidget(outlineTranslation, 0, 0, 1, 1);
75 scaling =
new QCheckBox(AnnulusPropertyWidget);
76 scaling->setObjectName(QString::fromUtf8(
"scaling"));
78 gridLayout1->addWidget(scaling, 0, 1, 1, 1);
81 layout1->addLayout(gridLayout1, 7, 0, 1, 2);
83 gridLayout2 =
new QGridLayout();
84 gridLayout2->setSpacing(2);
85 gridLayout2->setObjectName(QString::fromUtf8(
"gridLayout2"));
87 centerY->setObjectName(QString::fromUtf8(
"centerY"));
89 gridLayout2->addWidget(centerY, 0, 2, 1, 1);
91 innerRadiusLabel =
new QLabel(AnnulusPropertyWidget);
92 innerRadiusLabel->setObjectName(QString::fromUtf8(
"innerRadiusLabel"));
94 gridLayout2->addWidget(innerRadiusLabel, 2, 0, 1, 1);
96 outerRadiusLabel =
new QLabel(AnnulusPropertyWidget);
97 outerRadiusLabel->setObjectName(QString::fromUtf8(
"outerRadiusLabel"));
99 gridLayout2->addWidget(outerRadiusLabel, 3, 0, 1, 1);
102 axisY->setObjectName(QString::fromUtf8(
"axisY"));
104 gridLayout2->addWidget(axisY, 1, 2, 1, 1);
106 axisLabel =
new QLabel(AnnulusPropertyWidget);
107 axisLabel->setObjectName(QString::fromUtf8(
"axisLabel"));
109 gridLayout2->addWidget(axisLabel, 1, 0, 1, 1);
112 axisX->setObjectName(QString::fromUtf8(
"axisX"));
114 gridLayout2->addWidget(axisX, 1, 1, 1, 1);
117 innerRadius->setObjectName(QString::fromUtf8(
"innerRadius"));
119 gridLayout2->addWidget(innerRadius, 2, 1, 1, 1);
122 outerRadius->setObjectName(QString::fromUtf8(
"outerRadius"));
124 gridLayout2->addWidget(outerRadius, 3, 1, 1, 1);
127 axisZ->setObjectName(QString::fromUtf8(
"axisZ"));
129 gridLayout2->addWidget(axisZ, 1, 3, 1, 1);
131 centerLabel =
new QLabel(AnnulusPropertyWidget);
132 centerLabel->setObjectName(QString::fromUtf8(
"centerLabel"));
134 gridLayout2->addWidget(centerLabel, 0, 0, 1, 1);
137 centerX->setObjectName(QString::fromUtf8(
"centerX"));
139 gridLayout2->addWidget(centerX, 0, 1, 1, 1);
142 centerZ->setObjectName(QString::fromUtf8(
"centerZ"));
144 gridLayout2->addWidget(centerZ, 0, 3, 1, 1);
147 layout1->addLayout(gridLayout2, 5, 0, 1, 2);
149 gridLayout3 =
new QGridLayout();
150 gridLayout3->setObjectName(QString::fromUtf8(
"gridLayout3"));
151 useXAxis =
new QPushButton(AnnulusPropertyWidget);
152 useXAxis->setObjectName(QString::fromUtf8(
"useXAxis"));
154 gridLayout3->addWidget(useXAxis, 0, 0, 1, 1);
156 useYAxis =
new QPushButton(AnnulusPropertyWidget);
157 useYAxis->setObjectName(QString::fromUtf8(
"useYAxis"));
159 gridLayout3->addWidget(useYAxis, 1, 0, 1, 1);
161 useZAxis =
new QPushButton(AnnulusPropertyWidget);
162 useZAxis->setObjectName(QString::fromUtf8(
"useZAxis"));
164 gridLayout3->addWidget(useZAxis, 2, 0, 1, 1);
166 useCameraAxis =
new QPushButton(AnnulusPropertyWidget);
167 useCameraAxis->setObjectName(QString::fromUtf8(
"useCameraAxis"));
169 gridLayout3->addWidget(useCameraAxis, 0, 1, 1, 1);
171 resetCameraToAxis =
new QPushButton(AnnulusPropertyWidget);
172 resetCameraToAxis->setObjectName(QString::fromUtf8(
"resetCameraToAxis"));
174 gridLayout3->addWidget(resetCameraToAxis, 3, 0, 1, 2);
176 resetBounds =
new QPushButton(AnnulusPropertyWidget);
177 resetBounds->setObjectName(QString::fromUtf8(
"resetBounds"));
179 gridLayout3->addWidget(resetBounds, 4, 0, 1, 2);
182 layout1->addLayout(gridLayout3, 6, 0, 1, 2);
184 QWidget::setTabOrder(show3DWidget, centerX);
185 QWidget::setTabOrder(centerX, centerY);
186 QWidget::setTabOrder(centerY, centerZ);
187 QWidget::setTabOrder(centerZ, axisX);
188 QWidget::setTabOrder(axisX, axisY);
189 QWidget::setTabOrder(axisY, axisZ);
190 QWidget::setTabOrder(axisZ, innerRadius);
191 QWidget::setTabOrder(innerRadius, outerRadius);
192 QWidget::setTabOrder(outerRadius, outlineTranslation);
193 QWidget::setTabOrder(outlineTranslation, scaling);
197 QMetaObject::connectSlotsByName(AnnulusPropertyWidget);
202 AnnulusPropertyWidget->setWindowTitle(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Form",
nullptr));
203 #if QT_CONFIG(tooltip) 204 show3DWidget->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Enable/disable showing the interactive annulus widget in the 3d render view.",
nullptr));
205 #endif // QT_CONFIG(tooltip) 206 show3DWidget->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Show Annulus",
nullptr));
207 #if QT_CONFIG(tooltip) 208 outlineTranslation->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Enable/disable the ability to translate the bounding box by moving it with the mouse.",
nullptr));
209 #endif // QT_CONFIG(tooltip) 210 outlineTranslation->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Outline Translation",
nullptr));
211 #if QT_CONFIG(tooltip) 212 scaling->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Enable/disable the ability to scale the widget with the mouse.",
nullptr));
213 #endif // QT_CONFIG(tooltip) 214 scaling->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Scaling",
nullptr));
215 innerRadiusLabel->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Inner Radius",
nullptr));
216 outerRadiusLabel->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Outer Radius",
nullptr));
217 axisLabel->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Axis",
nullptr));
218 axisZ->setText(QString());
219 centerLabel->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Center",
nullptr));
220 #if QT_CONFIG(tooltip) 221 useXAxis->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Use the X-axis as the annulus's axis.",
nullptr));
222 #endif // QT_CONFIG(tooltip) 223 useXAxis->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Along X Axis",
nullptr));
224 #if QT_CONFIG(tooltip) 225 useYAxis->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Use the Y-axis as the annulus's axis.",
nullptr));
226 #endif // QT_CONFIG(tooltip) 227 useYAxis->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Along Y Axis",
nullptr));
228 #if QT_CONFIG(tooltip) 229 useZAxis->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Use the Z-axis as the annulus's axis.",
nullptr));
230 #endif // QT_CONFIG(tooltip) 231 useZAxis->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Along Z Axis",
nullptr));
232 #if QT_CONFIG(tooltip) 233 useCameraAxis->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Use the camera's view direction as the axis of the annulus.",
nullptr));
234 #endif // QT_CONFIG(tooltip) 235 useCameraAxis->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Along Camera Axis",
nullptr));
236 #if QT_CONFIG(tooltip) 237 resetCameraToAxis->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Reset the camera to look along the annulus's axis.",
nullptr));
238 #endif // QT_CONFIG(tooltip) 239 resetCameraToAxis->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Reset Camera to Axis",
nullptr));
240 #if QT_CONFIG(tooltip) 241 resetBounds->setToolTip(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Reset the annulus's properties based on the data bounds.",
nullptr));
242 #endif // QT_CONFIG(tooltip) 243 resetBounds->setText(QCoreApplication::translate(
"AnnulusPropertyWidget",
"Reset to Data Bounds",
nullptr));
254 #endif // UI_PQANNULUSPROPERTYWIDGET_H
pqLineEdit subclass that supports a low precision view when inactive