18 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
24 class axlSphereCreatorPrivate{
55 if(process->output()){
56 d->output =
dynamic_cast<axlSphere *
>(process->output());
71 if(dynamic_cast<axlPoint *>(newData)){
87 if(d->output == NULL){
88 if(d->center &&(d->radius > 0.0) ){
89 axlSphere *newSphere =
new axlSphere(d->center->x(), d->center->y(), d->center->z(), d->radius);
90 d->output = newSphere;
96 if(d->center && (d->radius > 0.0) ){
97 d->output->setValues(d->center->x(), d->center->y(), d->center->z(), d->radius);
108 return "create a sphere with one center point \n and the radius value";
113 return "axlSphereCreator";
Class axlPoint defines 3D points.
virtual QString identifier(void) const
virtual void setInput(dtkAbstractData *newData, int channel)
virtual QString description(void) const
dtkAbstractProcess * createaxlSphereCreator(void)
virtual void setParameter(double data)
void copyProcess(axlAbstractProcess *process)
virtual ~axlSphereCreator(void)
virtual dtkAbstractData * output(void)
virtual axlAbstractData * getInput(int channel) const
Class axlSphere defines 3D spheres.
axlSphereCreator(QObject *parent=0)
Class axlAbstractData defines an API for all type of axel data.