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

#include <qgsdiagramrendererv2.h>

Public Types

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

Public Member Functions

 QgsDiagramSettings ()
 
void readXML (const QDomElement &elem, const QgsVectorLayer *layer)
 
void writeXML (QDomElement &rendererElem, QDomDocument &doc, const QgsVectorLayer *layer) const
 

Public Attributes

QFont font
 
QList< QColor > categoryColors
 
QList< QString > categoryAttributes
 
QSizeF size
 
SizeType sizeType
 
QColor backgroundColor
 
QColor penColor
 
double penWidth
 
LabelPlacementMethod labelPlacementMethod
 
DiagramOrientation diagramOrientation
 
double barWidth
 
int transparency
 
bool scaleByArea
 
int angleOffset
 
double minScaleDenominator
 
double maxScaleDenominator
 
double minimumSize
 Scale diagrams smaller than mMinimumSize to mMinimumSize. More...
 

Detailed Description

Definition at line 88 of file qgsdiagramrendererv2.h.

Member Enumeration Documentation

Orientation of histogram.

Enumerator
Up 
Down 
Left 
Right 

Definition at line 104 of file qgsdiagramrendererv2.h.

Enumerator
Height 
XHeight 

Definition at line 97 of file qgsdiagramrendererv2.h.

Enumerator
MM 
MapUnits 

Definition at line 91 of file qgsdiagramrendererv2.h.

Constructor & Destructor Documentation

QgsDiagramSettings::QgsDiagramSettings ( )
inline

Definition at line 112 of file qgsdiagramrendererv2.h.

Member Function Documentation

void QgsDiagramSettings::readXML ( const QDomElement &  elem,
const QgsVectorLayer layer 
)
void QgsDiagramSettings::writeXML ( QDomElement &  rendererElem,
QDomDocument &  doc,
const QgsVectorLayer layer 
) const

Member Data Documentation

int QgsDiagramSettings::angleOffset

Definition at line 127 of file qgsdiagramrendererv2.h.

Referenced by readXML(), QgsPieDiagram::renderDiagram(), and writeXML().

QColor QgsDiagramSettings::backgroundColor

Definition at line 119 of file qgsdiagramrendererv2.h.

Referenced by readXML(), QgsTextDiagram::renderDiagram(), and writeXML().

double QgsDiagramSettings::barWidth
QList< QString > QgsDiagramSettings::categoryAttributes
QList< QColor > QgsDiagramSettings::categoryColors
DiagramOrientation QgsDiagramSettings::diagramOrientation
QFont QgsDiagramSettings::font

Definition at line 114 of file qgsdiagramrendererv2.h.

Referenced by readXML(), QgsDiagram::scaledFont(), and writeXML().

LabelPlacementMethod QgsDiagramSettings::labelPlacementMethod

Definition at line 122 of file qgsdiagramrendererv2.h.

Referenced by readXML(), QgsTextDiagram::renderDiagram(), and writeXML().

double QgsDiagramSettings::maxScaleDenominator

Definition at line 131 of file qgsdiagramrendererv2.h.

Referenced by readXML(), QgsTextDiagram::renderDiagram(), and writeXML().

double QgsDiagramSettings::minimumSize

Scale diagrams smaller than mMinimumSize to mMinimumSize.

Definition at line 134 of file qgsdiagramrendererv2.h.

Referenced by QgsPieDiagram::diagramSize(), QgsHistogramDiagram::diagramSize(), QgsTextDiagram::diagramSize(), readXML(), and writeXML().

double QgsDiagramSettings::minScaleDenominator

Definition at line 130 of file qgsdiagramrendererv2.h.

Referenced by readXML(), QgsTextDiagram::renderDiagram(), and writeXML().

QColor QgsDiagramSettings::penColor
double QgsDiagramSettings::penWidth

Definition at line 121 of file qgsdiagramrendererv2.h.

Referenced by readXML(), QgsDiagram::setPenWidth(), and writeXML().

bool QgsDiagramSettings::scaleByArea
QSizeF QgsDiagramSettings::size
SizeType QgsDiagramSettings::sizeType
int QgsDiagramSettings::transparency

Definition at line 125 of file qgsdiagramrendererv2.h.

Referenced by readXML(), and writeXML().


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