QGIS API Documentation
2.0.1-Dufour
|
Renders the diagrams for all features with the same settings. More...
#include <qgsdiagramrendererv2.h>
Public Member Functions | |
QgsSingleCategoryDiagramRenderer () | |
~QgsSingleCategoryDiagramRenderer () | |
QString | rendererName () const |
QList< int > | diagramAttributes () const |
Returns attribute indices needed for diagram rendering. | |
void | setDiagramSettings (const QgsDiagramSettings &s) |
QList< QgsDiagramSettings > | diagramSettings () const |
Returns list with all diagram settings in the renderer. | |
void | readXML (const QDomElement &elem, const QgsVectorLayer *layer) |
void | writeXML (QDomElement &layerElem, QDomDocument &doc, const QgsVectorLayer *layer) const |
Public Member Functions inherited from QgsDiagramRendererV2 | |
QgsDiagramRendererV2 () | |
virtual | ~QgsDiagramRendererV2 () |
virtual QSizeF | sizeMapUnits (const QgsAttributes &attributes, const QgsRenderContext &c) |
Returns size of the diagram for feature f in map units. | |
void | renderDiagram (const QgsAttributes &att, QgsRenderContext &c, const QPointF &pos) |
void | setDiagram (QgsDiagram *d) |
const QgsDiagram * | diagram () 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. | |
Protected Member Functions inherited from QgsDiagramRendererV2 | |
void | convertSizeToMapUnits (QSizeF &size, const QgsRenderContext &context) const |
Converts size from mm to map units. | |
void | _readXML (const QDomElement &elem, const QgsVectorLayer *layer) |
void | _writeXML (QDomElement &rendererElem, QDomDocument &doc, const QgsVectorLayer *layer) const |
Private Attributes | |
QgsDiagramSettings | mSettings |
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 | |
QgsDiagram * | mDiagram |
Reference to the object that does the real diagram rendering. |
Renders the diagrams for all features with the same settings.
Definition at line 216 of file qgsdiagramrendererv2.h.
QgsSingleCategoryDiagramRenderer::QgsSingleCategoryDiagramRenderer | ( | ) |
Definition at line 355 of file qgsdiagramrendererv2.cpp.
QgsSingleCategoryDiagramRenderer::~QgsSingleCategoryDiagramRenderer | ( | ) |
Definition at line 359 of file qgsdiagramrendererv2.cpp.
|
inlinevirtual |
Returns attribute indices needed for diagram rendering.
Implements QgsDiagramRendererV2.
Definition at line 224 of file qgsdiagramrendererv2.h.
|
virtual |
Returns list with all diagram settings in the renderer.
Implements QgsDiagramRendererV2.
Definition at line 375 of file qgsdiagramrendererv2.cpp.
References mSettings.
|
protectedvirtual |
Returns diagram settings for a feature (or false if the diagram for the feature is not to be rendered).
Used internally within renderDiagram()
att | attribute map |
c | render context |
s | out: diagram settings for the feature |
Implements QgsDiagramRendererV2.
Definition at line 363 of file qgsdiagramrendererv2.cpp.
References mSettings.
|
protectedvirtual |
Returns size of the diagram (in painter units) or an invalid size in case of error.
Implements QgsDiagramRendererV2.
Definition at line 370 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::mDiagram, and mSettings.
|
virtual |
Implements QgsDiagramRendererV2.
Definition at line 382 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::_readXML(), mSettings, and QgsDiagramSettings::readXML().
|
inlinevirtual |
Implements QgsDiagramRendererV2.
Definition at line 222 of file qgsdiagramrendererv2.h.
|
inline |
Definition at line 226 of file qgsdiagramrendererv2.h.
|
virtual |
Implements QgsDiagramRendererV2.
Definition at line 394 of file qgsdiagramrendererv2.cpp.
References QgsDiagramRendererV2::_writeXML(), mSettings, and QgsDiagramSettings::writeXML().
|
private |
Definition at line 239 of file qgsdiagramrendererv2.h.
Referenced by diagramSettings(), diagramSize(), readXML(), and writeXML().