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