24 #include <dtkCoreSupport/dtkGlobal.h>
29 class axlAbstractDataPrivate
40 QList<axlAbstractField *> fields;
55 d->color = data.
color();
57 d->size = data.
size();
84 d->color.setRgbF(r,g,b);
109 return d->updateView;
162 d->fields.append(field);
163 field->setParent(
this);
173 bool fieldWithSameNameExit =
false;
175 if(field->name() == nameField)
176 fieldWithSameNameExit =
true;
178 return fieldWithSameNameExit;
190 int numberOccurence = 0;
191 QString identity = nameField;
192 for(
int indice = 0;indice <
size; indice++){
193 if(this->
fields().at(indice)->objectName() == nameField){
195 nameField = identity;
196 nameField.append(QString::number(numberOccurence));
const QColor & color(void) const
virtual void touchField(void)
void setMesh(axlMesh *mesh)
Set a corresponding mesh for that object.
void setUpdateView(bool updateView)
bool updateFieldList(QString nameField)
Check if a field with the same name is already applied on the object.
void modifiedStructure(void)
void setShader(const QString &shader)
const QString & shader(void) const
QString changeFieldName(QString fieldName)
const bool & editable(void)
axlMesh * mesh(void)
Return the mesh of that object is computed.
void setEditable(bool edit)
virtual int convertQVariantToData(const QVariantList &data)
Modify properties and geometry variables of the axlAbstractData. Return 1 if the modification was suc...
void modifiedGeometry(void)
void modifiedProperty(void)
virtual QVariantList convertDataToQVariant(void) const
Convert an axlAbstractData into a QVariantList that specifies all properties of the axlAbstractData...
const double & opacity(void) const
const bool & updateView(void)
Class axlAbstractField defines an API for arrays of numeric data.
void setOpacity(const double &opacity)
const double & size(void) const
virtual ~axlAbstractData(void)
void addField(axlAbstractField *field)
Add a field to the field list of the object.
void touchStructure(void)
QList< axlAbstractField * > fields(void)
void setSize(const double &size)
void setColor(double r, double g, double b)
axlAbstractData(axlAbstractData *parent=NULL)
Class axlAbstractData defines an API for all type of axel data.
Class axlMesh defines a piecewise-linear 3D object.