Commit 66f0a42c authored by Pierre Fernique's avatar Pierre Fernique

Update draw method

parent 6a136d4d
......@@ -97,6 +97,11 @@ dtkVisualizationDecoratorScalarColorMap::~dtkVisualizationDecoratorScalarColorMa
void dtkVisualizationDecoratorScalarColorMap::draw(void)
{
if (d->supports[d->current_field_name] == dtkVisualizationDecoratorScalarColorMapPrivate::Support::Point) {
d->dataset->GetPointData()->SetActiveScalars(qPrintable(d->current_field_name));
} else if (d->supports[d->current_field_name] == dtkVisualizationDecoratorScalarColorMapPrivate::Support::Cell) {
d->dataset->GetCellData()->SetActiveScalars(qPrintable(d->current_field_name));
}
if (!d->dataset || d->current_field_name.isEmpty()) {
dtkWarn() << Q_FUNC_INFO << "Set dataset and field name before updating actor.";
return;
......
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