QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
QgsHistogramDiagram Class Reference

#include <qgshistogramdiagram.h>

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

Public Member Functions

 QgsHistogramDiagram ()
 
 ~QgsHistogramDiagram ()
 
virtual QgsDiagramclone () const
 Returns an instance that is equivalent to this one. More...
 
void renderDiagram (const QgsFeature &feature, QgsRenderContext &c, const QgsDiagramSettings &s, const QPointF &position)
 Draws the diagram at the given position (in pixel coordinates) More...
 
QSizeF diagramSize (const QgsAttributes &attributes, const QgsRenderContext &c, const QgsDiagramSettings &s)
 Returns the size in map units the diagram will use to render. More...
 
QSizeF diagramSize (const QgsFeature &feature, const QgsRenderContext &c, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &is)
 Returns the size in map units the diagram will use to render. More...
 
QString diagramName () const
 
- Public Member Functions inherited from QgsDiagram
virtual ~QgsDiagram ()
 
void clearCache ()
 
QgsExpressiongetExpression (const QString &expression, const QgsFields *fields)
 
virtual Q_DECL_DEPRECATED void renderDiagram (const QgsAttributes &att, QgsRenderContext &c, const QgsDiagramSettings &s, const QPointF &position)
 
virtual Q_DECL_DEPRECATED QSizeF diagramSize (const QgsAttributes &attributes, const QgsRenderContext &c, const QgsDiagramSettings &s, const QgsDiagramInterpolationSettings &is)
 

Private Attributes

QBrush mCategoryBrush
 
QPen mPen
 
double mScaleFactor
 

Additional Inherited Members

- Protected Member Functions inherited from QgsDiagram
 QgsDiagram ()
 
 QgsDiagram (const QgsDiagram &other)
 
void setPenWidth (QPen &pen, const QgsDiagramSettings &s, const QgsRenderContext &c)
 Changes the pen width to match the current settings and rendering context. More...
 
QSizeF sizePainterUnits (const QSizeF &size, const QgsDiagramSettings &s, const QgsRenderContext &c)
 Calculates a size to match the current settings and rendering context. More...
 
float sizePainterUnits (float l, const QgsDiagramSettings &s, const QgsRenderContext &c)
 Calculates a length to match the current settings and rendering context. More...
 
QFont scaledFont (const QgsDiagramSettings &s, const QgsRenderContext &c)
 Calculates a size to match the current settings and rendering context. More...
 

Detailed Description

Definition at line 34 of file qgshistogramdiagram.h.

Constructor & Destructor Documentation

QgsHistogramDiagram::QgsHistogramDiagram ( )

Definition at line 22 of file qgshistogramdiagram.cpp.

References mCategoryBrush, mPen, and mScaleFactor.

Referenced by clone().

QgsHistogramDiagram::~QgsHistogramDiagram ( )

Definition at line 29 of file qgshistogramdiagram.cpp.

Member Function Documentation

QgsDiagram * QgsHistogramDiagram::clone ( ) const
virtual

Returns an instance that is equivalent to this one.

Note
added in 2.4

Implements QgsDiagram.

Definition at line 33 of file qgshistogramdiagram.cpp.

References QgsHistogramDiagram().

QString QgsHistogramDiagram::diagramName ( ) const
inlinevirtual

Implements QgsDiagram.

Definition at line 46 of file qgshistogramdiagram.h.

References DIAGRAM_NAME_HISTOGRAM.

QSizeF QgsHistogramDiagram::diagramSize ( const QgsAttributes attributes,
const QgsRenderContext c,
const QgsDiagramSettings s 
)
virtual
QSizeF QgsHistogramDiagram::diagramSize ( const QgsFeature feature,
const QgsRenderContext c,
const QgsDiagramSettings s,
const QgsDiagramInterpolationSettings is 
)
virtual
void QgsHistogramDiagram::renderDiagram ( const QgsFeature feature,
QgsRenderContext c,
const QgsDiagramSettings s,
const QPointF &  position 
)
virtual

Member Data Documentation

QBrush QgsHistogramDiagram::mCategoryBrush
private

Definition at line 49 of file qgshistogramdiagram.h.

Referenced by QgsHistogramDiagram(), and renderDiagram().

QPen QgsHistogramDiagram::mPen
private

Definition at line 50 of file qgshistogramdiagram.h.

Referenced by QgsHistogramDiagram(), and renderDiagram().

double QgsHistogramDiagram::mScaleFactor
private

Definition at line 51 of file qgshistogramdiagram.h.

Referenced by diagramSize(), QgsHistogramDiagram(), and renderDiagram().


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