19 #include <dtkCoreSupport/dtkAbstractData.h>
20 #include <dtkCoreSupport/dtkAbstractDataFactory.h>
38 return "axlFieldParametricCurveWriter";
43 return "axlFieldParametricCurveWriter";
48 return QStringList() <<
"axlFieldParametricCurve";
67 return !this->
accept(data);
74 QDomElement fieldElement = doc->createElement(
"field");
77 fieldElement.setAttribute(
"type", field->
identifier());
81 QDomElement functionElement = function_writer->
write(doc, field->
getFunction());
82 fieldElement.appendChild(functionElement);
90 QDomElement axlFieldParametricCurveWriter::elementByWriter(
axlAbstractDataWriter *axl_writer, QDomDocument *doc, dtkAbstractData *data)
97 if(!axl_writer->
accept(data))
100 element = axl_writer->
write(doc, data);
QString description(void) const
~axlFieldParametricCurveWriter(void)
virtual QString identifier(void) const
Returns the identifier of the field "axlFieldParametricCurve".
virtual bool accept(dtkAbstractData *data)=0
Class axlFieldParametricCurve defines an API for field which owns a BSpline curve.
QString identifier(void) const
QDomElement write(QDomDocument *doc, dtkAbstractData *data)
axlFieldParametricCurveWriter(void)
dtkAbstractDataWriter * createaxlFieldParametricCurveWriter(void)
QStringList handled(void) const
bool accept(dtkAbstractData *data)
static bool registered(void)
virtual QDomElement write(QDomDocument *doc, dtkAbstractData *data)=0
bool reject(dtkAbstractData *data)
axlAbstractData * getFunction(void)
Returns the Bspline function which determines the values of the BSpline field.