QGIS API Documentation  2.99.0-Master (08ee180)
Public Types | Public Member Functions | Public Attributes | List of all members
QgsDiagramSettings Class Reference

Stores the settings for rendering a single diagram. More...

#include <qgsdiagramrenderer.h>

Public Types

enum  DiagramOrientation { Up, Down, Left, Right }
 Orientation of histogram. More...
 
enum  LabelPlacementMethod { Height, XHeight }
 

Public Member Functions

 QgsDiagramSettings ()
 
QList< QgsLayerTreeModelLegendNode *> legendItems (QgsLayerTreeLayer *nodeLayer) const
 Returns list of legend nodes for the diagram. More...
 
void readXml (const QDomElement &elem, const QgsVectorLayer *layer)
 
void writeXml (QDomElement &rendererElem, QDomDocument &doc, const QgsVectorLayer *layer) const
 

Public Attributes

int angleOffset
 
QColor backgroundColor
 
double barWidth
 
QList< QString > categoryAttributes
 
QList< QColor > categoryColors
 
QList< QString > categoryLabels
 
DiagramOrientation diagramOrientation
 
bool enabled
 
QFont font
 
LabelPlacementMethod labelPlacementMethod
 
QgsMapUnitScale lineSizeScale
 Line unit scale. More...
 
QgsUnitTypes::RenderUnit lineSizeUnit
 Line unit index. More...
 
double maxScaleDenominator
 
double minimumSize
 Scale diagrams smaller than mMinimumSize to mMinimumSize. More...
 
double minScaleDenominator
 
QColor penColor
 
double penWidth
 
bool scaleBasedVisibility
 
bool scaleByArea
 
QSizeF size
 
QgsMapUnitScale sizeScale
 Diagram size unit scale. More...
 
QgsUnitTypes::RenderUnit sizeType
 Diagram size unit. More...
 
int transparency
 

Detailed Description

Stores the settings for rendering a single diagram.

QgsDiagramSettings stores the settings related to rendering the individual diagrams themselves, while QgsDiagramLayerSettings stores settings which control how ALL diagrams within a layer are rendered.

Definition at line 290 of file qgsdiagramrenderer.h.

Member Enumeration Documentation

§ DiagramOrientation

Orientation of histogram.

Enumerator
Up 
Down 
Left 
Right 

Definition at line 301 of file qgsdiagramrenderer.h.

§ LabelPlacementMethod

Enumerator
Height 
XHeight 

Definition at line 294 of file qgsdiagramrenderer.h.

Constructor & Destructor Documentation

§ QgsDiagramSettings()

QgsDiagramSettings::QgsDiagramSettings ( )
inline

Definition at line 309 of file qgsdiagramrenderer.h.

Member Function Documentation

§ legendItems()

QList< QgsLayerTreeModelLegendNode *> QgsDiagramSettings::legendItems ( QgsLayerTreeLayer nodeLayer) const

Returns list of legend nodes for the diagram.

Note
caller is responsible for deletion of QgsLayerTreeModelLegendNodes
added in 2.10

Definition at line 696 of file qgsdiagramrenderer.cpp.

§ readXml()

void QgsDiagramSettings::readXml ( const QDomElement &  elem,
const QgsVectorLayer layer 
)

Definition at line 156 of file qgsdiagramrenderer.cpp.

§ writeXml()

void QgsDiagramSettings::writeXml ( QDomElement &  rendererElem,
QDomDocument &  doc,
const QgsVectorLayer layer 
) const

Definition at line 291 of file qgsdiagramrenderer.cpp.

Member Data Documentation

§ angleOffset

int QgsDiagramSettings::angleOffset

Definition at line 360 of file qgsdiagramrenderer.h.

§ backgroundColor

QColor QgsDiagramSettings::backgroundColor

Definition at line 352 of file qgsdiagramrenderer.h.

§ barWidth

double QgsDiagramSettings::barWidth

Definition at line 357 of file qgsdiagramrenderer.h.

§ categoryAttributes

QList< QString > QgsDiagramSettings::categoryAttributes

Definition at line 328 of file qgsdiagramrenderer.h.

§ categoryColors

QList< QColor > QgsDiagramSettings::categoryColors

Definition at line 327 of file qgsdiagramrenderer.h.

§ categoryLabels

QList< QString > QgsDiagramSettings::categoryLabels
Note
added in 2.10

Definition at line 330 of file qgsdiagramrenderer.h.

§ diagramOrientation

DiagramOrientation QgsDiagramSettings::diagramOrientation

Definition at line 356 of file qgsdiagramrenderer.h.

§ enabled

bool QgsDiagramSettings::enabled

Definition at line 325 of file qgsdiagramrenderer.h.

§ font

QFont QgsDiagramSettings::font

Definition at line 326 of file qgsdiagramrenderer.h.

§ labelPlacementMethod

LabelPlacementMethod QgsDiagramSettings::labelPlacementMethod

Definition at line 355 of file qgsdiagramrenderer.h.

§ lineSizeScale

QgsMapUnitScale QgsDiagramSettings::lineSizeScale

Line unit scale.

Note
added in 2.16

Definition at line 350 of file qgsdiagramrenderer.h.

§ lineSizeUnit

QgsUnitTypes::RenderUnit QgsDiagramSettings::lineSizeUnit

Line unit index.

Note
added in 2.16

Definition at line 345 of file qgsdiagramrenderer.h.

§ maxScaleDenominator

double QgsDiagramSettings::maxScaleDenominator

Definition at line 365 of file qgsdiagramrenderer.h.

§ minimumSize

double QgsDiagramSettings::minimumSize

Scale diagrams smaller than mMinimumSize to mMinimumSize.

Definition at line 368 of file qgsdiagramrenderer.h.

§ minScaleDenominator

double QgsDiagramSettings::minScaleDenominator

Definition at line 364 of file qgsdiagramrenderer.h.

§ penColor

QColor QgsDiagramSettings::penColor

Definition at line 353 of file qgsdiagramrenderer.h.

§ penWidth

double QgsDiagramSettings::penWidth

Definition at line 354 of file qgsdiagramrenderer.h.

§ scaleBasedVisibility

bool QgsDiagramSettings::scaleBasedVisibility

Definition at line 362 of file qgsdiagramrenderer.h.

§ scaleByArea

bool QgsDiagramSettings::scaleByArea

Definition at line 359 of file qgsdiagramrenderer.h.

§ size

QSizeF QgsDiagramSettings::size

Definition at line 331 of file qgsdiagramrenderer.h.

§ sizeScale

QgsMapUnitScale QgsDiagramSettings::sizeScale

Diagram size unit scale.

Note
added in 2.16

Definition at line 340 of file qgsdiagramrenderer.h.

§ sizeType

QgsUnitTypes::RenderUnit QgsDiagramSettings::sizeType

Diagram size unit.

Definition at line 335 of file qgsdiagramrenderer.h.

§ transparency

int QgsDiagramSettings::transparency

Definition at line 358 of file qgsdiagramrenderer.h.


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