Commit 25e33f01 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

remove test of uniform values for vector stream lines

parent 8ba526cd
......@@ -122,7 +122,7 @@ dtkVisualizationDecoratorVectorStreamlines::dtkVisualizationDecoratorVectorStrea
d->show_actor_cb = new QCheckBox;
d->show_source_actor_cb = new QCheckBox;
d->show_source_actor_cb->setChecked(true);
d->show_source_actor_cb->setChecked(false);
//////////
// Inspectors connections
......@@ -155,6 +155,9 @@ dtkVisualizationDecoratorVectorStreamlines::~dtkVisualizationDecoratorVectorStre
void dtkVisualizationDecoratorVectorStreamlines::restoreSettings(void)
{
QString name = this->objectName();
if (name.isEmpty())
return;
dtkVisualizationDecoratorWithClut::restoreSettings();
d->actor->SetVisibility(d_func()->default_visibility);
d->show_actor_cb->blockSignals(true);
......@@ -252,8 +255,8 @@ void dtkVisualizationDecoratorVectorStreamlines::unsetCanvas(void)
void dtkVisualizationDecoratorVectorStreamlines::setVisibility(bool visible)
{
d->actor->SetVisibility(visible);
dtkVisualizationDecoratorWithClut::setVisibility(visible);
d->actor->SetVisibility(visible);
}
bool dtkVisualizationDecoratorVectorStreamlines::setCurrentFieldName(const QString& field_name)
......@@ -274,12 +277,6 @@ bool dtkVisualizationDecoratorVectorStreamlines::setCurrentFieldName(const QStri
}
d_func()->current_field_name = field_name;
if (this->isCurrentFieldUniform()) {
d->show_actor_cb->setChecked(false);
d->show_actor_cb->setEnabled(false);
} else {
d->show_actor_cb->setEnabled(true);
}
using Support = dtkVisualizationDecoratorWithClut::Support;
int support = d_func()->supports[field_name];
......
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