#include <VP1DrawOptionsWidget.h>
Definition at line 25 of file VP1DrawOptionsWidget.h.
◆ VP1DrawOptionsWidget()
VP1DrawOptionsWidget::VP1DrawOptionsWidget |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~VP1DrawOptionsWidget()
VP1DrawOptionsWidget::~VP1DrawOptionsWidget |
( |
| ) |
|
|
virtual |
◆ applyState()
void VP1DrawOptionsWidget::applyState |
( |
const QByteArray & |
ba | ) |
|
Definition at line 262 of file VP1DrawOptionsWidget.cxx.
271 s.widgetHandled(
m_d->
ui.horizontalSlider_linewidths);
272 s.widgetHandled(
m_d->
ui.horizontalSlider_pointsizes);
274 s.restore(
m_d->
ui.horizontalSlider_complexity);
275 s.restore(
m_d->
ui.checkBox_useBaseLightModel);
277 s.widgetHandled(
this);
278 s.warnUnrestored(
this);
◆ complexity()
double VP1DrawOptionsWidget::complexity |
( |
| ) |
const |
Definition at line 90 of file VP1DrawOptionsWidget.cxx.
94 const int val =
m_d->
ui.horizontalSlider_complexity->value();
95 const int min =
m_d->
ui.horizontalSlider_complexity->minimum();
96 const int max =
m_d->
ui.horizontalSlider_complexity->maximum();
101 return std::min<double>(1.0,std::max<double>(0.0,(
val-
min)/(
max*1.0)));
◆ complexityChanged
void VP1DrawOptionsWidget::complexityChanged |
( |
const double & |
| ) |
|
|
signal |
◆ drawOptionsGroup()
SoGroup * VP1DrawOptionsWidget::drawOptionsGroup |
( |
| ) |
const |
◆ setBaseLightingDisabled()
void VP1DrawOptionsWidget::setBaseLightingDisabled |
( |
bool |
b = true | ) |
|
◆ setComplexity()
void VP1DrawOptionsWidget::setComplexity |
( |
const double & |
c | ) |
|
Definition at line 105 of file VP1DrawOptionsWidget.cxx.
107 int min =
m_d->
ui.horizontalSlider_complexity->minimum();
108 int max =
m_d->
ui.horizontalSlider_complexity->maximum();
110 if (
m_d->
ui.horizontalSlider_complexity->value()!=newval) {
111 m_d->
ui.horizontalSlider_complexity->setValue(newval);
◆ setComplexityDisabled()
void VP1DrawOptionsWidget::setComplexityDisabled |
( |
bool |
b = true | ) |
|
◆ setLineWidths()
void VP1DrawOptionsWidget::setLineWidths |
( |
const double & |
lw | ) |
|
◆ setLineWidthsDisabled()
void VP1DrawOptionsWidget::setLineWidthsDisabled |
( |
bool |
b = true | ) |
|
◆ setPointSizes()
void VP1DrawOptionsWidget::setPointSizes |
( |
const double & |
ps | ) |
|
◆ setPointSizesDisabled()
void VP1DrawOptionsWidget::setPointSizesDisabled |
( |
bool |
b = true | ) |
|
◆ setUseBaseLighting()
void VP1DrawOptionsWidget::setUseBaseLighting |
( |
bool |
b | ) |
|
◆ state()
QByteArray VP1DrawOptionsWidget::state |
( |
| ) |
const |
Definition at line 242 of file VP1DrawOptionsWidget.cxx.
249 s.widgetHandled(
m_d->
ui.horizontalSlider_linewidths);
250 s.widgetHandled(
m_d->
ui.horizontalSlider_pointsizes);
252 s.save(
m_d->
ui.horizontalSlider_complexity);
253 s.save(
m_d->
ui.checkBox_useBaseLightModel);
255 s.widgetHandled(
this);
◆ updateNodes
void VP1DrawOptionsWidget::updateNodes |
( |
| ) |
|
|
privateslot |
Definition at line 183 of file VP1DrawOptionsWidget.cxx.
189 if (drawStyleAttached)
192 if (!drawStyleAttached)
198 if (complexityAttached)
201 if (!complexityAttached)
207 if (lightModelAttachedGoal!=lightModelAttached) {
208 if (lightModelAttached)
224 complexityval = std::min<double>(1.0,std::max<double>(0.0,0.01+0.991*complexityval));
◆ m_d
Imp* VP1DrawOptionsWidget::m_d |
|
private |
The documentation for this class was generated from the following files: