23 #include <dtkCoreSupport/dtkAbstractData.h>
39 if (data->name().length()>0)
40 e.setAttribute(
"name", data->name());
46 e.setAttribute(
"size", QString::number(data->
size()));
51 QColor qcolor = data->
color();
53 QTextStream(&color) << QString::number(qcolor.red()) <<
" "
54 << QString::number(qcolor.green()) <<
" "
55 << QString::number(qcolor.blue()) <<
" "
56 << QString::number(data->
opacity());
57 e.setAttribute(
"color", color);
62 QString shader = data->
shader();
63 if(shader.length()>0) {
64 QFileInfo shaderFileInfo(shader);
65 e.setAttribute(
"shader", shaderFileInfo.fileName());
virtual ~axlAbstractDataWriter(void)
void setName(QDomElement &e, axlAbstractData *data)
void setSize(QDomElement &e, axlAbstractData *data)
void setShader(QDomElement &e, axlAbstractData *data)
void setColor(QDomElement &e, axlAbstractData *data)
Class axlAbstractData defines an API for all type of axel data.
axlAbstractDataWriter(void)