Commit d274af04 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud

Avoid slice to be decorate polydata.

parent 624556b8
......@@ -271,6 +271,15 @@ dtkVisualizationDecoratorSlices::~dtkVisualizationDecoratorSlices(void)
d = nullptr;
}
bool dtkVisualizationDecoratorSlices::isDecorating(void)
{
if (!vtkImageData::SafeDownCast(d_func()->dataset)) {
return false;
}
return dtkVisualizationDecoratorWithClut::isDecorating();
}
void dtkVisualizationDecoratorSlices::setData(const QVariant& data)
{
vtkDataSet *dataset = data.value<vtkDataSet *>();
......
......@@ -31,7 +31,9 @@ public:
void setCanvas(dtkVisualizationCanvas *) override;
void unsetCanvas(void) override;
void touch(void) override;
public:
bool isDecorating(void) override;
bool setCurrentFieldName(const QString&) override;
public:
......
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