15 #ifndef QGSDIAGRAMRENDERERV2_H
16 #define QGSDIAGRAMRENDERERV2_H
23 #include <QDomDocument>
83 void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
84 void writeXML( QDomElement& layerElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
136 void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
137 void writeXML( QDomElement& rendererElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
169 virtual QString rendererName()
const = 0;
172 virtual QList<QString> diagramAttributes()
const = 0;
180 virtual QList<QgsDiagramSettings> diagramSettings()
const = 0;
182 virtual void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer ) = 0;
183 virtual void writeXML( QDomElement& layerElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const = 0;
202 static int dpiPaintDevice(
const QPainter* );
205 void _readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
206 void _writeXML( QDomElement& rendererElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
258 void setLowerValue(
double val ) { mInterpolationSettings.lowerValue = val; }
259 double lowerValue()
const {
return mInterpolationSettings.lowerValue; }
261 void setUpperValue(
double val ) { mInterpolationSettings.upperValue = val; }
262 double upperValue()
const {
return mInterpolationSettings.upperValue; }
264 void setLowerSize( QSizeF s ) { mInterpolationSettings.lowerSize = s; }
265 QSizeF
lowerSize()
const {
return mInterpolationSettings.lowerSize; }
267 void setUpperSize( QSizeF s ) { mInterpolationSettings.upperSize = s; }
268 QSizeF
upperSize()
const {
return mInterpolationSettings.upperSize; }
292 #endif // QGSDIAGRAMRENDERERV2_H