19 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
25 class axlConeCreatorPrivate{
65 if(process->output()){
66 d->output =
dynamic_cast<axlCone *
>(process->output());
82 if(dynamic_cast<axlPoint *>(newData)){
86 }
else if(channel ==1){
99 if(d->output == NULL){
100 if(d->point1 && d->point2 && (d->radius >=0.0)){
109 if(d->point1 && d->point2 && (d->radius >=0.0)){
110 d->output->setValues(d->point1, d->point2, d->radius);
121 return "create a cone with two points : \n its base point and its apex point \n and its radius value";
126 return "axlConeCreator";
130 return dtkAbstractProcessFactory::instance()->registerProcessType(
"axlConeCreator",
createaxlConeCreator);
Class axlPoint defines 3D points.
virtual void setParameter(double value)
virtual void setInput(dtkAbstractData *newData, int channel)
dtkAbstractProcess * createaxlConeCreator(void)
virtual axlAbstractData * getInput(int channel) const
virtual QString description(void) const
virtual dtkAbstractData * output(void)
void copyProcess(axlAbstractProcess *process)
virtual ~axlConeCreator(void)
Class axlCone defines 3D cones.
axlConeCreator(QObject *parent=0)
virtual QString identifier(void) const
Class axlAbstractData defines an API for all type of axel data.
static bool registered(void)