Commit 4b6de89d authored by LACROIX Romain's avatar LACROIX Romain

Added virtual functions for Connection(s) in dtkVisualizationDecorator.

parent 875afa2b
......@@ -66,5 +66,14 @@ void dtkVisualizationDecorator::setTransform(vtkTransform *transform)
qWarning() << Q_FUNC_INFO << "nothing is done";
}
void dtkVisualizationDecorator::setInputConnection(Connection *)
{
}
dtkVisualizationDecorator::Connection *dtkVisualizationDecorator::outputConnection(void)
{
return nullptr;
}
//
// dtkVisualizationDecorator.cpp ends here
......@@ -20,6 +20,7 @@
#include <QtCore/QObject>
class vtkAlgorithmOutput;
class dtkVisualizationCanvas;
class vtkTransform;
class QWidget;
......@@ -32,6 +33,8 @@ class DTKVISUALIZATION_EXPORT dtkVisualizationDecorator : public QObject
{
Q_OBJECT
using Connection = vtkAlgorithmOutput;
public:
dtkVisualizationDecorator(void) = default;
~dtkVisualizationDecorator(void) = default;
......@@ -67,6 +70,10 @@ public:
virtual dtkVisualizationCanvas *canvas(void) const = 0;
virtual QList<QWidget *> inspectors(void) const = 0;
public:
virtual void setInputConnection(Connection *);
virtual Connection *outputConnection(void);
};
// ///////////////////////////////////////////////////////////////////
......
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