QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
17 #ifndef QGSTICKSSCALEBARRENDERER_H
18 #define QGSTICKSSCALEBARRENDERER_H
20 #include "qgis_core.h"
46 QString
id()
const override;
49 Flags
flags()
const override;
60 void setTickPosition(
TickPosition position ) { mTickPosition = position; }
70 TickPosition mTickPosition = TicksMiddle;
73 #endif // QGSTICKSSCALEBARRENDERER_H
virtual QString id() const =0
Returns the unique ID for this renderer.
@ TicksUp
Render ticks above line.
virtual QgsScaleBarRenderer * clone() const =0
Returns a clone of the renderer.
@ TicksMiddle
Render ticks crossing line.
@ TicksDown
Render ticks below line.
virtual QString visibleName() const =0
Returns the user friendly, translated name for the renderer.
TickPosition
Tick positions.
virtual int sortKey() const
Returns a sorting key value, where renderers with a lower sort key will be shown earlier in lists.
virtual Flags flags() const
Returns the scalebar rendering flags, which dictates the renderer's behavior.
TickPosition tickPosition() const
Returns the position for tick marks in the scalebar.