libosmscout 0.1
Loading...
Searching...
No Matches
MapPainter.cpp File Reference
#include <osmscoutmap/MapPainter.h>
#include <algorithm>
#include <limits>
#include <sstream>
#include <osmscout/system/Math.h>
#include <osmscout/log/Logger.h>
#include <osmscout/util/StopClock.h>
#include <osmscout/util/String.h>
#include <osmscout/util/Tiling.h>
#include <osmscout/util/Geometry.h>
#include <osmscoutmap/MapPainterStatistics.h>

Namespaces

namespace  osmscout
 Original source: https://github.com/philipperemy/easy-encryption/blob/master/b64.h licensed under terms of MIT license.
 

Functions

static bool osmscout::AreaSorter (const MapPainter::AreaData &a, const MapPainter::AreaData &b)
 Return if a > b, a should be drawn before b.
 
static bool osmscout::CrossesElevationLine (int32_t ele, int32_t height1, int32_t height2)
 
static void osmscout::DumpGroundTile (const GroundTile &tile)
 
static void osmscout::GetGridPoints (const std::vector< Point > &nodes, double gridSizeHoriz, double gridSizeVert, std::vector< GeoCoord > &intersections)
 Return the points at which a way crosses the corners of a grid of the given size, in ascending order and without duplicates, into a reused buffer.
 
static bool osmscout::LabelLayoutDataSorter (const LabelData &a, const LabelData &b)
 Sort labels for the same object by position.
 
static double osmscout::RoundDown (double value)
 
static double osmscout::RoundUp (double value)
 

Variables

constexpr bool osmscout::debugGroundTiles = false
 
constexpr double osmscout::maxWidthFeatureWidth =255.0
 The width feature of an object stores a width in meters in a byte (see WidthFeatureValue), so this is the widest width a data carried width value can contribute to the width of a line style.