20 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
26 class axlLineCreatorPrivate {
42 dtkAbstractProcessFactory::instance()->registerProcessType(
"axlLineCreator",
createaxlLineCreator);
78 if (dynamic_cast<axlAbstractData *>(newData)) {
80 if (dynamic_cast<axlPoint *>(axlData)) {
93 if (d->output == NULL) {
94 if (d->point1 && d->point2) {
95 newLine =
new axlLine(d->point1, d->point2);
102 if (d->point1 && d->point2) {
103 d->output->onFirstPointChanged(d->point1);
104 d->output->onSecondPointChanged(d->point2);
113 return "create a line with two points";
118 return "axlLineCreator";
Class axlPoint defines 3D points.
Class axlLine defines 3D lines.
virtual QString identifier(void) const
dtkAbstractProcess * createaxlLineCreator(void)
virtual QString description(void) const
virtual dtkAbstractData * output(void)
virtual void setInput(dtkAbstractData *newData, int channel)
axlLineCreator(QObject *parent=0)
virtual axlAbstractData * getInput(int channel) const
Class axlAbstractData defines an API for all type of axel data.
virtual ~axlLineCreator(void)