19 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
25 class axlCylinderCreatorPrivate{
63 if(process->output()){
64 d->output =
dynamic_cast<axlCylinder *
>(process->output());
79 if(dynamic_cast<axlPoint *>(newData)){
83 }
else if(channel == 1){
97 if(d->output == NULL){
98 if(d->point1 && d->point2 && (d->radius >= 0.0)){
100 d->output = newCylinder;
106 if(d->point1 && d->point2 && (d->radius >= 0.0)){
107 d->output->setValues(d->point1, d->point2, d->radius);
118 return "create a cylinder with two points for its axe \n and its radius value";
123 return "axlCylinderCreator";
virtual ~axlCylinderCreator(void)
Class axlPoint defines 3D points.
void copyProcess(axlAbstractProcess *process)
static bool registered(void)
Class axlCylinder defines 3D cylinders.
virtual dtkAbstractData * output(void)
axlCylinderCreator(QObject *parent=0)
virtual QString identifier(void) const
virtual QString description(void) const
virtual void setParameter(double data)
Class axlAbstractData defines an API for all type of axel data.
virtual void setInput(dtkAbstractData *newData, int channel)
dtkAbstractProcess * createaxlCylinderCreator(void)
virtual axlAbstractData * getInput(int channel) const