9 #ifndef UI_PQLIGHTSEDITOR_H 10 #define UI_PQLIGHTSEDITOR_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QDoubleSpinBox> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QPushButton> 20 #include <QtWidgets/QVBoxLayout> 21 #include <QtWidgets/QWidget> 71 if (LightsEditor->objectName().isEmpty())
72 LightsEditor->setObjectName(QString::fromUtf8(
"LightsEditor"));
73 LightsEditor->resize(439, 252);
74 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
75 sizePolicy.setHorizontalStretch(0);
76 sizePolicy.setVerticalStretch(0);
77 sizePolicy.setHeightForWidth(LightsEditor->sizePolicy().hasHeightForWidth());
78 LightsEditor->setSizePolicy(sizePolicy);
79 verticalLayout =
new QVBoxLayout(LightsEditor);
80 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
81 verticalLayout->setContentsMargins(0, 0, 0, 9);
82 LightKitControls =
new QWidget(LightsEditor);
83 LightKitControls->setObjectName(QString::fromUtf8(
"LightKitControls"));
84 LightKitControls->setMinimumSize(QSize(0, 0));
85 anotherHBoxLayout =
new QHBoxLayout(LightKitControls);
86 anotherHBoxLayout->setObjectName(QString::fromUtf8(
"anotherHBoxLayout"));
87 anotherHBoxLayout->setContentsMargins(0, 0, 0, 0);
88 LightKit =
new QCheckBox(LightKitControls);
89 LightKit->setObjectName(QString::fromUtf8(
"LightKit"));
90 LightKit->setChecked(
true);
92 anotherHBoxLayout->addWidget(LightKit);
94 Reset =
new QPushButton(LightKitControls);
95 Reset->setObjectName(QString::fromUtf8(
"Reset"));
97 anotherHBoxLayout->addWidget(Reset);
100 verticalLayout->addWidget(LightKitControls);
102 lightKitParams =
new QWidget(LightsEditor);
103 lightKitParams->setObjectName(QString::fromUtf8(
"lightKitParams"));
104 gridLayout =
new QGridLayout(lightKitParams);
105 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
106 gridLayout->setContentsMargins(0, 0, 0, 0);
107 backLabel =
new QLabel(lightKitParams);
108 backLabel->setObjectName(QString::fromUtf8(
"backLabel"));
110 gridLayout->addWidget(backLabel, 3, 0, 1, 1);
112 HeadLightK_H_Ratio =
new QDoubleSpinBox(lightKitParams);
113 HeadLightK_H_Ratio->setObjectName(QString::fromUtf8(
"HeadLightK_H_Ratio"));
114 QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Fixed);
115 sizePolicy1.setHorizontalStretch(1);
116 sizePolicy1.setVerticalStretch(0);
117 sizePolicy1.setHeightForWidth(HeadLightK_H_Ratio->sizePolicy().hasHeightForWidth());
118 HeadLightK_H_Ratio->setSizePolicy(sizePolicy1);
119 HeadLightK_H_Ratio->setMinimum(1.000000000000000);
120 HeadLightK_H_Ratio->setSingleStep(0.500000000000000);
122 gridLayout->addWidget(HeadLightK_H_Ratio, 4, 4, 1, 1);
124 fillWarmthLabel =
new QLabel(lightKitParams);
125 fillWarmthLabel->setObjectName(QString::fromUtf8(
"fillWarmthLabel"));
127 gridLayout->addWidget(fillWarmthLabel, 2, 1, 1, 1);
129 fillAzimuthLabel =
new QLabel(lightKitParams);
130 fillAzimuthLabel->setObjectName(QString::fromUtf8(
"fillAzimuthLabel"));
132 gridLayout->addWidget(fillAzimuthLabel, 2, 7, 1, 1);
134 keyAzimuthLabel =
new QLabel(lightKitParams);
135 keyAzimuthLabel->setObjectName(QString::fromUtf8(
"keyAzimuthLabel"));
137 gridLayout->addWidget(keyAzimuthLabel, 1, 7, 1, 1);
139 BackLightElevation =
new QDoubleSpinBox(lightKitParams);
140 BackLightElevation->setObjectName(QString::fromUtf8(
"BackLightElevation"));
141 sizePolicy1.setHeightForWidth(BackLightElevation->sizePolicy().hasHeightForWidth());
142 BackLightElevation->setSizePolicy(sizePolicy1);
143 BackLightElevation->setDecimals(0);
144 BackLightElevation->setMinimum(-90.000000000000000);
145 BackLightElevation->setMaximum(90.000000000000000);
146 BackLightElevation->setSingleStep(10.000000000000000);
148 gridLayout->addWidget(BackLightElevation, 3, 6, 1, 1);
150 KeyLightIntensity =
new QDoubleSpinBox(lightKitParams);
151 KeyLightIntensity->setObjectName(QString::fromUtf8(
"KeyLightIntensity"));
152 sizePolicy1.setHeightForWidth(KeyLightIntensity->sizePolicy().hasHeightForWidth());
153 KeyLightIntensity->setSizePolicy(sizePolicy1);
154 KeyLightIntensity->setMaximum(1.000000000000000);
155 KeyLightIntensity->setSingleStep(0.100000000000000);
157 gridLayout->addWidget(KeyLightIntensity, 1, 4, 1, 1);
159 BackLightK_B_Ratio =
new QDoubleSpinBox(lightKitParams);
160 BackLightK_B_Ratio->setObjectName(QString::fromUtf8(
"BackLightK_B_Ratio"));
161 sizePolicy1.setHeightForWidth(BackLightK_B_Ratio->sizePolicy().hasHeightForWidth());
162 BackLightK_B_Ratio->setSizePolicy(sizePolicy1);
163 BackLightK_B_Ratio->setMinimum(1.000000000000000);
164 BackLightK_B_Ratio->setSingleStep(0.500000000000000);
166 gridLayout->addWidget(BackLightK_B_Ratio, 3, 4, 1, 1);
168 headWarmthLabel =
new QLabel(lightKitParams);
169 headWarmthLabel->setObjectName(QString::fromUtf8(
"headWarmthLabel"));
171 gridLayout->addWidget(headWarmthLabel, 4, 1, 1, 1);
173 KeyLightWarmth =
new QDoubleSpinBox(lightKitParams);
174 KeyLightWarmth->setObjectName(QString::fromUtf8(
"KeyLightWarmth"));
175 sizePolicy1.setHeightForWidth(KeyLightWarmth->sizePolicy().hasHeightForWidth());
176 KeyLightWarmth->setSizePolicy(sizePolicy1);
177 KeyLightWarmth->setButtonSymbols(QAbstractSpinBox::UpDownArrows);
178 KeyLightWarmth->setMaximum(1.000000000000000);
179 KeyLightWarmth->setSingleStep(0.100000000000000);
181 gridLayout->addWidget(KeyLightWarmth, 1, 2, 1, 1);
183 fillLabel =
new QLabel(lightKitParams);
184 fillLabel->setObjectName(QString::fromUtf8(
"fillLabel"));
186 gridLayout->addWidget(fillLabel, 2, 0, 1, 1);
188 FillLightAzimuth =
new QDoubleSpinBox(lightKitParams);
189 FillLightAzimuth->setObjectName(QString::fromUtf8(
"FillLightAzimuth"));
190 sizePolicy1.setHeightForWidth(FillLightAzimuth->sizePolicy().hasHeightForWidth());
191 FillLightAzimuth->setSizePolicy(sizePolicy1);
192 FillLightAzimuth->setDecimals(0);
193 FillLightAzimuth->setMinimum(-180.000000000000000);
194 FillLightAzimuth->setMaximum(180.000000000000000);
195 FillLightAzimuth->setSingleStep(10.000000000000000);
197 gridLayout->addWidget(FillLightAzimuth, 2, 8, 1, 1);
199 FillLightElevation =
new QDoubleSpinBox(lightKitParams);
200 FillLightElevation->setObjectName(QString::fromUtf8(
"FillLightElevation"));
201 sizePolicy1.setHeightForWidth(FillLightElevation->sizePolicy().hasHeightForWidth());
202 FillLightElevation->setSizePolicy(sizePolicy1);
203 FillLightElevation->setDecimals(0);
204 FillLightElevation->setMinimum(-90.000000000000000);
205 FillLightElevation->setMaximum(90.000000000000000);
206 FillLightElevation->setSingleStep(10.000000000000000);
208 gridLayout->addWidget(FillLightElevation, 2, 6, 1, 1);
210 KeyLightElevation =
new QDoubleSpinBox(lightKitParams);
211 KeyLightElevation->setObjectName(QString::fromUtf8(
"KeyLightElevation"));
212 sizePolicy1.setHeightForWidth(KeyLightElevation->sizePolicy().hasHeightForWidth());
213 KeyLightElevation->setSizePolicy(sizePolicy1);
214 KeyLightElevation->setDecimals(0);
215 KeyLightElevation->setMinimum(-90.000000000000000);
216 KeyLightElevation->setMaximum(90.000000000000000);
217 KeyLightElevation->setSingleStep(10.000000000000000);
219 gridLayout->addWidget(KeyLightElevation, 1, 6, 1, 1);
221 keyLabel =
new QLabel(lightKitParams);
222 keyLabel->setObjectName(QString::fromUtf8(
"keyLabel"));
224 gridLayout->addWidget(keyLabel, 1, 0, 1, 1);
226 KeyLightAzimuth =
new QDoubleSpinBox(lightKitParams);
227 KeyLightAzimuth->setObjectName(QString::fromUtf8(
"KeyLightAzimuth"));
228 sizePolicy1.setHeightForWidth(KeyLightAzimuth->sizePolicy().hasHeightForWidth());
229 KeyLightAzimuth->setSizePolicy(sizePolicy1);
230 KeyLightAzimuth->setDecimals(0);
231 KeyLightAzimuth->setMinimum(-180.000000000000000);
232 KeyLightAzimuth->setMaximum(180.000000000000000);
233 KeyLightAzimuth->setSingleStep(10.000000000000000);
235 gridLayout->addWidget(KeyLightAzimuth, 1, 8, 1, 1);
237 headRatioLabel =
new QLabel(lightKitParams);
238 headRatioLabel->setObjectName(QString::fromUtf8(
"headRatioLabel"));
240 gridLayout->addWidget(headRatioLabel, 4, 3, 1, 1);
242 HeadLightWarmth =
new QDoubleSpinBox(lightKitParams);
243 HeadLightWarmth->setObjectName(QString::fromUtf8(
"HeadLightWarmth"));
244 sizePolicy1.setHeightForWidth(HeadLightWarmth->sizePolicy().hasHeightForWidth());
245 HeadLightWarmth->setSizePolicy(sizePolicy1);
246 HeadLightWarmth->setMaximum(1.000000000000000);
247 HeadLightWarmth->setSingleStep(0.100000000000000);
249 gridLayout->addWidget(HeadLightWarmth, 4, 2, 1, 1);
251 fillElevationLabel =
new QLabel(lightKitParams);
252 fillElevationLabel->setObjectName(QString::fromUtf8(
"fillElevationLabel"));
254 gridLayout->addWidget(fillElevationLabel, 2, 5, 1, 1);
256 fillRatioLabel =
new QLabel(lightKitParams);
257 fillRatioLabel->setObjectName(QString::fromUtf8(
"fillRatioLabel"));
259 gridLayout->addWidget(fillRatioLabel, 2, 3, 1, 1);
261 keyIntensityLabel =
new QLabel(lightKitParams);
262 keyIntensityLabel->setObjectName(QString::fromUtf8(
"keyIntensityLabel"));
264 gridLayout->addWidget(keyIntensityLabel, 1, 3, 1, 1);
266 headLabel =
new QLabel(lightKitParams);
267 headLabel->setObjectName(QString::fromUtf8(
"headLabel"));
269 gridLayout->addWidget(headLabel, 4, 0, 1, 1);
271 FillLightWarmth =
new QDoubleSpinBox(lightKitParams);
272 FillLightWarmth->setObjectName(QString::fromUtf8(
"FillLightWarmth"));
273 sizePolicy1.setHeightForWidth(FillLightWarmth->sizePolicy().hasHeightForWidth());
274 FillLightWarmth->setSizePolicy(sizePolicy1);
275 FillLightWarmth->setMaximum(1.000000000000000);
276 FillLightWarmth->setSingleStep(0.100000000000000);
278 gridLayout->addWidget(FillLightWarmth, 2, 2, 1, 1);
280 BackLightAzimuth =
new QDoubleSpinBox(lightKitParams);
281 BackLightAzimuth->setObjectName(QString::fromUtf8(
"BackLightAzimuth"));
282 sizePolicy1.setHeightForWidth(BackLightAzimuth->sizePolicy().hasHeightForWidth());
283 BackLightAzimuth->setSizePolicy(sizePolicy1);
284 BackLightAzimuth->setDecimals(0);
285 BackLightAzimuth->setMinimum(-180.000000000000000);
286 BackLightAzimuth->setMaximum(180.000000000000000);
287 BackLightAzimuth->setSingleStep(10.000000000000000);
289 gridLayout->addWidget(BackLightAzimuth, 3, 8, 1, 1);
291 backElevationLabel =
new QLabel(lightKitParams);
292 backElevationLabel->setObjectName(QString::fromUtf8(
"backElevationLabel"));
294 gridLayout->addWidget(backElevationLabel, 3, 5, 1, 1);
296 backRatioLabel =
new QLabel(lightKitParams);
297 backRatioLabel->setObjectName(QString::fromUtf8(
"backRatioLabel"));
299 gridLayout->addWidget(backRatioLabel, 3, 3, 1, 1);
301 keyElevationLabel =
new QLabel(lightKitParams);
302 keyElevationLabel->setObjectName(QString::fromUtf8(
"keyElevationLabel"));
304 gridLayout->addWidget(keyElevationLabel, 1, 5, 1, 1);
306 keyWarmthLabel =
new QLabel(lightKitParams);
307 keyWarmthLabel->setObjectName(QString::fromUtf8(
"keyWarmthLabel"));
309 gridLayout->addWidget(keyWarmthLabel, 1, 1, 1, 1);
311 backWarmthLabel =
new QLabel(lightKitParams);
312 backWarmthLabel->setObjectName(QString::fromUtf8(
"backWarmthLabel"));
314 gridLayout->addWidget(backWarmthLabel, 3, 1, 1, 1);
316 backAzimuthLabel =
new QLabel(lightKitParams);
317 backAzimuthLabel->setObjectName(QString::fromUtf8(
"backAzimuthLabel"));
319 gridLayout->addWidget(backAzimuthLabel, 3, 7, 1, 1);
321 MaintainLuminance =
new QCheckBox(lightKitParams);
322 MaintainLuminance->setObjectName(QString::fromUtf8(
"MaintainLuminance"));
324 gridLayout->addWidget(MaintainLuminance, 5, 0, 1, 4);
326 BackLightWarmth =
new QDoubleSpinBox(lightKitParams);
327 BackLightWarmth->setObjectName(QString::fromUtf8(
"BackLightWarmth"));
328 sizePolicy1.setHeightForWidth(BackLightWarmth->sizePolicy().hasHeightForWidth());
329 BackLightWarmth->setSizePolicy(sizePolicy1);
330 BackLightWarmth->setMaximum(1.000000000000000);
331 BackLightWarmth->setSingleStep(0.100000000000000);
333 gridLayout->addWidget(BackLightWarmth, 3, 2, 1, 1);
335 FillLightK_F_Ratio =
new QDoubleSpinBox(lightKitParams);
336 FillLightK_F_Ratio->setObjectName(QString::fromUtf8(
"FillLightK_F_Ratio"));
337 sizePolicy1.setHeightForWidth(FillLightK_F_Ratio->sizePolicy().hasHeightForWidth());
338 FillLightK_F_Ratio->setSizePolicy(sizePolicy1);
339 FillLightK_F_Ratio->setMinimum(1.000000000000000);
340 FillLightK_F_Ratio->setSingleStep(0.500000000000000);
342 gridLayout->addWidget(FillLightK_F_Ratio, 2, 4, 1, 1);
345 verticalLayout->addWidget(lightKitParams);
347 QWidget::setTabOrder(KeyLightWarmth, KeyLightIntensity);
348 QWidget::setTabOrder(KeyLightIntensity, KeyLightElevation);
349 QWidget::setTabOrder(KeyLightElevation, KeyLightAzimuth);
350 QWidget::setTabOrder(KeyLightAzimuth, FillLightWarmth);
351 QWidget::setTabOrder(FillLightWarmth, FillLightK_F_Ratio);
352 QWidget::setTabOrder(FillLightK_F_Ratio, FillLightElevation);
353 QWidget::setTabOrder(FillLightElevation, FillLightAzimuth);
354 QWidget::setTabOrder(FillLightAzimuth, BackLightWarmth);
355 QWidget::setTabOrder(BackLightWarmth, BackLightK_B_Ratio);
356 QWidget::setTabOrder(BackLightK_B_Ratio, BackLightElevation);
357 QWidget::setTabOrder(BackLightElevation, BackLightAzimuth);
358 QWidget::setTabOrder(BackLightAzimuth, HeadLightWarmth);
359 QWidget::setTabOrder(HeadLightWarmth, HeadLightK_H_Ratio);
362 QObject::connect(LightKit, SIGNAL(toggled(
bool)), lightKitParams, SLOT(setVisible(
bool)));
364 QMetaObject::connectSlotsByName(LightsEditor);
369 LightsEditor->setWindowTitle(QCoreApplication::translate(
"LightsEditor",
"Lights Editor",
nullptr));
370 #if QT_CONFIG(tooltip) 371 LightKit->setToolTip(QCoreApplication::translate(
"LightsEditor",
"Turn on or off all the lights in the lighting kit.",
nullptr));
372 #endif // QT_CONFIG(tooltip) 373 LightKit->setText(QCoreApplication::translate(
"LightsEditor",
"Light Kit",
nullptr));
374 #if QT_CONFIG(tooltip) 375 Reset->setToolTip(QCoreApplication::translate(
"LightsEditor",
"Reset lights to their default values",
nullptr));
376 #endif // QT_CONFIG(tooltip) 377 Reset->setText(QCoreApplication::translate(
"LightsEditor",
"Reset",
nullptr));
378 #if QT_CONFIG(tooltip) 379 backLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The two back lights, one on the left of the object as seen from the observer and one on the right, fill on the high-contrast areas behind the object. ",
nullptr));
380 #endif // QT_CONFIG(tooltip) 381 backLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Back",
nullptr));
382 #if QT_CONFIG(tooltip) 383 HeadLightK_H_Ratio->setToolTip(QCoreApplication::translate(
"LightsEditor",
"Set the Key-to-Head ratio. Similar to the Key-to-Fill ratio, this ratio controls how bright the headlight light is compared to the key light: larger values correspond to a dimmer headlight light. The headlight is special kind of fill light, lighting only the parts of the object that the camera can see. As such, a headlight tends to reduce the contrast of a scene. It can be used to fill in \"shadows\" of the object missed by the key and fill lights. The headlight should always be significantly dimmer than the key light: ratios of 2 to 15 are typical.",
nullptr));
384 #endif // QT_CONFIG(tooltip) 385 #if QT_CONFIG(tooltip) 386 fillWarmthLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The \"Warmth\" of the Fill Light. Warmth is a parameter that varies from 0 to 1, where 0 is \"cold\" (looks icy or lit by a very blue sky), 1 is \"warm\" (the red of a very red sunset, or the embers of a campfire), and 0.5 is a neutral white. The warmth scale is non-linear. Warmth values close to 0.5 are subtly \"warmer\" or \"cooler,\" much like a warmer tungsten incandescent bulb, a cooler halogen, or daylight (cooler still). Moving further away from 0.5, colors become more quickly varying towards blues and reds. With regards to aesthetics, extremes of warmth should be used sparingly. ",
nullptr));
387 #endif // QT_CONFIG(tooltip) 388 fillWarmthLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Warm",
nullptr));
389 #if QT_CONFIG(tooltip) 390 fillAzimuthLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Fill Light Azimuth. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
391 #endif // QT_CONFIG(tooltip) 392 fillAzimuthLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Azi",
nullptr));
393 #if QT_CONFIG(tooltip) 394 keyAzimuthLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Key Light Azimuth. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
395 #endif // QT_CONFIG(tooltip) 396 keyAzimuthLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Azi",
nullptr));
397 #if QT_CONFIG(tooltip) 398 BackLightElevation->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Back Light Elevation. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
399 #endif // QT_CONFIG(tooltip) 400 #if QT_CONFIG(tooltip) 401 KeyLightIntensity->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Intensity of the Key Light. 0 = off and 1 = full intensity.",
nullptr));
402 #endif // QT_CONFIG(tooltip) 403 #if QT_CONFIG(tooltip) 404 BackLightK_B_Ratio->setToolTip(QCoreApplication::translate(
"LightsEditor",
"Set the Key-to-Back Ratio. This ratio controls how bright the back lights are compared to the key light: larger values correspond to dimmer back lights. The back lights fill in the remaining high-contrast regions behind the object. Values between 2 and 10 are good.",
nullptr));
405 #endif // QT_CONFIG(tooltip) 406 #if QT_CONFIG(tooltip) 407 headWarmthLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The \"Warmth\" of the Headlight. Warmth is a parameter that varies from 0 to 1, where 0 is \"cold\" (looks icy or lit by a very blue sky), 1 is \"warm\" (the red of a very red sunset, or the embers of a campfire), and 0.5 is a neutral white. The warmth scale is non-linear. Warmth values close to 0.5 are subtly \"warmer\" or \"cooler,\" much like a warmer tungsten incandescent bulb, a cooler halogen, or daylight (cooler still). Moving further away from 0.5, colors become more quickly varying towards blues and reds. With regards to aesthetics, extremes of warmth should be used sparingly. ",
nullptr));
408 #endif // QT_CONFIG(tooltip) 409 headWarmthLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Warm",
nullptr));
410 #if QT_CONFIG(tooltip) 411 KeyLightWarmth->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The \"Warmth\" of the Key Light. Warmth is a parameter that varies from 0 to 1, where 0 is \"cold\" (looks icy or lit by a very blue sky), 1 is \"warm\" (the red of a very red sunset, or the embers of a campfire), and 0.5 is a neutral white. The warmth scale is non-linear. Warmth values close to 0.5 are subtly \"warmer\" or \"cooler,\" much like a warmer tungsten incandescent bulb, a cooler halogen, or daylight (cooler still). Moving further away from 0.5, colors become more quickly varying towards blues and reds. With regards to aesthetics, extremes of warmth should be used sparingly. ",
nullptr));
412 #endif // QT_CONFIG(tooltip) 413 #if QT_CONFIG(tooltip) 414 fillLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Fill Light is usually positioned across from or opposite from the key light (though still on the same side of the object as the camera) in order to simulate diffuse reflections from other objects in the scene.",
nullptr));
415 #endif // QT_CONFIG(tooltip) 416 fillLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Fill",
nullptr));
417 #if QT_CONFIG(tooltip) 418 FillLightAzimuth->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Fill Light Azimuth. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
419 #endif // QT_CONFIG(tooltip) 420 #if QT_CONFIG(tooltip) 421 FillLightElevation->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Fill Light Elevation. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
422 #endif // QT_CONFIG(tooltip) 423 #if QT_CONFIG(tooltip) 424 KeyLightElevation->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Key Light Elevation. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
425 #endif // QT_CONFIG(tooltip) 426 #if QT_CONFIG(tooltip) 427 keyLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Key Light is the main light. It is usually positioned so that it appears like an overhead light (like the sun or a ceiling light). It is generally positioned to shine down from about a 45 degree angle vertically and at least a little offset side to side. The key light is usually at least about twice as bright as the total of all other lights in the scene to provide good modeling of object features.",
nullptr));
428 #endif // QT_CONFIG(tooltip) 429 keyLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Key",
nullptr));
430 #if QT_CONFIG(tooltip) 431 KeyLightAzimuth->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Key Light Azimuth. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
432 #endif // QT_CONFIG(tooltip) 433 #if QT_CONFIG(tooltip) 434 headRatioLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"Set the Key-to-Head ratio. Similar to the Key-to-Fill ratio, this ratio controls how bright the headlight light is compared to the key light: larger values correspond to a dimmer headlight light. The headlight is special kind of fill light, lighting only the parts of the object that the camera can see. As such, a headlight tends to reduce the contrast of a scene. It can be used to fill in \"shadows\" of the object missed by the key and fill lights. The headlight should always be significantly dimmer than the key light: ratios of 2 to 15 are typical.",
nullptr));
435 #endif // QT_CONFIG(tooltip) 436 headRatioLabel->setText(QCoreApplication::translate(
"LightsEditor",
"K:H",
nullptr));
437 #if QT_CONFIG(tooltip) 438 HeadLightWarmth->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The \"Warmth\" of the Headlight. Warmth is a parameter that varies from 0 to 1, where 0 is \"cold\" (looks icy or lit by a very blue sky), 1 is \"warm\" (the red of a very red sunset, or the embers of a campfire), and 0.5 is a neutral white. The warmth scale is non-linear. Warmth values close to 0.5 are subtly \"warmer\" or \"cooler,\" much like a warmer tungsten incandescent bulb, a cooler halogen, or daylight (cooler still). Moving further away from 0.5, colors become more quickly varying towards blues and reds. With regards to aesthetics, extremes of warmth should be used sparingly. ",
nullptr));
439 #endif // QT_CONFIG(tooltip) 440 #if QT_CONFIG(tooltip) 441 fillElevationLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Fill Light Elevation. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
442 #endif // QT_CONFIG(tooltip) 443 fillElevationLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Ele",
nullptr));
444 #if QT_CONFIG(tooltip) 445 fillRatioLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"Set the Key-to-Fill Ratio. This ratio controls how bright the fill light is compared to the key light: larger values correspond to a dimmer fill light. The purpose of the fill light is to light parts of the object not lit by the key light, while still maintaining contrast. This type of lighting may correspond to indirect illumination from the key light, bounced off a wall, floor, or other object. The fill light should never be brighter than the key light: a good range for the key-to-fill ratio is between 2 and 10.",
nullptr));
446 #endif // QT_CONFIG(tooltip) 447 fillRatioLabel->setText(QCoreApplication::translate(
"LightsEditor",
"K:F",
nullptr));
448 #if QT_CONFIG(tooltip) 449 keyIntensityLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Intensity of the Key Light. 0 = off and 1 = full intensity.",
nullptr));
450 #endif // QT_CONFIG(tooltip) 451 keyIntensityLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Int",
nullptr));
452 #if QT_CONFIG(tooltip) 453 headLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The headlight, always located at the position of the camera, reduces the contrast between areas lit by the key and fill light. ",
nullptr));
454 #endif // QT_CONFIG(tooltip) 455 headLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Head",
nullptr));
456 #if QT_CONFIG(tooltip) 457 FillLightWarmth->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The \"Warmth\" of the Fill Light. Warmth is a parameter that varies from 0 to 1, where 0 is \"cold\" (looks icy or lit by a very blue sky), 1 is \"warm\" (the red of a very red sunset, or the embers of a campfire), and 0.5 is a neutral white. The warmth scale is non-linear. Warmth values close to 0.5 are subtly \"warmer\" or \"cooler,\" much like a warmer tungsten incandescent bulb, a cooler halogen, or daylight (cooler still). Moving further away from 0.5, colors become more quickly varying towards blues and reds. With regards to aesthetics, extremes of warmth should be used sparingly. ",
nullptr));
458 #endif // QT_CONFIG(tooltip) 459 #if QT_CONFIG(tooltip) 460 BackLightAzimuth->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Back Light Azimuth. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
461 #endif // QT_CONFIG(tooltip) 462 #if QT_CONFIG(tooltip) 463 backElevationLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Back Light Elevation. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
464 #endif // QT_CONFIG(tooltip) 465 backElevationLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Ele",
nullptr));
466 #if QT_CONFIG(tooltip) 467 backRatioLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"Set the Key-to-Back Ratio. This ratio controls how bright the back lights are compared to the key light: larger values correspond to dimmer back lights. The back lights fill in the remaining high-contrast regions behind the object. Values between 2 and 10 are good.",
nullptr));
468 #endif // QT_CONFIG(tooltip) 469 backRatioLabel->setText(QCoreApplication::translate(
"LightsEditor",
"K:B",
nullptr));
470 #if QT_CONFIG(tooltip) 471 keyElevationLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Key Light Elevation. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
472 #endif // QT_CONFIG(tooltip) 473 keyElevationLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Ele",
nullptr));
474 #if QT_CONFIG(tooltip) 475 keyWarmthLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The \"Warmth\" of the Key Light. Warmth is a parameter that varies from 0 to 1, where 0 is \"cold\" (looks icy or lit by a very blue sky), 1 is \"warm\" (the red of a very red sunset, or the embers of a campfire), and 0.5 is a neutral white. The warmth scale is non-linear. Warmth values close to 0.5 are subtly \"warmer\" or \"cooler,\" much like a warmer tungsten incandescent bulb, a cooler halogen, or daylight (cooler still). Moving further away from 0.5, colors become more quickly varying towards blues and reds. With regards to aesthetics, extremes of warmth should be used sparingly. ",
nullptr));
476 #endif // QT_CONFIG(tooltip) 477 keyWarmthLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Warm",
nullptr));
478 #if QT_CONFIG(tooltip) 479 backWarmthLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The \"Warmth\" of the Back Light. Warmth is a parameter that varies from 0 to 1, where 0 is \"cold\" (looks icy or lit by a very blue sky), 1 is \"warm\" (the red of a very red sunset, or the embers of a campfire), and 0.5 is a neutral white. The warmth scale is non-linear. Warmth values close to 0.5 are subtly \"warmer\" or \"cooler,\" much like a warmer tungsten incandescent bulb, a cooler halogen, or daylight (cooler still). Moving further away from 0.5, colors become more quickly varying towards blues and reds. With regards to aesthetics, extremes of warmth should be used sparingly. ",
nullptr));
480 #endif // QT_CONFIG(tooltip) 481 backWarmthLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Warm",
nullptr));
482 #if QT_CONFIG(tooltip) 483 backAzimuthLabel->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The Back Light Azimuth. For simplicity, the position of lights in the LightKit can only be specified using angles: the elevation (latitude) and azimuth (longitude) of each light with respect to the camera, expressed in degrees. (Lights always shine on the camera's lookat point.) For example, a light at (elevation=0, azimuth=0) is located at the camera (a headlight). A light at (elevation=90, azimuth=0) is above the lookat point, shining down. Negative azimuth values move the lights clockwise as seen above, positive values counter-clockwise. So, a light at (elevation=45, azimuth=-20) is above and in front of the object and shining slightly from the left side.",
nullptr));
484 #endif // QT_CONFIG(tooltip) 485 backAzimuthLabel->setText(QCoreApplication::translate(
"LightsEditor",
"Azi",
nullptr));
486 #if QT_CONFIG(tooltip) 487 MaintainLuminance->setToolTip(QCoreApplication::translate(
"LightsEditor",
"If Maintain Luminance is set, the LightKit will attempt to maintain the apparent intensity of lights based on their perceptual brightnesses.",
nullptr));
488 #endif // QT_CONFIG(tooltip) 489 MaintainLuminance->setText(QCoreApplication::translate(
"LightsEditor",
"Maintain Luminance",
nullptr));
490 #if QT_CONFIG(tooltip) 491 BackLightWarmth->setToolTip(QCoreApplication::translate(
"LightsEditor",
"The \"Warmth\" of the Back Light. Warmth is a parameter that varies from 0 to 1, where 0 is \"cold\" (looks icy or lit by a very blue sky), 1 is \"warm\" (the red of a very red sunset, or the embers of a campfire), and 0.5 is a neutral white. The warmth scale is non-linear. Warmth values close to 0.5 are subtly \"warmer\" or \"cooler,\" much like a warmer tungsten incandescent bulb, a cooler halogen, or daylight (cooler still). Moving further away from 0.5, colors become more quickly varying towards blues and reds. With regards to aesthetics, extremes of warmth should be used sparingly. ",
nullptr));
492 #endif // QT_CONFIG(tooltip) 493 #if QT_CONFIG(tooltip) 494 FillLightK_F_Ratio->setToolTip(QCoreApplication::translate(
"LightsEditor",
"Set the Key-to-Fill Ratio. This ratio controls how bright the fill light is compared to the key light: larger values correspond to a dimmer fill light. The purpose of the fill light is to light parts of the object not lit by the key light, while still maintaining contrast. This type of lighting may correspond to indirect illumination from the key light, bounced off a wall, floor, or other object. The fill light should never be brighter than the key light: a good range for the key-to-fill ratio is between 2 and 10.",
nullptr));
495 #endif // QT_CONFIG(tooltip) 506 #endif // UI_PQLIGHTSEDITOR_H
QVBoxLayout * verticalLayout
QLabel * backAzimuthLabel
QDoubleSpinBox * HeadLightK_H_Ratio
QLabel * fillElevationLabel
QDoubleSpinBox * KeyLightIntensity
QLabel * keyIntensityLabel
QDoubleSpinBox * KeyLightAzimuth
void retranslateUi(QWidget *LightsEditor)
QHBoxLayout * anotherHBoxLayout
QDoubleSpinBox * BackLightElevation
QDoubleSpinBox * FillLightK_F_Ratio
QLabel * keyElevationLabel
QDoubleSpinBox * KeyLightElevation
void setupUi(QWidget *LightsEditor)
QWidget * LightKitControls
QDoubleSpinBox * BackLightAzimuth
QDoubleSpinBox * FillLightWarmth
QDoubleSpinBox * BackLightWarmth
QDoubleSpinBox * FillLightElevation
QDoubleSpinBox * FillLightAzimuth
QDoubleSpinBox * HeadLightWarmth
QLabel * backElevationLabel
QDoubleSpinBox * BackLightK_B_Ratio
QLabel * fillAzimuthLabel
QCheckBox * MaintainLuminance
QDoubleSpinBox * KeyLightWarmth