Quantum GIS API Documentation  1.8
Public Member Functions | Protected Member Functions | Private Attributes
QgsLinearlyInterpolatedDiagramRenderer Class Reference

#include <qgsdiagramrendererv2.h>

Inheritance diagram for QgsLinearlyInterpolatedDiagramRenderer:
Inheritance graph
[legend]
Collaboration diagram for QgsLinearlyInterpolatedDiagramRenderer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

bool diagramSettings (const QgsAttributeMap &, 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 QgsAttributeMap &attributes, const QgsRenderContext &c)
 Returns size of the diagram (in painter units) or an invalid size in case of error.

Private Attributes

QgsDiagramSettings mSettings
QSizeF mLowerSize
QSizeF mUpperSize
double mLowerValue
double mUpperValue
int mClassificationAttribute
 Index of the classification attribute.

Detailed Description

Definition at line 199 of file qgsdiagramrendererv2.h.


Constructor & Destructor Documentation

Definition at line 281 of file qgsdiagramrendererv2.cpp.

Definition at line 285 of file qgsdiagramrendererv2.cpp.


Member Function Documentation

Definition at line 226 of file qgsdiagramrendererv2.h.

Returns attribute indices needed for diagram rendering.

Implements QgsDiagramRendererV2.

Definition at line 303 of file qgsdiagramrendererv2.cpp.

References QgsDiagramSettings::categoryIndices, mClassificationAttribute, and mSettings.

Returns list with all diagram settings in the renderer.

Implements QgsDiagramRendererV2.

Definition at line 289 of file qgsdiagramrendererv2.cpp.

References mSettings.

bool QgsLinearlyInterpolatedDiagramRenderer::diagramSettings ( const QgsAttributeMap 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 296 of file qgsdiagramrendererv2.cpp.

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

QSizeF QgsLinearlyInterpolatedDiagramRenderer::diagramSize ( const QgsAttributeMap 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 313 of file qgsdiagramrendererv2.cpp.

References mClassificationAttribute, mLowerSize, mLowerValue, mUpperSize, and mUpperValue.

Referenced by diagramSettings().

Definition at line 221 of file qgsdiagramrendererv2.h.

Definition at line 215 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::readXML ( const QDomElement &  elem) [virtual]
QString QgsLinearlyInterpolatedDiagramRenderer::rendererName ( ) const [inline, virtual]

Implements QgsDiagramRendererV2.

Definition at line 212 of file qgsdiagramrendererv2.h.

Definition at line 227 of file qgsdiagramrendererv2.h.

Definition at line 208 of file qgsdiagramrendererv2.h.

Definition at line 220 of file qgsdiagramrendererv2.h.

Definition at line 214 of file qgsdiagramrendererv2.h.

Definition at line 223 of file qgsdiagramrendererv2.h.

Definition at line 217 of file qgsdiagramrendererv2.h.

Definition at line 224 of file qgsdiagramrendererv2.h.

Definition at line 218 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::writeXML ( QDomElement &  layerElem,
QDomDocument &  doc 
) const [virtual]

Member Data Documentation

Index of the classification attribute.

Definition at line 244 of file qgsdiagramrendererv2.h.

Referenced by diagramAttributes(), diagramSize(), readXML(), and writeXML().

Definition at line 239 of file qgsdiagramrendererv2.h.

Referenced by diagramSize(), readXML(), and writeXML().

Definition at line 241 of file qgsdiagramrendererv2.h.

Referenced by diagramSize(), readXML(), and writeXML().

Definition at line 238 of file qgsdiagramrendererv2.h.

Referenced by diagramAttributes(), diagramSettings(), readXML(), and writeXML().

Definition at line 240 of file qgsdiagramrendererv2.h.

Referenced by diagramSize(), readXML(), and writeXML().

Definition at line 242 of file qgsdiagramrendererv2.h.

Referenced by diagramSize(), readXML(), and writeXML().


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