QGIS API Documentation  master-6227475
QgsLinearlyInterpolatedDiagramRenderer Class Reference

#include <qgsdiagramrendererv2.h>

+ Inheritance diagram for QgsLinearlyInterpolatedDiagramRenderer:
+ Collaboration diagram for QgsLinearlyInterpolatedDiagramRenderer:

List of all members.

Public Member Functions

 QgsLinearlyInterpolatedDiagramRenderer ()
 ~QgsLinearlyInterpolatedDiagramRenderer ()
int classificationAttribute () const
QList< int > diagramAttributes () const
 Returns attribute indices needed for diagram rendering.
QList< QgsDiagramSettingsdiagramSettings () const
 Returns list with all diagram settings in the renderer.
QSizeF lowerSize () const
double lowerValue () const
void readXML (const QDomElement &elem)
QString rendererName () const
void setClassificationAttribute (int index)
void setDiagramSettings (const QgsDiagramSettings &s)
void setLowerSize (QSizeF s)
void setLowerValue (double val)
void setUpperSize (QSizeF s)
void setUpperValue (double val)
QSizeF upperSize () const
double upperValue () const
void writeXML (QDomElement &layerElem, QDomDocument &doc) const

Protected Member Functions

bool diagramSettings (const QgsAttributes &, const QgsRenderContext &c, QgsDiagramSettings &s)
 Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered).
QSizeF diagramSize (const QgsAttributes &attributes, const QgsRenderContext &c)
 Returns size of the diagram (in painter units) or an invalid size in case of error.

Private Attributes

QgsDiagramInterpolationSettings mInterpolationSettings
QgsDiagramSettings mSettings

Detailed Description

Definition at line 240 of file qgsdiagramrendererv2.h.


Constructor & Destructor Documentation


Member Function Documentation

Returns attribute indices needed for diagram rendering.

Implements QgsDiagramRendererV2.

Definition at line 409 of file qgsdiagramrendererv2.cpp.

References QgsDiagramSettings::categoryIndices, QgsDiagramInterpolationSettings::classificationAttribute, mInterpolationSettings, and mSettings.

Returns list with all diagram settings in the renderer.

Implements QgsDiagramRendererV2.

Definition at line 395 of file qgsdiagramrendererv2.cpp.

References mSettings.

bool QgsLinearlyInterpolatedDiagramRenderer::diagramSettings ( const QgsAttributes att,
const QgsRenderContext c,
QgsDiagramSettings s 
) [protected, virtual]

Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered).

Used internally within renderDiagram()

Parameters:
attattribute map
crender context
sout: diagram settings for the feature

Implements QgsDiagramRendererV2.

Definition at line 402 of file qgsdiagramrendererv2.cpp.

References diagramSize(), mSettings, and QgsDiagramSettings::size.

QSizeF QgsLinearlyInterpolatedDiagramRenderer::diagramSize ( const QgsAttributes attributes,
const QgsRenderContext c 
) [protected, virtual]

Returns size of the diagram (in painter units) or an invalid size in case of error.

Implements QgsDiagramRendererV2.

Definition at line 419 of file qgsdiagramrendererv2.cpp.

References QgsDiagram::diagramSize(), QgsDiagramRendererV2::mDiagram, mInterpolationSettings, and mSettings.

Referenced by diagramSettings().

Definition at line 262 of file qgsdiagramrendererv2.h.

Definition at line 256 of file qgsdiagramrendererv2.h.

QString QgsLinearlyInterpolatedDiagramRenderer::rendererName ( ) const [inline, virtual]

Implements QgsDiagramRendererV2.

Definition at line 253 of file qgsdiagramrendererv2.h.

Definition at line 268 of file qgsdiagramrendererv2.h.

Definition at line 261 of file qgsdiagramrendererv2.h.

Definition at line 255 of file qgsdiagramrendererv2.h.

Definition at line 264 of file qgsdiagramrendererv2.h.

Definition at line 258 of file qgsdiagramrendererv2.h.

Definition at line 265 of file qgsdiagramrendererv2.h.

Definition at line 259 of file qgsdiagramrendererv2.h.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines