18 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
24 class axlToMeshPrivate{
28 QVector<axlAbstractData *> input;
30 QVector<axlAbstractData *> output;
47 if(channel < d->input.size())
48 return d->input.at(channel);
50 qDebug()<<
"You are trying to acces an input that is not exit";
56 if(channel < d->
output.size()){
57 return d->output.at(channel);
60 qDebug()<<
"You are trying to acces an output that is not exit";
66 return d->output.at(0);
79 if(
axlAbstractData *axlData = dynamic_cast<axlAbstractData *>(newData)){
83 d->input.push_back(axlData);
101 return d->output.size();
109 for(
int i = 0 ; i < d->input.size() ; i++)
118 converter->setData(data);
120 d->output.push_back(currentMesh);
124 qDebug()<<
"Cannot find converter for : "<< d->input[i]->identifier();
129 dtkWarn()<<
"axlConvertToMesh::update :" <<d->output.size() <<
"data has been converted sucessfully";
140 return "Convert all Input selected Data to axlMesh. Only data with converter will be converted";
axlToMesh(QObject *parent=0)
int face_count(void) const
QString description(void) const
void dataInserted(axlAbstractData *data)
int edge_count(void) const
axlAbstractData * getInput(int channel) const
axlToMesh is a process that allow you to convert data to mesh.
void setInput(dtkAbstractData *newData, int channel=0)
QString identifier(void) const
dtkAbstractData * output(void)
virtual axlMesh * toMesh(void)
Mesh conversion.
int vertex_count(void) const
Class axlAbstractData defines an API for all type of axel data.
dtkAbstractProcess * createaxlToMeshProcess(void)
Class axlMesh defines a piecewise-linear 3D object.