49 #include "ToonRenderer.hh" 54 #include <QVBoxLayout> 55 #include <ACG/QtWidgets/QtColorChooserButton.hh> 57 void ToonRenderer::actionDialog(
bool )
60 QDialog* optionsDlg =
new QDialog();
61 QVBoxLayout* layout =
new QVBoxLayout();
62 layout->setAlignment(Qt::AlignTop);
67 QLabel* label =
new QLabel(tr(
"Palette Size [0, 10]:"));
68 layout->addWidget(label);
70 QSlider* paletteSizeSlider =
new QSlider(Qt::Horizontal);
71 paletteSizeSlider->setRange(0, 1000);
73 paletteSizeSlider->setTracking(
true);
74 layout->addWidget(paletteSizeSlider);
77 layout->addWidget(outlineColorBtn);
79 outlineColorBtn->setColor( curColor );
81 optionsDlg->setLayout(layout);
84 connect(paletteSizeSlider, SIGNAL(valueChanged(
int)),
this, SLOT(paletteSizeChanged(
int)));
85 connect(outlineColorBtn, SIGNAL(colorChanged(QColor)),
this, SLOT(outlineColorChanged(QColor)));
float paletteSize_
size of cel shading palette
ACG::Vec3f outlineCol_
outline color