-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
620220d
commit 53ac675
Showing
63 changed files
with
3,003 additions
and
1,319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/*! | ||
* \class QgsMapUnitScale | ||
* \brief Struct for storing maximum and minimum scales for measurements in map units | ||
* | ||
* For measurements in map units, a minimum and a maximum scale can be defined. | ||
* Outside this range, the measurements aren't scaled anymore proportionally to | ||
* the map scale. | ||
*/ | ||
|
||
class QgsMapUnitScale | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsmapunitscale.h> | ||
%End | ||
public: | ||
QgsMapUnitScale(); | ||
|
||
/** The minimum scale, or 0.0 if unset */ | ||
double minScale; | ||
/** The maximum scale, or 0.0 if unset */ | ||
double maxScale; | ||
|
||
double computeMapUnitsPerPixel(const QgsRenderContext& c) const; | ||
}; | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.