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;
175 virtual QString rendererName()
const = 0;
178 virtual QList<QString> diagramAttributes()
const = 0;
182 void setDiagram( QgsDiagram* d );
183 QgsDiagram*
diagram()
const {
return mDiagram; }
186 virtual QList<QgsDiagramSettings> diagramSettings()
const = 0;
188 virtual void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer ) = 0;
189 virtual void writeXML( QDomElement& layerElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const = 0;
207 static int dpiPaintDevice(
const QPainter* );
210 void _readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
211 void _writeXML( QDomElement& rendererElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
259 void setLowerValue(
double val ) { mInterpolationSettings.lowerValue = val; }
260 double lowerValue()
const {
return mInterpolationSettings.lowerValue; }
262 void setUpperValue(
double val ) { mInterpolationSettings.upperValue = val; }
263 double upperValue()
const {
return mInterpolationSettings.upperValue; }
265 void setLowerSize( QSizeF s ) { mInterpolationSettings.lowerSize = s; }
266 QSizeF
lowerSize()
const {
return mInterpolationSettings.lowerSize; }
268 void setUpperSize( QSizeF s ) { mInterpolationSettings.upperSize = s; }
269 QSizeF
upperSize()
const {
return mInterpolationSettings.upperSize; }
293 #endif // QGSDIAGRAMRENDERERV2_H