Commit 98fd2112 authored by CABEL Tristan's avatar CABEL Tristan

Feature/decorator collection

parent 4c72433e
......@@ -234,6 +234,10 @@ void dtkVisualizationDecoratorDelaunay2D::setColor(const QColor& color)
void dtkVisualizationDecoratorDelaunay2D::setOpacity(const double& alpha)
{
d->actor->GetProperty()->SetOpacity(alpha);
d->opacity_spinbox->blockSignals(true);
d->opacity_spinbox->setValue(alpha);
d->opacity_spinbox->blockSignals(false);
this->draw();
}
......
......@@ -263,6 +263,10 @@ void dtkVisualizationDecoratorPoints::setOpacity(const double& alpha)
{
d->actor->GetProperty()->SetOpacity(alpha);
d->opacity_spinbox->blockSignals(true);
d->opacity_spinbox->setValue(alpha);
d->opacity_spinbox->blockSignals(false);
if (this->canvas() && this->canvas()->interactor()) {
this->canvas()->interactor()->Render();
this->canvas()->renderer()->GetRenderWindow()->Render();
......@@ -273,6 +277,10 @@ void dtkVisualizationDecoratorPoints::setSize(const double& size)
{
d->actor->GetProperty()->SetPointSize(size);
d->size_spinbox->blockSignals(true);
d->size_spinbox->setValue(size);
d->size_spinbox->blockSignals(false);
if (this->canvas() && this->canvas()->interactor()) {
this->canvas()->interactor()->Render();
this->canvas()->renderer()->GetRenderWindow()->Render();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment