19 #include <dtkCoreSupport/dtkAbstractProcessFactory.h>
25 class axlCircleArcCreatorPrivate{
64 }
else if(channel == 1) {
66 }
else if (channel == 2) {
68 }
else if (channel == 3) {
80 if(process->output()){
81 d->output =
dynamic_cast<axlCircleArc *
>(process->output());
109 if(dynamic_cast<axlPoint *>(newData)){
113 }
else if(channel == 1){
116 else if(channel == 2){
119 else if(channel == 3){
130 if(data == 0 || data == 1){
142 if(d->output == NULL){
143 if(d->point1 && d->point2 && d->point3 && d->point4){
144 d->output =
new axlCircleArc(d->point1, d->point2, d->point3, d->point4, d->direct);
150 if(d->point1 && d->point2 && d->point3 && d->point4){
151 d->output->setValues(d->point1, d->point2, d->point3, d->point4, d->direct);
162 return "create a circle arc with four points : \n the two first ones are extremity, the third one is its center\n and the last one its normal \n and a boolean :\n the direction";
167 return "axlCircleArcCreator";
Class axlPoint defines 3D points.
virtual void setParameter(int data)
Assigns the value of the boolean parameter which says whether it is direct .
virtual ~axlCircleArcCreator(void)
virtual QString description(void) const
Class axlCircleArcCreator defines an process which creates an axlCircleArc.
virtual dtkAbstractData * output(void)
Return the results of the process : NULL or the axlCircleArc.
dtkAbstractProcess * createaxlCircleArcCreator(void)
void copyProcess(axlAbstractProcess *process)
Return a copy of the process, useful for dynamic objects.
virtual int update(void)
Create an axlCircleArc.
virtual void setInput(dtkAbstractData *newData, int channel)
Assigns points :
virtual axlAbstractData * getInput(int channel) const
Return the input points of the process.
axlCircleArcCreator(QObject *parent=0)
bool hasParameters(void)
Return true as the process needs one parameter.
Class axlAbstractData defines an API for all type of axel data.
virtual QString identifier(void) const