QGIS API Documentation
2.0.1-Dufour
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
composer
qgsnumericscalebarstyle.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsnumericscalebarstyle.h
3
---------------------------
4
begin : June 2008
5
copyright : (C) 2008 by Marco Hugentobler
6
email :
[email protected]
7
***************************************************************************/
8
/***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSNUMERICSCALEBARSTYLE_H
18
#define QGSNUMERICSCALEBARSTYLE_H
19
20
#include "
qgsscalebarstyle.h
"
21
25
class
CORE_EXPORT
QgsNumericScaleBarStyle
:
public
QgsScaleBarStyle
26
{
27
public
:
28
QgsNumericScaleBarStyle
(
QgsComposerScaleBar
* bar );
29
~
QgsNumericScaleBarStyle
();
30
31
QString
name
()
const
;
32
33
void
draw
( QPainter* p,
double
xOffset = 0 )
const
;
34
35
//calculation of box size is different compared to segment based scale bars
36
QRectF
calculateBoxSize
()
const
;
37
38
private
:
39
QgsNumericScaleBarStyle
();
//forbidden
41
QString scaleText()
const
;
42
44
mutable
double
mLastScaleBarWidth
;
45
};
46
47
#endif
Generated on Tue Sep 24 2013 14:41:46 for QGIS API Documentation by
1.8.1.2