QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsSingleBoxScaleBarStyle Class Reference

Scalebar style that draws a single box with alternating color for the segments. More...

#include <qgssingleboxscalebarstyle.h>

Inheritance diagram for QgsSingleBoxScaleBarStyle:
Inheritance graph
[legend]

Public Member Functions

 QgsSingleBoxScaleBarStyle (const QgsComposerScaleBar *bar)
 
 ~QgsSingleBoxScaleBarStyle ()
 
void draw (QPainter *p, double xOffset=0) const override
 Draw method. More...
 
QString name () const override
 
- Public Member Functions inherited from QgsScaleBarStyle
 QgsScaleBarStyle (const QgsComposerScaleBar *bar)
 
virtual ~QgsScaleBarStyle ()
 
virtual QRectF calculateBoxSize () const
 
virtual void drawLabels (QPainter *p) const
 

Additional Inherited Members

- Protected Attributes inherited from QgsScaleBarStyle
const QgsComposerScaleBarmScaleBar
 

Detailed Description

Scalebar style that draws a single box with alternating color for the segments.

Definition at line 26 of file qgssingleboxscalebarstyle.h.

Constructor & Destructor Documentation

◆ QgsSingleBoxScaleBarStyle()

QgsSingleBoxScaleBarStyle::QgsSingleBoxScaleBarStyle ( const QgsComposerScaleBar bar)

Definition at line 23 of file qgssingleboxscalebarstyle.cpp.

◆ ~QgsSingleBoxScaleBarStyle()

QgsSingleBoxScaleBarStyle::~QgsSingleBoxScaleBarStyle ( )

Definition at line 33 of file qgssingleboxscalebarstyle.cpp.

Member Function Documentation

◆ draw()

void QgsSingleBoxScaleBarStyle::draw ( QPainter p,
double  xOffset = 0 
) const
overridevirtual

Draw method.

Parameters
ppainter object
xOffsetx offset

Implements QgsScaleBarStyle.

Definition at line 38 of file qgssingleboxscalebarstyle.cpp.

◆ name()

QString QgsSingleBoxScaleBarStyle::name ( ) const
overridevirtual

Implements QgsScaleBarStyle.

Definition at line 79 of file qgssingleboxscalebarstyle.cpp.


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