15 #ifndef QGSDIAGRAMRENDERERV2_H 16 #define QGSDIAGRAMRENDERERV2_H 23 #include <QDomDocument> 127 , scaleByArea( true )
128 , angleOffset( 90 * 16 )
129 , scaleBasedVisibility( false )
130 , minScaleDenominator( -1 )
131 , maxScaleDenominator( -1 )
200 virtual QString rendererName()
const = 0;
239 static int dpiPaintDevice(
const QPainter* );
297 void setLowerValue(
double val ) { mInterpolationSettings.lowerValue = val; }
298 double lowerValue()
const {
return mInterpolationSettings.lowerValue; }
300 void setUpperValue(
double val ) { mInterpolationSettings.upperValue = val; }
301 double upperValue()
const {
return mInterpolationSettings.upperValue; }
333 #endif // QGSDIAGRAMRENDERERV2_H void setClassificationAttributeIsExpression(bool isExpression)
double zIndex
Z-index of diagrams, where diagrams with a higher z-index are drawn on top of diagrams with a lower z...
double minimumSize
Scale diagrams smaller than mMinimumSize to mMinimumSize.
void setClassificationAttributeExpression(const QString &expression)
double minScaleDenominator
Renders the diagrams for all features with the same settings.
QList< QString > categoryAttributes
bool classificationAttributeIsExpression
QgsDiagram * diagram() const
A set of features which influence the labelling process.
unsigned int placementFlags
bool scaleBasedVisibility
Container of fields for a vector layer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Returns diagram settings for a feature.
Perform transforms between map coordinates and device coordinates.
DiagramOrientation diagramOrientation
double lowerValue() const
const QgsMapToPixel * xform
QList< QString > diagramAttributes() const override
Returns attribute indices needed for diagram rendering.
void setDiagramSettings(const QgsDiagramSettings &s)
QString classificationAttributeExpression
void setLowerValue(double val)
DiagramOrientation
Orientation of histogram.
QgsDiagramRendererV2 * renderer
QString rendererName() const override
Base class for all diagram types.
void setUpperSize(QSizeF s)
QString rendererName() const override
int classificationAttribute() const
Contains information about the context of a rendering operation.
double maxScaleDenominator
bool classificationAttributeIsExpression() const
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...
QList< QString > categoryLabels
void setClassificationAttribute(int index)
int classificationAttribute
Index of the classification attribute.
void setDiagramSettings(const QgsDiagramSettings &s)
QString classificationAttributeExpression() const
Represents a vector layer which manages a vector based data sets.
QList< QColor > categoryColors
double upperValue() const
QgsDiagram * mDiagram
Reference to the object that does the real diagram rendering.
void setLowerSize(QSizeF s)
const QgsCoordinateTransform * ct
LabelPlacementMethod labelPlacementMethod
Layer tree node points to a map layer.
void setUpperValue(double val)