15 #ifndef QGSCOMPOSERRULER_H 16 #define QGSCOMPOSERRULER_H 42 void setSceneTransform(
const QTransform& transform );
57 static const int validScaleMultiples[];
58 static const int validScaleMagnitudes[];
70 double mScaleMinPixelsWidth;
72 int mMinPixelsPerDivision;
73 int mPixelsBetweenLineAndText;
75 int mMinSpacingVerticalLabels;
77 void setSnapLinePosition(
QPointF pos );
80 int optimumScale(
double minPixelDiff,
int &magnitude,
int &multiple );
83 int optimumNumberDivisions(
double rulerScale,
int scaleMultiple );
92 void drawSmallDivisions(
QPainter *painter,
double startPos,
int numDivisions,
double rulerScale,
double maxPos = 0 );
95 void drawMarkerPos(
QPainter *painter );
99 void cursorPosChanged(
QPointF );
103 #endif // QGSCOMPOSERRULER_H
void setComposition(QgsComposition *c)
Graphics scene for map printing.
A class to show paper scale and the current cursor position.
void updateMarker(QPointF pos)
QgsComposition * composition()