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;
119 , scaleByArea( true )
120 , angleOffset( 90 * 16 )
121 , minScaleDenominator( -1 )
122 , maxScaleDenominator( -1 )
147 void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
148 void writeXML( QDomElement& rendererElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
180 virtual QString rendererName()
const = 0;
183 virtual QList<QString> diagramAttributes()
const = 0;
191 virtual QList<QgsDiagramSettings> diagramSettings()
const = 0;
193 virtual void readXML(
const QDomElement& elem,
const QgsVectorLayer* layer ) = 0;
194 virtual void writeXML( QDomElement& layerElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const = 0;
213 static int dpiPaintDevice(
const QPainter* );
216 void _readXML(
const QDomElement& elem,
const QgsVectorLayer* layer );
217 void _writeXML( QDomElement& rendererElem, QDomDocument& doc,
const QgsVectorLayer* layer )
const;
267 QString
rendererName()
const override {
return "LinearlyInterpolated"; }
269 void setLowerValue(
double val ) { mInterpolationSettings.lowerValue = val; }
270 double lowerValue()
const {
return mInterpolationSettings.lowerValue; }
272 void setUpperValue(
double val ) { mInterpolationSettings.upperValue = val; }
273 double upperValue()
const {
return mInterpolationSettings.upperValue; }
275 void setLowerSize( QSizeF s ) { mInterpolationSettings.lowerSize = s; }
276 QSizeF
lowerSize()
const {
return mInterpolationSettings.lowerSize; }
278 void setUpperSize( QSizeF s ) { mInterpolationSettings.upperSize = s; }
279 QSizeF
upperSize()
const {
return mInterpolationSettings.upperSize; }
303 #endif // QGSDIAGRAMRENDERERV2_H