QGIS API Documentation  2.6.0-Brighton
 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 ()
QgsDiagramRendererV2clone () const
 Returns new instance that is equivalent to this one.
QList< QgsDiagramSettingsdiagramSettings () const
 Returns list with all diagram settings in the renderer.
void setDiagramSettings (const QgsDiagramSettings &s)
QList< QString > 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)
QString classificationAttributeExpression () const
void setClassificationAttributeExpression (QString expression)
bool classificationAttributeIsExpression () const
void setClassificationAttributeIsExpression (bool isExpression)
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 QgsFeature &feature, const QgsRenderContext &c)
 Returns size of the diagram for a feature in map units.
void renderDiagram (const QgsFeature &feature, QgsRenderContext &c, const QPointF &pos)
void setDiagram (QgsDiagram *d)
QgsDiagramdiagram () const

Protected Member Functions

bool diagramSettings (const QgsFeature &feature, 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 QgsFeature &, 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
 QgsDiagramRendererV2 (const QgsDiagramRendererV2 &other)
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

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.

Constructor & Destructor Documentation

QgsLinearlyInterpolatedDiagramRenderer::QgsLinearlyInterpolatedDiagramRenderer ( )
QgsLinearlyInterpolatedDiagramRenderer::~QgsLinearlyInterpolatedDiagramRenderer ( )

Member Function Documentation

int QgsLinearlyInterpolatedDiagramRenderer::classificationAttribute ( ) const
inline
QString QgsLinearlyInterpolatedDiagramRenderer::classificationAttributeExpression ( ) const
inline
bool QgsLinearlyInterpolatedDiagramRenderer::classificationAttributeIsExpression ( ) const
inline
QgsDiagramRendererV2 * QgsLinearlyInterpolatedDiagramRenderer::clone ( ) const
virtual

Returns new instance that is equivalent to this one.

Note
added in 2.4

Implements QgsDiagramRendererV2.

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

Returns attribute indices needed for diagram rendering.

Implements QgsDiagramRendererV2.

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

Returns list with all diagram settings in the renderer.

Implements QgsDiagramRendererV2.

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

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.

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

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

Implements QgsDiagramRendererV2.

QSizeF QgsLinearlyInterpolatedDiagramRenderer::lowerSize ( ) const
inline
double QgsLinearlyInterpolatedDiagramRenderer::lowerValue ( ) const
inline
void QgsLinearlyInterpolatedDiagramRenderer::readXML ( const QDomElement &  elem,
const QgsVectorLayer layer 
)
virtual

Implements QgsDiagramRendererV2.

QString QgsLinearlyInterpolatedDiagramRenderer::rendererName ( ) const
inlinevirtual

Implements QgsDiagramRendererV2.

void QgsLinearlyInterpolatedDiagramRenderer::setClassificationAttribute ( int  index)
inline
void QgsLinearlyInterpolatedDiagramRenderer::setClassificationAttributeExpression ( QString  expression)
inline
void QgsLinearlyInterpolatedDiagramRenderer::setClassificationAttributeIsExpression ( bool  isExpression)
inline
void QgsLinearlyInterpolatedDiagramRenderer::setDiagramSettings ( const QgsDiagramSettings s)
inline
void QgsLinearlyInterpolatedDiagramRenderer::setLowerSize ( QSizeF  s)
inline
void QgsLinearlyInterpolatedDiagramRenderer::setLowerValue ( double  val)
inline
void QgsLinearlyInterpolatedDiagramRenderer::setUpperSize ( QSizeF  s)
inline
void QgsLinearlyInterpolatedDiagramRenderer::setUpperValue ( double  val)
inline
QSizeF QgsLinearlyInterpolatedDiagramRenderer::upperSize ( ) const
inline
double QgsLinearlyInterpolatedDiagramRenderer::upperValue ( ) const
inline
void QgsLinearlyInterpolatedDiagramRenderer::writeXML ( QDomElement &  layerElem,
QDomDocument &  doc,
const QgsVectorLayer layer 
) const
virtual

Implements QgsDiagramRendererV2.


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