Quantum GIS API Documentation  1.7.5-Wroclaw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
- Public Member Functions inherited from QgsDiagramRendererV2
 QgsDiagramRendererV2 ()
virtual ~QgsDiagramRendererV2 ()
virtual QSizeF sizeMapUnits (const QgsAttributeMap &attributes, const QgsRenderContext &c)
 Returns size of the diagram for feature f in map units.
void renderDiagram (const QgsAttributeMap &att, QgsRenderContext &c, const QPointF &pos)
void setDiagram (QgsDiagram *d)
const QgsDiagramdiagram () 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.
- 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)
void _writeXML (QDomElement &rendererElem, QDomDocument &doc) const

Private Attributes

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

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 174 of file qgsdiagramrendererv2.h.


Constructor & Destructor Documentation

QgsLinearlyInterpolatedDiagramRenderer::QgsLinearlyInterpolatedDiagramRenderer ( )

Definition at line 265 of file qgsdiagramrendererv2.cpp.

QgsLinearlyInterpolatedDiagramRenderer::~QgsLinearlyInterpolatedDiagramRenderer ( )

Definition at line 269 of file qgsdiagramrendererv2.cpp.


Member Function Documentation

int QgsLinearlyInterpolatedDiagramRenderer::classificationAttribute ( ) const
inline

Definition at line 201 of file qgsdiagramrendererv2.h.

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

Returns attribute indices needed for diagram rendering.

Implements QgsDiagramRendererV2.

Definition at line 287 of file qgsdiagramrendererv2.cpp.

References QgsDiagramSettings::categoryIndices, mClassificationAttribute, and mSettings.

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

Returns list with all diagram settings in the renderer.

Implements QgsDiagramRendererV2.

Definition at line 273 of file qgsdiagramrendererv2.cpp.

References mSettings.

bool QgsLinearlyInterpolatedDiagramRenderer::diagramSettings ( const QgsAttributeMap att,
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:
attattribute map
crender context
sout: diagram settings for the feature

Implements QgsDiagramRendererV2.

Definition at line 280 of file qgsdiagramrendererv2.cpp.

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

QSizeF QgsLinearlyInterpolatedDiagramRenderer::diagramSize ( const QgsAttributeMap attributes,
const QgsRenderContext c 
)
protectedvirtual

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

Implements QgsDiagramRendererV2.

Definition at line 297 of file qgsdiagramrendererv2.cpp.

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

Referenced by diagramSettings().

QSizeF QgsLinearlyInterpolatedDiagramRenderer::lowerSize ( ) const
inline

Definition at line 196 of file qgsdiagramrendererv2.h.

double QgsLinearlyInterpolatedDiagramRenderer::lowerValue ( ) const
inline

Definition at line 190 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::readXML ( const QDomElement &  elem)
virtual
QString QgsLinearlyInterpolatedDiagramRenderer::rendererName ( ) const
inlinevirtual

Implements QgsDiagramRendererV2.

Definition at line 187 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setClassificationAttribute ( int  index)
inline

Definition at line 202 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setDiagramSettings ( const QgsDiagramSettings s)
inline

Definition at line 183 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setLowerSize ( QSizeF  s)
inline

Definition at line 195 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setLowerValue ( double  val)
inline

Definition at line 189 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setUpperSize ( QSizeF  s)
inline

Definition at line 198 of file qgsdiagramrendererv2.h.

void QgsLinearlyInterpolatedDiagramRenderer::setUpperValue ( double  val)
inline

Definition at line 192 of file qgsdiagramrendererv2.h.

QSizeF QgsLinearlyInterpolatedDiagramRenderer::upperSize ( ) const
inline

Definition at line 199 of file qgsdiagramrendererv2.h.

double QgsLinearlyInterpolatedDiagramRenderer::upperValue ( ) const
inline

Definition at line 193 of file qgsdiagramrendererv2.h.

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

Member Data Documentation

int QgsLinearlyInterpolatedDiagramRenderer::mClassificationAttribute
private

Index of the classification attribute.

Definition at line 219 of file qgsdiagramrendererv2.h.

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

QSizeF QgsLinearlyInterpolatedDiagramRenderer::mLowerSize
private

Definition at line 214 of file qgsdiagramrendererv2.h.

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

double QgsLinearlyInterpolatedDiagramRenderer::mLowerValue
private

Definition at line 216 of file qgsdiagramrendererv2.h.

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

QgsDiagramSettings QgsLinearlyInterpolatedDiagramRenderer::mSettings
private

Definition at line 213 of file qgsdiagramrendererv2.h.

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

QSizeF QgsLinearlyInterpolatedDiagramRenderer::mUpperSize
private

Definition at line 215 of file qgsdiagramrendererv2.h.

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

double QgsLinearlyInterpolatedDiagramRenderer::mUpperValue
private

Definition at line 217 of file qgsdiagramrendererv2.h.

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


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