Commit 306a2e30 authored by LACROIX Romain's avatar LACROIX Romain

Implemented the Connection getter function for DecoratorSurfaceColor.

parent 4b6de89d
......@@ -33,6 +33,7 @@ class DTKVISUALIZATION_EXPORT dtkVisualizationDecorator : public QObject
{
Q_OBJECT
public:
using Connection = vtkAlgorithmOutput;
public:
......
......@@ -157,6 +157,17 @@ void dtkVisualizationDecoratorSurfaceColor::setVisibility(bool visible)
dtkVisualizationDecoratorWithClut::setVisibility(visible);
}
void dtkVisualizationDecoratorSurfaceColor::setInputConnection(Connection *connection)
{
d->mapper->SetInputConnection(connection);
}
dtkVisualizationDecoratorSurfaceColor::Connection *dtkVisualizationDecoratorSurfaceColor::outputConnection(void)
{
Q_ASSERT_X(false, Q_FUNC_INFO, "not implemented");
return nullptr;
}
void dtkVisualizationDecoratorSurfaceColor::setOpacity(double opacity)
{
d->actor->GetProperty()->SetOpacity(opacity);
......
......@@ -24,6 +24,10 @@ public:
public:
void setVisibility(bool) override;
public:
void setInputConnection(Connection *) override;
Connection *outputConnection(void) override;
protected:
void restoreSettings(void) override;
bool setCurrentFieldName(const QString&) override;
......
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