QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
QgsLinearlyInterpolatedDiagramRenderer Class Reference

#include <qgsdiagramrendererv2.h>

Inheritance diagram for QgsLinearlyInterpolatedDiagramRenderer:
Inheritance graph
[legend]

Public Member Functions

 QgsLinearlyInterpolatedDiagramRenderer ()
 ~QgsLinearlyInterpolatedDiagramRenderer ()
int classificationAttribute () const
QString classificationAttributeExpression () const
bool classificationAttributeIsExpression () const
QgsDiagramRendererV2clone () const override
 Returns new instance that is equivalent to this one.
QList< QString > diagramAttributes () const override
 Returns attribute indices needed for diagram rendering.
QList< QgsDiagramSettingsdiagramSettings () const override
 Returns list with all diagram settings in the renderer.
QSizeF lowerSize () const
double lowerValue () const
void readXML (const QDomElement &elem, const QgsVectorLayer *layer) override
QString rendererName () const override
void setClassificationAttribute (int index)
void setClassificationAttributeExpression (QString expression)
void setClassificationAttributeIsExpression (bool isExpression)
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 QgsVectorLayer *layer) const override
- Public Member Functions inherited from QgsDiagramRendererV2
 QgsDiagramRendererV2 ()
virtual ~QgsDiagramRendererV2 ()
QgsDiagramdiagram () const
void renderDiagram (const QgsFeature &feature, QgsRenderContext &c, const QPointF &pos)
void setDiagram (QgsDiagram *d)
virtual QSizeF sizeMapUnits (const QgsFeature &feature, const QgsRenderContext &c)
 Returns size of the diagram for a feature in map units.

Protected Member Functions

bool diagramSettings (const QgsFeature &feature, const QgsRenderContext &c, QgsDiagramSettings &s) override
 Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered).
QSizeF diagramSize (const QgsFeature &, const QgsRenderContext &c) override
 Returns size of the diagram (in painter units) or an invalid size in case of error.
- Protected Member Functions inherited from QgsDiagramRendererV2
 QgsDiagramRendererV2 (const QgsDiagramRendererV2 &other)
void _readXML (const QDomElement &elem, const QgsVectorLayer *layer)
void _writeXML (QDomElement &rendererElem, QDomDocument &doc, const QgsVectorLayer *layer) const
void convertSizeToMapUnits (QSizeF &size, const QgsRenderContext &context) const
 Converts size from mm to map units.

Additional Inherited Members

- Static Protected Member Functions inherited from QgsDiagramRendererV2
static int dpiPaintDevice (const QPainter *)
 Returns the paint device dpi (or -1 in case of error.
- Protected Attributes inherited from QgsDiagramRendererV2
QgsDiagrammDiagram
 Reference to the object that does the real diagram rendering.

Detailed Description

Definition at line 252 of file qgsdiagramrendererv2.h.

Constructor & Destructor Documentation

QgsLinearlyInterpolatedDiagramRenderer::QgsLinearlyInterpolatedDiagramRenderer ( )

Definition at line 438 of file qgsdiagramrendererv2.cpp.

QgsLinearlyInterpolatedDiagramRenderer::~QgsLinearlyInterpolatedDiagramRenderer ( )

Definition at line 443 of file qgsdiagramrendererv2.cpp.

Member Function Documentation

int QgsLinearlyInterpolatedDiagramRenderer::classificationAttribute ( ) const
inline

Definition at line 281 of file qgsdiagramrendererv2.h.

QString QgsLinearlyInterpolatedDiagramRenderer::classificationAttributeExpression ( ) const
inline

Definition at line 284 of file qgsdiagramrendererv2.h.

bool QgsLinearlyInterpolatedDiagramRenderer::classificationAttributeIsExpression ( ) const
inline

Definition at line 287 of file qgsdiagramrendererv2.h.

QgsDiagramRendererV2 * QgsLinearlyInterpolatedDiagramRenderer::clone ( ) const
overridevirtual

Returns new instance that is equivalent to this one.

Note
added in 2.4

Implements QgsDiagramRendererV2.

Definition at line 447 of file qgsdiagramrendererv2.cpp.

QList< QString > QgsLinearlyInterpolatedDiagramRenderer::diagramAttributes ( ) const
overridevirtual

Returns attribute indices needed for diagram rendering.

Implements QgsDiagramRendererV2.

Definition at line 466 of file qgsdiagramrendererv2.cpp.

QList< QgsDiagramSettings > QgsLinearlyInterpolatedDiagramRenderer::diagramSettings ( ) const
overridevirtual

Returns list with all diagram settings in the renderer.

Implements QgsDiagramRendererV2.

Definition at line 452 of file qgsdiagramrendererv2.cpp.

bool QgsLinearlyInterpolatedDiagramRenderer::diagramSettings ( const QgsFeature feature,
const QgsRenderContext c,
QgsDiagramSettings s 
)
overrideprotectedvirtual

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

Used internally within renderDiagram()

Parameters
featurethe feature
crender context
sout: diagram settings for the feature

Implements QgsDiagramRendererV2.

Definition at line 459 of file qgsdiagramrendererv2.cpp.

QSizeF QgsLinearlyInterpolatedDiagramRenderer::diagramSize ( const QgsFeature features,
const QgsRenderContext c 
)
overrideprotectedvirtual

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

Implements QgsDiagramRendererV2.

Definition at line 471 of file qgsdiagramrendererv2.cpp.

QSizeF QgsLinearlyInterpolatedDiagramRenderer::lowerSize ( ) const
inline

Definition at line 276 of file qgsdiagramrendererv2.h.

double QgsLinearlyInterpolatedDiagramRenderer::lowerValue ( ) const
inline

Definition at line 270 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::readXML ( const QDomElement &  elem,
const QgsVectorLayer layer 
)
overridevirtual

Implements QgsDiagramRendererV2.

Definition at line 476 of file qgsdiagramrendererv2.cpp.

QString QgsLinearlyInterpolatedDiagramRenderer::rendererName ( ) const
inlineoverridevirtual

Implements QgsDiagramRendererV2.

Definition at line 267 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setClassificationAttribute ( int  index)
inline

Definition at line 282 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setClassificationAttributeExpression ( QString  expression)
inline

Definition at line 285 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setClassificationAttributeIsExpression ( bool  isExpression)
inline

Definition at line 288 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setDiagramSettings ( const QgsDiagramSettings s)
inline

Definition at line 263 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setLowerSize ( QSizeF  s)
inline

Definition at line 275 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setLowerValue ( double  val)
inline

Definition at line 269 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setUpperSize ( QSizeF  s)
inline

Definition at line 278 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setUpperValue ( double  val)
inline

Definition at line 272 of file qgsdiagramrendererv2.h.

QSizeF QgsLinearlyInterpolatedDiagramRenderer::upperSize ( ) const
inline

Definition at line 279 of file qgsdiagramrendererv2.h.

double QgsLinearlyInterpolatedDiagramRenderer::upperValue ( ) const
inline

Definition at line 273 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::writeXML ( QDomElement &  layerElem,
QDomDocument &  doc,
const QgsVectorLayer layer 
) const
overridevirtual

Implements QgsDiagramRendererV2.

Definition at line 501 of file qgsdiagramrendererv2.cpp.


The documentation for this class was generated from the following files: