Commit 88b6b5eb authored by CABEL Tristan's avatar CABEL Tristan

Merge branch 'feature/decorator_collection' into 'develop'

Feature/decorator collection

See merge request !30
parents 4c72433e 98fd2112
......@@ -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