27 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
28 #include <dtkCoreSupport/dtkAbstractProcess.h>
32 class axlInspectorToolFieldGeneratorPrivate
43 QVBoxLayout *layout =
new QVBoxLayout(
this);
45 QPushButton *button =
new QPushButton(
"Run",
this);
46 connect(button, SIGNAL(clicked()),
this, SLOT(
run()));
48 layout->addWidget(
new QLabel(
"axlInspectorToolFieldGenerator",
this));
49 layout->addWidget(button);
63 d->controller = controller;
68 if(!(d->process = dynamic_cast<axlAbstractFieldGenerator *> (dtkAbstractProcessFactory::instance()->create(implementation))))
69 qDebug() <<
"Unable to create FieldGenerator" << implementation <<
"concrete implementation";
77 int numberOfDataSelected =0;
82 if(item->text(2) ==
"Selected" )
84 if(
axlAbstractData *axlData = dynamic_cast<axlAbstractData *> (d->controller->data(item)))
86 d->process->setInput(axlData, numberOfDataSelected);
89 numberOfDataSelected++;
94 if(numberOfDataSelected > 0)
Class axlAbstractData defines an API for all type of axel data.