Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ed0c4b91 authored by KLOCZKO Thibaud's avatar KLOCZKO Thibaud
Browse files

Modify node to use new editor framework.

parent c8363291
No related branches found
No related tags found
No related merge requests found
......@@ -14,12 +14,9 @@
#include "dtkMeshingFilterNode.h"
#include "dtkAbstractMeshingFilter.h"
#include "dtkImaging.h"
#include "dtkImage.h"
#include "dtkImageMesh.h"
#include "dtkImagingWidgets.h"
#include <dtkAbstractMeshingFilter.h>
#include <dtkImage.h>
#include <dtkImageMesh.h>
#include <dtkLog>
......@@ -31,10 +28,7 @@ class dtkMeshingFilterNodePrivate
{
public:
dtkComposerTransmitterReceiver<dtkImage *> mask;
dtkComposerTransmitterEmitter<dtkImageMesh *> mesh;
dtkAbstractMeshingFilterWidget* m_widget;
};
// /////////////////////////////////////////////////////////////////
......@@ -46,7 +40,6 @@ dtkMeshingFilterNode::dtkMeshingFilterNode(void) : dtkComposerNodeObject<dtkAbst
this->setFactory(dtkImaging::filters::meshing::pluginFactory());
this->appendReceiver(&d->mask);
this->appendEmitter (&d->mesh);
}
......@@ -55,18 +48,6 @@ dtkMeshingFilterNode::~dtkMeshingFilterNode(void)
delete d;
}
QWidget *dtkMeshingFilterNode::editor(void)
{
d->m_widget = dtkImagingWidgets::filters::meshing::widgetFactory().get(this->currentImplementation(), this->object());
if (!d->m_widget) {
return NULL;
}
d->m_widget->setProcess(this->object());
return d->m_widget;
}
void dtkMeshingFilterNode::run(void)
{
if (d->mask.isEmpty()) {
......
......@@ -19,8 +19,6 @@
#include <dtkComposer>
class dtkAbstractMeshingFilter;
class dtkMeshingFilterNodePrivate;
class QWidget;
// ///////////////////////////////////////////////////////////////////
// dtkMeshingFilterNode
......@@ -35,11 +33,8 @@ public:
public:
void run(void);
public:
QWidget *editor(void);
private:
dtkMeshingFilterNodePrivate *d;
class dtkMeshingFilterNodePrivate *d;
};
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment