QGIS API Documentation
2.8.2-Wien
|
A scale bar that draws segments using short ticks. More...
#include <qgsticksscalebarstyle.h>
Public Types | |
enum | TickPosition { TicksUp, TicksDown, TicksMiddle } |
Public Member Functions | |
QgsTicksScaleBarStyle (const QgsComposerScaleBar *bar) | |
~QgsTicksScaleBarStyle () | |
void | draw (QPainter *p, double xOffset=0) const override |
QString | name () const override |
void | setTickPosition (TickPosition p) |
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 QgsComposerScaleBar * | mScaleBar |
A scale bar that draws segments using short ticks.
Definition at line 25 of file qgsticksscalebarstyle.h.
Definition at line 28 of file qgsticksscalebarstyle.h.
QgsTicksScaleBarStyle::QgsTicksScaleBarStyle | ( | const QgsComposerScaleBar * | bar | ) |
Definition at line 22 of file qgsticksscalebarstyle.cpp.
QgsTicksScaleBarStyle::~QgsTicksScaleBarStyle | ( | ) |
Definition at line 32 of file qgsticksscalebarstyle.cpp.
|
overridevirtual |
draw method
p | painter object |
xOffset | offset |
Implements QgsScaleBarStyle.
Definition at line 51 of file qgsticksscalebarstyle.cpp.
|
overridevirtual |
Implements QgsScaleBarStyle.
Definition at line 37 of file qgsticksscalebarstyle.cpp.
|
inline |
Definition at line 46 of file qgsticksscalebarstyle.h.