15 #ifndef QGSDIAGRAMRENDERERV2_H
16 #define QGSDIAGRAMRENDERERV2_H
23 #include <QDomDocument>
37 namespace pal {
class Layer; }
62 : placement( AroundPoint )
63 , placementFlags( OnLine )
93 void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
94 void writeXML( QDomElement& layerElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
146 void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
147 void writeXML( QDomElement& rendererElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
173 virtual QString rendererName()
const = 0;
176 virtual QList<int> diagramAttributes()
const = 0;
180 void setDiagram( QgsDiagram* d );
181 const QgsDiagram*
diagram()
const {
return mDiagram; }
184 virtual QList<QgsDiagramSettings> diagramSettings()
const = 0;
186 virtual void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer ) = 0;
187 virtual void writeXML( QDomElement& layerElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const = 0;
205 static int dpiPaintDevice(
const QPainter* );
208 void _readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
209 void _writeXML( QDomElement& rendererElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
257 void setLowerValue(
double val ) { mInterpolationSettings.lowerValue = val; }
258 double lowerValue()
const {
return mInterpolationSettings.lowerValue; }
260 void setUpperValue(
double val ) { mInterpolationSettings.upperValue = val; }
261 double upperValue()
const {
return mInterpolationSettings.upperValue; }
263 void setLowerSize( QSizeF s ) { mInterpolationSettings.lowerSize = s; }
264 QSizeF
lowerSize()
const {
return mInterpolationSettings.lowerSize; }
266 void setUpperSize( QSizeF s ) { mInterpolationSettings.upperSize = s; }
267 QSizeF
upperSize()
const {
return mInterpolationSettings.upperSize; }
285 #endif // QGSDIAGRAMRENDERERV2_H