uint8_t GetRouteTypeIdBytes() const
Definition: TypeConfig.h:1243
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: RefFeature.cpp:62
double symbolSpace
Space between individual symbols on the contour.
Definition: MapPainter.h:202
std::shared_ptr< S > style
Definition: StyleConfig.h:377
QString addressNumber
Definition: LookupModule.h:82
void CleanupCache()
Cleanup the cache.
Definition: DataTileCache.cpp:65
std::shared_ptr< LabelStyle > LabelStyleRef
Definition: Styles.h:499
Model providing navigation functionality to QML.
Definition: NavigationModel.h:43
bool operator!=(const ObjectFileRef &reference) const
Definition: ObjectRef.h:184
ScreenVectorRectangle(double x, double y, double width, double height)
Definition: LabelLayouterHelper.h:82
double GetProjectedWidth(const Projection &projection, double minPixel, double width) const
Definition: MapPainter.cpp:263
@ TimeRole
Definition: InstalledMapsModel.h:55
void UnsetFeature(size_t idx)
Definition: Node.h:103
Definition: TypeDistributionDataFile.h:44
static Parser::Exit _p0(Parser *p, byte bb)
Definition: utf8helper.cpp:321
StringMatcherRef CreateMatcher(const std::string &pattern) const override
Definition: StringMatcher.cpp:91
void setSpeedTable(const QVariantMap &)
Definition: QmlRoutingProfile.cpp:115
static const char *const NAME
Name of this feature.
Definition: MaxSpeedFeature.h:70
const Point & GetBack() const
Definition: Way.h:148
bool operator>=(const Bearing &o) const
Definition: Bearing.h:134
TypeInfo & CanBeRelation(bool canBeRelation)
If set to 'true', a relation can be of this type.
Definition: TypeConfig.h:395
void databaseLoaded(QString dbPath, QList< osmscout::TileRef > tiles)
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: BrandFeature.h:80
bool GetAreas(const GeoBox &boundingBox, const Magnification &magnification, const TypeInfoSet &areaTypes, std::vector< AreaRef > &areas, TypeInfoSet &loadedAreaTypes) const
Definition: OptimizeAreasLowZoom.cpp:255
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:265
std::shared_ptr< Intersection > JunctionRef
Definition: Intersection.h:65
std::shared_ptr< TypeDefinition > TypeDefinitionRef
Definition: MapService.h:112
void incEpoch()
Definition: TileCache.h:156
void SetTextureHeight(int textheight)
Definition: OpenGLMapData.h:332
@ LangRole
Definition: AvailableVoicesModel.h:78
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: TunnelFeature.cpp:26
Definition: StyleConfig.h:164
static double minLat()
Definition: OSMTile.h:50
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: WidthFeature.cpp:71
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: OperatorFeature.cpp:86
@ attrTextColor
Definition: Styles.h:821
FeatureValueReader< MaxSpeedFeature, MaxSpeedFeatureValue > MaxSpeedFeatureValueReader
Definition: MaxSpeedFeature.h:97
ObjectFileRef object
The object that represents this region.
Definition: Location.h:79
TypeConfigRef GetTypeConfig() const
Definition: Database.cpp:291
A route can have multiple variants.
Definition: PublicTransport.h:126
@ boolOr
Definition: Tag.h:100
bool Open(const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedData)
Definition: AreaIndex.cpp:73
size_t priority
Priority of the entry (minimum of priority label elements)
Definition: LabelLayouter.h:160
AdminRegionLevel
Common sense of administrative region levels.
Definition: LookupModule.h:61
virtual Ptr Borrow()
Definition: ObjectPool.h:78
TypeInfo & SetMergeAreas(bool mergeAreas)
Set to true, if "touching" areas of this type should get merged.
Definition: TypeConfig.h:635
double angle
clock-wise rotation in radians
Definition: LabelLayouter.h:107
CmdLineParseResult Parse(CmdLineScanner &scanner) override
Definition: CmdLineParsing.cpp:143
constexpr codepoint NullCodepoint
Definition: utf8helper_charmap.h:39
CmdLineGeoCoordArgParser(SetterFunction &&setter)
Definition: CmdLineParsing.cpp:276
Distance Meters(double m)
Definition: Distance.h:358
bool IsNode() const
Definition: ObjectRef.h:120
Type type
Definition: LabelLayouter.h:66
const SymbolRef & GetSymbol() const
Definition: Styles.h:949
Definition: SpeedAgent.h:47
double angle
Definition: InputHandler.h:166
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: MaxStayFeature.cpp:26
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: ConstructionYearFeature.cpp:32
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: AdminLevelFeature.cpp:26
bool defined
Definition: SpeedAgent.h:40
Definition: Database.h:149
bool operator!=(const OSMTileId &other) const
Definition: Tiling.h:94
~VoiceManager() override
Definition: VoiceManager.cpp:141
void MarkConstrainedEdge(const int index)
~FileScanner()
Definition: FileScanner.cpp:56
void SetOptimizeAreaNodes(TransPolygon::OptimizeMethod optimize)
Definition: MapParameter.cpp:105
static Bearing Radians(double radians)
Definition: Bearing.h:139
std::shared_ptr< AggLabel > Layout(const Projection &projection, const MapParameter ¶meter, const std::string &text, double fontSize, double objectWidth, bool enableWrapping=false, bool contourLabel=false)
Definition: MapPainterAgg.cpp:362
ColorFeatureValue & operator=(const FeatureValue &other) override
Definition: ColorFeature.cpp:36
void STYLEFILTER_PATH(StyleFilter &filter)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1081
double fontSize
Font size to be used.
Definition: LabelLayouter.h:71
@ ValueRole
Definition: StyleFlagsModel.h:57
Latch(bool _px)
Definition: ReadWriteLock.h:80
NameDescriptionRef GetJunctionDescription() const
Definition: RouteDescription.h:470
RouteDataFileRef GetRouteDataFile() const
Definition: Database.cpp:414
void FlushTileCache()
Evict all tiles from cache (tile count == 0)
Definition: MapService.cpp:157
std::vector< Point > nodes
Note that way nodes, bbox and segments fields are public for simple manipulation.
Definition: Way.h:56
TileKey GetParent() const
Return the parent tile.
Definition: TileId.cpp:170
const character charmap_e2_81[]
Definition: utf8helper_charmap.cpp:2332
bool operator<(const Pixel &other) const
Definition: Pixel.h:72
AdminRegionRef GetAdminRegion() const
Definition: Location.h:288
const std::vector< double > & GetDash() const
Definition: Styles.h:434
double GetHeight() const
Returns the height of the bounding box (maxLat-minLat).
Definition: ScreenBox.h:113
bool isValid() const
Definition: Voice.h:166
Line & operator<<(short value)
Definition: Logger.h:149
void GetTilesForBoundingBox(const Magnification &magnification, const GeoBox &boundingBox, std::list< typename MapTileCache< T >::TRef > &tiles) const
Return all tile necessary for covering the given boundingbox using the given magnification.
Definition: MapTileCache.h:193
Database instance initialization parameter to influence the behavior of the db instance.
Definition: Database.h:82
std::shared_ptr< AreaAreaIndex > AreaAreaIndexRef
Definition: AreaAreaIndex.h:159
virtual void OnRoundaboutEnter(const RouteDescription::RoundaboutEnterDescriptionRef &roundaboutEnterDescription, const RouteDescription::CrossingWaysDescriptionRef &crossingWaysDescription)
Called if we enter a roundabout.
Definition: RouteDescriptionPostprocessor.cpp:57
ScreenBox GetBoundingBox(const Projection &projection) const
bounding box in pixels for given projection
Definition: Styles.h:1163
bool operator!=(const LineStyle &other) const
Definition: Styles.cpp:417
std::string GetErrorDescription() const
Definition: CmdLineParsing.cpp:102
@ car
Definition: AccessRestrictedFeature.h:36
virtual ~Slot()
Definition: Signal.h:215
~SweepContext()
Destructor.
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: AccessRestrictedFeature.cpp:72
Definition: Location.h:95
TypeNameDescription(const std::string &name)
Definition: RouteDescription.cpp:435
size_t GetSize() const
Returns the current size of the cache.
Definition: Cache.h:275
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: OperatorFeature.h:80
void AddNodeIconStyle(const StyleFilter &filter, IconPartialStyle &style)
Definition: StyleConfig.cpp:962
MaxStayFeatureValue(const std::string &value)
Definition: MaxStayFeature.h:39
Definition: MapPainterOpenGL.h:33
void DumpStatistics() const
Definition: LocationIndex.cpp:840
QElapsedTimer timer
Definition: InputHandler.h:118
void SetResolveRouteMembers(bool resolveRouteMembers)
Definition: MapService.cpp:49
const std::vector< TypeInfoRef > & GetAreaTypes() const
Returns an array of the (ignore=false) area types available.
Definition: TypeConfig.h:1220
POIRef poi
POI data, if set.
Definition: LocationDescriptionService.h:365
bool operator<(const DBId &other) const
Definition: DBFileOffset.h:74
double CalculateDistancePointToLineSegment(const N &p, const N &a, const N &b)
Calculates the distance between a point p and a line defined by the points a and b.
Definition: Geometry.h:1035
Attribute
Definition: Styles.h:291
PathTextStyle & SetLabel(const LabelProviderRef &label)
Definition: Styles.cpp:1364
double GetTurnAngle() const
Definition: RouteDescription.h:298
std::string GetPositionalHint(const std::string &positional) const override
Definition: CmdLineParsing.h:203
int GetTextureWidth(int index)
Definition: OpenGLMapData.h:320
ScreenBox GetBoundingBox() const override
Definition: Styles.cpp:1508
std::shared_ptr< POIsPostprocessor > POIsPostprocessorRef
Definition: RoutePostprocessor.h:421
QString GetCacheLocation() const
Definition: OSMScoutQt.cpp:489
std::shared_ptr< LocationCoordDescription > LocationCoordDescriptionRef
Definition: LocationDescriptionService.h:54
ScreenVectorRectangle layoutViewport
Definition: LabelLayouter.h:279
const character charmap_c9[]
Definition: utf8helper_charmap.cpp:633
StyleSelector(const StyleFilter &filter, const PartialStyle< S, A > &style)
Definition: StyleConfig.h:477
Definition: LocationDescriptionService.h:277
Definition: RoutingService.h:281
static const uint16_t CELL_MAX
Definition: GroundTile.h:60
void remove(const AvailableVoice &item)
Definition: VoiceManager.cpp:223
bool ReadBool()
Definition: FileScanner.cpp:539
std::shared_ptr< ShieldStyle > ShieldStyleRef
Definition: Styles.h:703
SunriseSunsetRes GetCivilTwilight(const GeoCoord &location, const Timestamp &day=Timestamp::clock::now())
Calculate the civil twilight time for the given date and given location.
Definition: src/osmscout/util/SunriseSunset.cpp:320
Attribute
Definition: Styles.h:366
TokenRef Peek()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:521
void setLocation(const double lat, const double lon)
Definition: LocationInfoModel.cpp:77
double lon
Definition: LocationEntry.h:54
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: SpeedAgent.cpp:43
const std::vector< LaneTurn > & GetLaneTurns() const
Definition: RouteDescription.h:620
std::shared_ptr< FillStyleProcessor > FillStyleProcessorRef
Definition: StyleProcessor.h:39
uint64_t GetId() const
Returns a unique number based on the coordinates of the pixel.
Definition: Pixel.h:82
NetworkFeatureValue(const std::string &network)
Definition: NetworkFeature.h:39
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: ChargingStationFeature.cpp:137
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:615
size_t Size()
Definition: ObjectPool.h:94
std::vector< AreaRef > areas
Areas as retrieved from db.
Definition: MapData.h:49
bool IsNameAltTag(TagId tag, uint32_t &priority) const
Definition: Tag.cpp:305
double GetSidecarDistance() const
Definition: MapParameter.h:234
int getRoundaboutExit() const
Definition: RouteStep.h:192
Definition: WebsiteFeature.h:30
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: PositionAgent.cpp:184
static MagnificationLevel magVeryClose
Definition: Magnification.h:158
Triangle * NeighborCW(Point &point)
@ ProviderUriRole
Definition: AvailableMapsModel.h:214
Definition: DataFile.h:74
PlaneMapRenderer(QThread *thread, SettingsRef settings, DBThreadRef dbThread, QString iconDirectory)
Definition: PlaneMapRenderer.cpp:40
uint32_t GetAddressMaxWords() const
Definition: LocationIndex.h:219
unsigned long GetMaximumAreaLevel() const
Definition: MapService.cpp:64
void setStyle(const QString &style)
Definition: MapStyleModel.cpp:69
~FeatureValueBuffer()
Definition: TypeConfig.cpp:371
void RegisterFlag(size_t index, const std::string &flagName)
Definition: TypeFeature.cpp:41
void STRING(std::string &value)
Definition: map/src/osmscoutmap/oss/Parser.cpp:283
bool operator==(const FeatureValue &other) const override
Definition: LocationFeature.cpp:45
FileOffset locationOffset
Offset to location.
Definition: Location.h:190
Definition: Database.h:296
void FlushCache()
Definition: Database.cpp:930
bool Close()
Definition: CoordDataFile.cpp:85
bool operator<(const RNode &other) const
Definition: RoutingService.h:273
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: RoutingModel.cpp:169
LayerFeatureValueReader layerReader
Value reader for the 'layer' feature.
Definition: MapPainter.h:259
Message send once at the beginning to make sure everything initializes correctly and to make it possi...
Definition: Engine.h:62
double GetProjectedWidth(const Projection &projection, double width) const
Definition: MapPainter.h:500
void UnsetFeature(size_t idx)
Definition: Way.h:103
LineStyle & SetDisplayWidth(double value)
Definition: Styles.cpp:241
int kind
Definition: include/osmscout/ost/Scanner.h:48
bool IsFlagSet(size_t flagIndex) const override
Definition: SidewayFeature.h:48
void SetDoubleValue(int attribute, double value) override
Definition: Styles.cpp:1815
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: MaxStayFeature.cpp:76
QString website
Definition: IconLookup.h:58
void onViewObjectsLoaded(const MapViewStruct &, const QList< LookupModule::ObjectInfo > &objects)
Definition: MapObjectInfoModel.cpp:277
static const char *const IN_FEET_LABEL
Name of the "inFeet" label.
Definition: EleFeature.h:79
RouteStep()
Definition: RouteStep.h:105
static double ToMeter(double m)
Definition: Distance.h:223
uint32_t x
Definition: Pixel.h:48
uint8_t GetAdminLevel() const
Definition: AdminLevelFeature.h:57
void routingProgress(int percent, int requestId)
@ DEBUG
Definition: Logger.h:53
CmdLineArgParserRef CmdLineLongOption(Args &&...args)
Definition: CmdLineParsing.h:292
void ROUTESTYLEDEF(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1351
bool VisitLocationAddresses(const AdminRegion ®ion, const PostalArea &postalArea, const Location &location, AddressVisitor &visitor) const
Visit all addresses at the given location.
Definition: LocationService.cpp:635
QList< T > vectorToQList(const std::vector< T > &vec)
Definition: QtStdConverters.h:46
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: ConstructionYearFeature.cpp:83
~NearPOIModel() override
Definition: NearPOIModel.cpp:43
ScreenBox GetBoundingBox() const override
Definition: Styles.cpp:1454
double getLat() const
Definition: VehiclePosition.h:78
bool Intersects(const GeoBox &other, bool openInterval=true) const
Returns true, if both GeoBox instances intersect with each other.
Definition: GeoBox.h:144
static Distance Lowest()
returns the lowest finite value of the given type
Definition: Distance.cpp:48
void Read(const TypeConfig &typeConfig, FileScanner &scanner)
Definition: RouteNode.cpp:43
uint8_t GetLanes() const
Definition: TypeConfig.h:685
bool Open(const std::string &path)
Definition: Database.cpp:204
bool operator==(const TileKey &other) const
Compare tile ids for equality.
Definition: TileId.cpp:185
Definition: TileCache.h:72
ChargingStationFeatureValue & operator=(const FeatureValue &other) override
Definition: ChargingStationFeature.cpp:48
std::string GetDisplayText() const
Definition: Pixel.cpp:26
Definition: InputHandler.h:439
Pipe(ProcessingQueue< E1 > &inQueue, ProcessingQueue< E2 > &outQueue)
Definition: Worker.h:142
static const std::string SUBSECTION_NAME_WAY_LANES
Definition: DescriptionService.h:223
size_t CountWords(const std::string &text)
Definition: String.cpp:202
Representation of route.
Definition: Route.h:49
void DrawArea(const Projection &projection, const MapParameter ¶meter, const AreaData &area) override
Draw the given area using the given FillStyle for the area outline.
Definition: MapPainterSVG.cpp:979
bool HasName() const
Definition: RouteDescription.cpp:122
Definition: LabelLayouter.h:103
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: MapDownloadsModel.cpp:165
static MagnificationLevel magCloser
Definition: Magnification.h:157
osmscout::Way routeWayCopy() const
Definition: QtRouteData.cpp:54
void tileRequested(uint32_t zoomLevel, uint32_t x, uint32_t y)
PathSymbolStyleRef GetAreaBorderSymbolStyle(const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1460
double getTime() const
Definition: RouteStep.h:162
#define OSMSCOUT_API
Definition: CoreImportExport.h:45
void onIconRequest(const MapViewStruct &view, const QPoint &coord, const std::map< int, OverlayObjectRef > &overlayObjects)
Definition: IconLookup.cpp:281
RoutePositionResult()
Definition: RoutingService.cpp:34
static constexpr const char * TemporaryFileSuffix
suffix of file being downloaded
Definition: FileDownloader.h:49
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: AccessFeature.cpp:24
bool rotateBy(double angleChange) override
Definition: InputHandler.cpp:684
void onDownloadProgress(uint64_t)
Definition: FileDownloader.cpp:339
virtual void Error(const std::string &text)
Definition: Progress.cpp:96
Definition: Navigation.h:54
@ PoiRole
Definition: LocationInfoModel.h:74
Definition: InputHandler.h:128
std::string GetName() const override
Returns the name of the feature.
Definition: NameAltFeature.cpp:67
@ candidate
Definition: LocationService.h:232
GeoCoord getCoord() const
Definition: VehiclePosition.h:88
virtual ~FeatureValue()=default
const double & GetHeight() const
Definition: Styles.h:1076
void TAGBINCOND(TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:554
MagnificationLevel operator++(int)
Definition: Magnification.h:64
AvailableMapsModelMap(const QString &name, const QList< QString > &path, const QString &description, const MapProvider &provider, uint64_t size, const QString &serverDirectory, const QDateTime &creation, int version)
Definition: AvailableMapsModel.h:141
void DrawContourSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const ContourSymbolData &data) override
Draw the given Symbol on top of the contour of the given path.
Definition: MapPainterAgg.cpp:461
FileOffset GetFileSize(const std::string &filename)
Definition: File.cpp:32
RouteDescriptionResult TransformRouteDataToRouteDescription(const RouteData &data)
Definition: MultiDBRoutingService.cpp:551
SunriseSunsetRes GetAstronomicalTwilight(const GeoCoord &location, const Timestamp &day=Timestamp::clock::now())
Calculate the astronomical twilight time for the given date and given location.
Definition: src/osmscout/util/SunriseSunset.cpp:330
bool HasAnyFeaturesSet() const
Definition: Area.cpp:31
void SetFontName(const QString fontName)
Definition: QmlSettings.cpp:115
static const char *const NAME
Name of this feature.
Definition: ChargingStationFeature.h:90
Distance GetDistance() const
Definition: RoutingService.h:115
void TransformBoundingBox(const GeoBox &boundingBox, TransBuffer &buffer, const Projection &projection, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance, TransPolygon::OutputConstraint constraint=TransPolygon::noConstraint)
Transform form geo to screen coordinates and (optionally) optimize the passed way with the given coor...
Definition: Transformation.cpp:669
std::vector< Point > Ring
Definition: PolygonCenter.cpp:63
bool operator==(const LineStyle &other) const
Definition: Styles.cpp:364
bool GetIndexAsLocation() const
Definition: TypeConfig.h:514
TypeInfo & SetMultipolygon()
An object is handled as multipolygon even though it may not have type=multipolygon set explicitly.
Definition: TypeConfig.h:578
bool currentRestricted
Current node is accessed from restricted way.
Definition: RoutingService.h:315
void TAGGREATERCOND(const std::string &tagName, TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:679
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: LocationInfoModel.cpp:132
Magnification(const MagnificationLevel &level) noexcept
Definition: Magnification.h:179
Point(uint8_t serial, const GeoCoord &coords)
Definition: Point.h:43
void SetLabelValue(int attribute, const LabelProviderRef &value) override
Definition: Styles.cpp:889
CmdLineAlternativeFlagArgParser(SetterFunction &&setter)
Definition: CmdLineParsing.cpp:150
static MagnificationLevel magClose
Definition: Magnification.h:156
std::future< T > StdFuture()
Definition: CancelableFuture.h:228
bool operator==(const FeatureValue &other) const override
Definition: MaxStayFeature.cpp:50
double Length() const
Get the length of this point (the norm).
Definition: shapes.h:106
char32_t GetCharacter() const
Definition: TextLoader.h:42
KeywordMap()
Definition: map/include/osmscoutmap/oss/Scanner.h:125
virtual ~StartStates()
Definition: map/include/osmscoutmap/oss/Scanner.h:94
Definition: OnlineTileProviderModel.h:82
Definition: StyleDescription.h:212
void AddFeatureToFilter(StyleFilter &filter, const std::string &featureName, const std::string &flagName, TypeInfoSet &resultTypes)
Definition: map/include/osmscoutmap/oss/Parser.h:174
uint8_t GetFrom() const
Definition: RouteDescription.h:650
void SetNodesDataMMap(bool mmap)
Definition: Database.cpp:63
Definition: Magnification.h:35
@ laneForwardThroughRight
uint32_t ReadUInt32()
Definition: FileScanner.cpp:969
void SetAddress(const std::string_view &address)
Definition: AddressFeature.h:51
void RemoveFromMap(Triangle *triangle)
static bool IsLowerByteSet(const unsigned char *bytes)
Definition: LoaderPNG.cpp:31
int col
Definition: map/include/osmscoutmap/oss/Scanner.h:51
void DrawGround(const Projection &projection, const MapParameter ¶meter, const FillStyle &style) override
(Optionally) fills the area with the given default color for ground.
Definition: MapPainterAgg.cpp:694
@ noConstraint
Definition: Transformation.h:192
std::string GetDebugString() const override
Definition: RouteDescription.cpp:334
~MapPainterSVG() override
Definition: MapPainterSVG.cpp:58
UTF8String & Append(codepoint u, utf8helper::Transform func=utf8helper::TransformNop)
Add character to the string.
Definition: utf8helper.cpp:212
QString shortDescription
Plain short description (translated already)
Definition: RouteStep.h:54
QList< FileDownloader * > jobs
Definition: FileDownloader.h:137
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: StyleFlagsModel.h:65
MagnificationLevel(uint32_t level) noexcept
Definition: Magnification.h:43
virtual ~DataFile()
Definition: DataFile.h:158
LineStyle & SetDashes(const std::vector< double > &dashes)
Definition: Styles.cpp:283
void ReadOptimized(const TypeConfig &typeConfig, FileScanner &scanner)
Read the area as stored by WriteOptimized().
Definition: Area.cpp:323
Attribute
Definition: Styles.h:514
void CONSTCONDBLOCK(bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:634
AvailableVoice getVoice() const
Definition: VoiceManager.h:57
void AddWayLineStyle(const StyleFilter &filter, LinePartialStyle &style)
Definition: StyleConfig.cpp:970
FeatureValue * AllocateValue(void *buffer) override
Definition: AddressFeature.cpp:85
void ROUTESTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1659
bool delaunay_edge[3]
Flags to determine if an edge is a Delauney edge.
Definition: shapes.h:159
static const char *const POI_AT_ROUTE_DESC
Constant for a description of pois at the route (POIAtRouteDescription)
Definition: RouteDescription.h:90
size_t epoch
Definition: TileCache.h:77
std::vector< std::vector< TextStyleSelectorList > > TextStyleLookupTable
List of selectors.
Definition: StyleConfig.h:509
void Set(const FeatureValueBuffer &other)
Deletes the current feature values and assign the type and values of the passed featur evalue buffer.
Definition: TypeConfig.cpp:396
Distance distanceDelta
Estimate distance from previous route step.
Definition: RouteStep.h:86
ObjectVariantDataFile()
Definition: ObjectVariantDataFile.cpp:28
MotorwayChangeDescription(const NameDescriptionRef &fromDescription, const NameDescriptionRef &toDescription)
Definition: RouteDescription.cpp:357
std::string name
name of the POI
Definition: Location.h:124
ingroup Description
Definition: DescriptionService.h:194
QVector2D collect()
Definition: InputHandler.cpp:155
Triangle(Point &a, Point &b, Point &c)
Constructor.
bool GetIgnoreSeaLand() const
Definition: TypeConfig.h:657
ObjectFileRef object
The object (way/area) visited from the current route node.
Definition: RoutingService.h:229
static const std::string LABEL_KEY_NAME_NAME
Definition: DescriptionService.h:156
std::string LongDisplayString() const
Convert the bearing to a direction description in relation to the compass (8-points).
Definition: Bearing.cpp:62
Definition: AbstractRoutingService.h:192
OpenGLTextureRef GetTexture() const
Definition: TextLoader.h:50
GeoCoord center
Coordinate of the center of the displayed area.
Definition: Projection.h:48
void Connect(Slot< Args... > &slot)
Connect Signal to given Slot.
Definition: Signal.h:157
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: NameShortFeature.cpp:62
static double FromMeter(double m)
Definition: Distance.h:259
@ Exception
Definition: include/osmscout/ost/Parser.h:47
void failed(uint32_t zoomLevel, uint32_t x, uint32_t y, bool zoomLevelOutOfRange)
Result
Definition: StringMatcher.h:33
StyleModule(QThread *thread, DBThreadRef dbThread)
Definition: StyleModule.cpp:25
static const char *const NAME
Name of this feature.
Definition: FeeFeature.h:98
int GetY() const
Definition: Geometry.h:1183
AvailableMapsModelItem(const QString &name, const QStringList &path, const QString &description)
Definition: AvailableMapsModel.h:56
static const std::string LABEL_KEY_GEOMETRY_CELLLEVEL
Definition: DescriptionService.h:180
BatchMapPainterQt(size_t expectedCount)
Definition: MapPainterQt.cpp:1096
@ Error
Definition: map/include/osmscoutmap/oss/Parser.h:59
std::list< RouteEntry > & Entries()
Definition: RouteData.h:110
BorderStyle & SetWidth(double value)
Definition: Styles.cpp:655
Q_INVOKABLE QString file(int i) const
Definition: MapStyleModel.cpp:91
QString fontName
Definition: MapRenderer.h:104
@ RegionRole
Definition: SearchLocationModel.h:178
const Vertex2D & GetTopLeft() const
Definition: Styles.h:1066
void SimplifyTokenList(std::list< std::string > &tokens)
Definition: String.cpp:413
Definition: OSMScoutQt.h:238
void UINTCONSTDEF()
Definition: map/src/osmscoutmap/oss/Parser.cpp:732
std::string character
Definition: MapPainterSVG.h:66
bool IsInGroup(const std::string &groupName) const
Definition: TypeConfig.h:710
StyleFilter & SetTypes(const TypeInfoSet &types)
Definition: StyleConfig.cpp:198
bool IsTraversable() const
Definition: Path.h:61
bool moveNow(const QVector2D &vector)
Called from DragHandler or MultitouchHandler when gesture moves with map.
Definition: InputHandler.cpp:398
bool operator==(const Coord &coord) const
Definition: GroundTile.h:86
std::shared_ptr< RoundaboutEnterDescription > RoundaboutEnterDescriptionRef
Definition: RouteDescription.h:353
virtual void SetStringValue(int attribute, const std::string &value)=0
void SetLabelLineMinCharCount(size_t labelLineMinCharCount)
Definition: MapParameter.cpp:125
int64_t ReadInt64()
Definition: FileScanner.cpp:765
DBId(DatabaseId database, Id id)
Definition: DBFileOffset.h:50
virtual void OnMotorwayChange(const RouteDescription::MotorwayChangeDescriptionRef &motorwayChangeDescription, const RouteDescription::MotorwayJunctionDescriptionRef &motorwayJunctionDescription, const RouteDescription::DirectionDescriptionRef &directionDescription, const RouteDescription::DestinationDescriptionRef &crossingDestinationDescription)
Called if we already on a motorway and switch to another motorway.
Definition: RouteDescriptionPostprocessor.cpp:75
BrandFeatureValue(const std::string &name)
Definition: BrandFeature.h:39
bool Intersects(const ScreenRectMask &other) const
Definition: LabelLayouterHelper.cpp:92
AddressFeatureValue & operator=(const FeatureValue &other) override
Definition: AddressFeature.cpp:34
size_t GetNodeIndex() const
Definition: RoutingService.h:88
size_t GetWayPrio(const TypeInfoRef &type) const
Definition: StyleConfig.h:733
bool GetJunctions(const std::set< Id > &ids, std::vector< JunctionRef > &junctions)
Definition: RoutingDB.cpp:64
bool operator!=(const Lane &o) const
Definition: LaneAgent.cpp:49
void CONSTSECTION()
Definition: map/src/osmscoutmap/oss/Parser.cpp:212
RouteDataFile(size_t cacheSize)
Definition: RouteDataFile.cpp:26
unsigned int DecodeNumber(const char *buffer, N &number)
Definition: Number.h:294
const character charmap_e1_bd[]
Definition: utf8helper_charmap.cpp:2052
uint8_t GetBackwardLanes() const
Definition: LanesFeature.h:68
size_t from
Definition: Geometry.h:1191
PathSymbolStyle & SetDisplayOffset(double value)
Definition: Styles.cpp:1759
std::string GetOptionHint() const override
Definition: CmdLineParsing.cpp:282
void SetTexture(OpenGLTextureRef texture)
Definition: TextLoader.h:54
@ DrawAreaBorderSymbols
Definition: MapPainter.h:85
NameChangedDescription(const NameDescriptionRef &originDescription, const NameDescriptionRef &targetDescription)
Definition: RouteDescription.cpp:167
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: ColorFeature.cpp:26
QString name
Definition: IconLookup.h:53
double n
Definition: src/osmscout/util/SunriseSunset.cpp:60
Color GetColor() const
Definition: PublicTransport.h:238
Buffer(const unsigned char *buf, size_t len)
Definition: src/osmscout/ost/Scanner.cpp:114
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: LayerFeature.cpp:31
bool Init()
Definition: OSMScoutQt.cpp:85
uint32_t Get() const
Definition: Magnification.h:50
const TagRegistry & GetTagRegistry() const
Definition: TypeConfig.h:1142
Definition: LaneAgent.h:29
double getRouteLength() const
Route length in meters.
Definition: RoutingModel.cpp:177
CurrentSpeedMessage(const Timestamp ×tamp, double speed)
Definition: SpeedAgent.cpp:28
static const char *const NAME
Name of this feature.
Definition: WebsiteFeature.h:74
ObjectFileRef GetRef() const
Definition: LocationDescriptionService.h:83
bool HasCyclewayLaneRight() const
Definition: SidewayFeature.h:73
std::string GetPositionalHint(const std::string &positional) const override
Definition: CmdLineParsing.cpp:161
StyleAttributeType GetType() const
Definition: StyleDescription.h:124
void SetAccess(uint8_t access)
Definition: AccessFeature.h:57
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: BrandFeature.cpp:64
std::unordered_map< TagId, std::string > TagMap
Definition: Tag.h:41
static Color FromHexString(const std::string &hexString)
Convert the given color string to a color value.
Definition: Color.cpp:116
void FLAGSECTION()
Definition: map/src/osmscoutmap/oss/Parser.cpp:195
void Postprocess()
Definition: StyleConfig.cpp:920
PathSymbolStyle & SetSymbol(const SymbolRef &symbol)
Definition: Styles.cpp:1731
GeoCoord coord
Definition: IconLookup.h:46
Token()
Definition: src/osmscout/ost/Scanner.cpp:98
@ attrOffset
Definition: Styles.h:1230
bool GetConstrainedEdgeCW(Point &p)
void FlushCurrentBlockWithZeros(size_t blockSize)
Definition: FileWriter.cpp:1342
double Cross(const Point &a, const Point &b)
Perform the cross product on two vectors. In 2D this produces a scalar.
Definition: shapes.h:267
Logger::Line Info()
Definition: Logger.cpp:118
@ vehicleBicycle
Definition: OSMScoutTypes.h:57
static const char *const NAME_LABEL
Name of the "name" label.
Definition: NetworkFeature.h:77
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:1483
Producer(ProcessingQueue< E > &outQueue)
Definition: Worker.h:119
const Magnification & GetPatternMinMag() const
Definition: Styles.h:341
ElevationService(DataLoader &dataLoader, MagnificationLevel loadTileMag=Magnification::magSuburb)
Definition: ElevationService.h:57
void SetStringValue(int attribute, const std::string &value) override
Definition: Styles.cpp:1583
NameDescriptionRef GetFromDescription() const
Definition: RouteDescription.h:448
void SetY(double y)
Definition: Pixel.h:213
bool valid
Definition: AvailableMapsModel.h:42
FeatureValue * AllocateValue(size_t idx)
Definition: TypeConfig.cpp:477
TypeInfoRef GetRelationType(const TagMap &tagMap) const
Return a relation type (or an invalid reference if no type got detected) based on the given map of ta...
Definition: TypeConfig.cpp:1092
virtual void onDatabaseLoaded(osmscout::GeoBox boundingBox)
Definition: TiledMapRenderer.cpp:227
StyleMapAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:313
Definition: MapRenderer.h:86
Definition: DataTileCache.h:456
~OverlayWay() override
Definition: OverlayObject.cpp:205
void writtenBytes(uint64_t sz)
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: DestinationFeature.cpp:29
std::string GetName() const override
Returns the name of the feature.
Definition: OpeningHoursFeature.cpp:66
void objectsLoaded(const LocationEntry &, const QList< LookupModule::ObjectInfo > &objects)
WayRef GetWay() const
Definition: SimpleRoutingService.h:85
bool CanRouteForward(Vehicle vehicle) const
Definition: AccessFeature.h:112
static const uint8_t typeArea
Condition applies to areas.
Definition: TypeConfig.h:76
Vertex2D(double x, double y)
Definition: Pixel.h:114
void SemErr(const char *msg)
Definition: src/osmscout/ost/Parser.cpp:58
bool GetShowAltLanguage() const
Definition: QmlSettings.cpp:127
QString name
Definition: OverlayObject.h:52
NavigationModule * MakeNavigation()
Definition: OSMScoutQt.cpp:474
@ capSquare
Definition: Styles.h:81
@ BearingRole
Definition: NearPOIModel.h:91
static const Color SILVER
Definition: Color.h:48
const GeoCoord currentPosition
Definition: Agents.h:36
Id GetCurrentNodeId() const
Definition: RouteData.h:57
constexpr int X_STEP_1
Definition: ReadWriteLock.cpp:40
bool operator!=(const FillStyle &other) const
Definition: Styles.cpp:508
TiledMapRenderer(QThread *thread, SettingsRef settings, DBThreadRef dbThread, QString iconDirectory, QString tileCacheDirectory, size_t onlineTileCacheSize, size_t offlineTileCacheSize)
Definition: TiledMapRenderer.cpp:34
LayerFeatureValue & operator=(const FeatureValue &other) override
Definition: LayerFeature.cpp:36
DataFile(const std::string &datafile, size_t cacheSize)
Definition: DataFile.h:151
virtual const LanesFeatureValueReader & GetLaneReader(const DatabaseId &dbId) const =0
uint16_t y
Definition: GroundTile.h:63
std::string GetAddress() const
Definition: AddressFeature.h:56
void SetUnits(const QString units)
Definition: QmlSettings.cpp:139
WayRef contour
Definition: ElevationService.h:46
@ INFO
Definition: Logger.h:54
Distance & operator-=(const Distance &d)
Definition: Distance.h:81
~Sweep()
Destructor - clean up memory.
std::string GetRef() const
Definition: PublicTransport.h:147
TypeInfoSet routeTypes
Definition: MapService.h:107
int GetNodeCount() const
Definition: RouteDescription.h:685
std::list< IconStyleSelector > IconStyleSelectorList
Definition: StyleConfig.h:532
std::string GetDebugString() const override
Definition: RouteDescription.cpp:365
FeatureValue * AllocateValue(void *buffer) override
Definition: PhoneFeature.cpp:85
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: PostalCodeFeature.cpp:79
void CloseFailsafe()
Definition: HTMLWriter.cpp:81
FeatureValue * GetValue(const FeatureValueBuffer &buffer) const
Definition: FeatureReader.cpp:53
virtual ~AsyncWorker()
Definition: AsyncWorker.cpp:35
void Set(const FileOffset &offset, const RefType &type)
Definition: ObjectRef.h:189
QString style
Definition: MapStyleModel.h:38
static uint32_t worldRes(uint32_t level)
world resolution on given zoom level in OSM tiles
Definition: OSMTile.h:93
GeoBox boundingBox
Definition: SRTM.h:47
void WAYGROUP(size_t priority)
Definition: map/src/osmscoutmap/oss/Parser.cpp:405
QString getLaneTurn() const
Definition: NavigationModel.h:222
bool limitReached
Definition: LocationService.h:256
Definition: RouteDescription.h:387
Definition: NumberSet.h:38
Definition: StyleDescription.h:310
std::unordered_map< DBId, OpenListRef > OpenMap
Definition: RoutingService.h:388
unsigned long GetNodeDataCacheSize() const
Definition: Database.cpp:98
void FLAGDEF()
Definition: map/src/osmscoutmap/oss/Parser.cpp:299
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: NetworkFeature.cpp:24
@ Text
Definition: LabelLayouter.h:63
double GetLabelLayouterOverlap() const
Definition: MapParameter.h:344
QmlVehicle vehicle
Definition: QmlRoutingProfile.h:44
double scale
Definition: MercatorProjection.h:50
LookupModule(QThread *thread, DBThreadRef dbThread)
Definition: LookupModule.cpp:31
bool Read(FileScanner &scanner)
Definition: Intersection.cpp:32
bool IsAreaSubOfArea(const std::vector< N > &a, const std::vector< M > &b)
Definition: Geometry.h:613
void onRouteComputed(QtRouteData route, int requestId)
Definition: RoutingModel.cpp:106
static GeoCoord GetCoordFromId(Id id)
Definition: Point.cpp:47
void error(QString error_text, bool recoverable)
static constexpr std::chrono::seconds DownloadReadTimeout
Download read timeout in seconds.
Definition: FileDownloader.h:45
std::string GetLabel(const FeatureValueBuffer &buffer) const
Returns the label of the given object.
Definition: FeatureReader.h:292
QtRouteData(QObject *parent=nullptr)
Definition: QtRouteData.h:55
@ RegionRole
Definition: NearPOIModel.h:87
TileWayData & GetOptimizedWayData()
Return a read-write reference to the optimized way data.
Definition: DataTileCache.h:398
#define _PS_CONST_TYPE(Name, Type)
Definition: SSEMath.h:103
TypeInfo & CanRouteCar(bool canBeRoute)
If set to 'true', an object of this type can be traveled by car by default.
Definition: TypeConfig.h:442
Definition: StringMatcher.h:87
DayTime to
Definition: OpeningHours.h:63
void DrawLabel(const Projection &projection, const MapParameter ¶meter, const ScreenVectorRectangle &labelRectangle, const LabelData &label, const NativeLabel &layout)
Definition: MapPainterAgg.cpp:269
codepoint TransformCapitalize(const character *, int)
Definition: utf8helper.cpp:74
virtual ~MapService()
Definition: MapService.cpp:103
bool GetAreaByOffset(const DBFileOffset &offset, AreaRef &area) override
Definition: SimpleRoutingService.cpp:235
OSMScoutQtBuilder & WithSettingsStorage(QSettings *providedStorage)
Set custom settings storage.
Definition: OSMScoutQt.h:89
const character charmap_c4[]
Definition: utf8helper_charmap.cpp:298
size_t Size() const
Return the number of character of this string.
Definition: utf8helper.h:118
size_t GetSize() const
Returns the number of elements (end-start+1)
Definition: Transformation.h:463
static std::list< std::string > BuildStringListFromSubToken(const TokenStringRef &tokenString, const std::list< std::string > &tokens)
Return a list of token by removing tokenString from the given token list (tokens).
Definition: LocationService.cpp:1095
void AppendSectionLength(int length)
Definition: AbstractRoutingService.h:103
ObjectFileRef GetObjectFileRef() const
Definition: Area.h:256
TypeInfoRef value_type
Definition: TypeInfoSet.h:36
OSMTileId GetMax() const
Definition: Tiling.h:199
ObjectFileRef object
object used for lookup
Definition: LocationDescriptionService.h:362
static const Color FUCHSIA
Definition: Color.h:52
void SetDestinationLanes(const std::string_view &destinationForward, const std::string_view &destinationBackward)
Definition: LanesFeature.h:102
NumberSet()
Definition: NumberSet.cpp:26
Roles
Definition: AvailableVoicesModel.h:76
bool GeoToPixel(const GeoCoord &coord, Vertex2D &pixel) const override
Converts a geo coordinate to a pixel coordinate.
Definition: MercatorProjection.cpp:182
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: NameAltFeature.h:77
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: DestinationFeature.cpp:89
void WriteFileOffset(FileOffset offset)
Definition: FileWriter.cpp:542
Type
Definition: TurnRestriction.h:37
static const char *const LABEL
Name of the "opening hours" label.
Definition: OpeningHoursFeature.h:77
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: EleFeature.cpp:131
ShieldStyle & SetSize(double size) override
Definition: Styles.cpp:1056
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: NameShortFeature.cpp:87
virtual ~TileLoaderThread()
Definition: TiledMapOverlay.cpp:39
NextRouteInstructionsMessage(const Timestamp ×tamp, const RouteInstruction &nextRouteInstruction)
Definition: RouteInstructionAgent.h:46
QString fetchError
Definition: AvailableMapsModel.h:192
AddressFeatureValue(const std::string &address)
Definition: AddressFeature.h:45
const glm::mat4 & GetProjection() const
Definition: OpenGLMapData.h:393
Q_INVOKABLE bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex()) override
Definition: InstalledMapsModel.cpp:146
RenderMode GetRenderMode() const
Definition: Styles.h:1276
bool operator==(const FeatureValue &other) const override
Definition: AccessRestrictedFeature.cpp:45
Definition: LocationService.h:157
void SetMaximumAreaLevel(unsigned long maxAreaLevel)
Definition: MapService.cpp:34
int Index(const Point *p)
double vehicleMaxSpeed
Definition: RoutingProfile.h:203
bool Get(IteratorIn begin, IteratorIn end, size_t, std::unordered_map< Id, RouteNodeRef > &dataMap) const
Definition: RouteNodeDataFile.h:131
bool operator==(const OSMTileIdBoxConstIterator &other) const
Definition: Tiling.h:157
@ attrDisplayOffset
Definition: Styles.h:822
FileOffset regionOffset
Offset of this entry in the index.
Definition: Location.h:74
QString getLicense() const
Definition: Voice.h:90
double GetZ() const
Definition: Pixel.h:203
static const char *const NAME_LABEL
Name of the "name" label.
Definition: DestinationFeature.h:78
int GetStartYear() const
Definition: ConstructionYearFeature.h:51
Id GetBackId() const
Definition: Area.h:184
std::map< DatabaseId, std::string > GetDatabaseMapping() const override
Definition: MultiDBRoutingService.cpp:531
void DrawGlyphs(const Projection &projection, const MapParameter ¶meter, const osmscout::PathTextStyleRef &style, const std::vector< CairoGlyph > &glyphs)
Definition: MapPainterCairo.cpp:884
void Break() override
Stop the processing.
Definition: CancelableFuture.h:91
AbstractRoutingService(const RouterParameter ¶meter)
Definition: AbstractRoutingService.cpp:82
void SetOnlineTilesEnabled(bool b)
Definition: QmlSettings.cpp:61
bool Close()
Definition: OptimizeWaysLowZoom.cpp:118
osmscout::ScreenVectorRectangle GlyphBoundingBox(const NativeGlyph &glyph) const
Definition: MapPainterAgg.cpp:342
void coco_string_delete(char *&data)
Definition: src/osmscout/ost/Scanner.cpp:93
MemberCache GetResolvedMembers() const
Definition: Route.h:107
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:698
Definition: SearchModule.h:93
void reload()
Definition: VoiceManager.cpp:99
size_t pos
Definition: map/include/osmscoutmap/oss/Scanner.h:49
PathSymbolStyle & SetOffset(double value)
Definition: Styles.cpp:1766
TagId tagNatural
Definition: TypeConfig.h:1109
double height
Definition: Geometry.h:1470
FileDownloader(QNetworkAccessManager *manager, QString url, QString path, QObject *parent=nullptr)
Definition: FileDownloader.cpp:42
Node * bottom_node
Definition: sweep_context.h:101
Style
Definition: Styles.h:509
@ match
Definition: LocationService.h:231
cairo_surface_t * LoadPNG(const std::string &filename)
Definition: LoaderPNG.cpp:36
std::vector< SegmentGeoBox > segments() const
Definition: OverlayObject.cpp:158
@ Warning
Definition: map/include/osmscoutmap/oss/Parser.h:60
@ Warning
Definition: include/osmscout/ost/Parser.h:46
void SetMapDPI(double dpi)
Definition: QmlSettings.cpp:46
double labelPadding
Definition: LabelLayouter.h:282
@ PhoneRole
Definition: LocationInfoModel.h:78
Duration GetTime(const Area &area, const Distance &distance) const override
Definition: RoutingProfile.h:299
uint8_t dataOffsetBytes
Definition: AreaIndex.h:48
const character charmap_cd[]
Definition: utf8helper_charmap.cpp:901
FeatureValue * AllocateValue(void *buffer) override
Definition: GradeFeature.cpp:75
bool IsUsable(Vehicle vehicle) const
Definition: RouteNode.h:104
double GetR() const
Definition: Color.h:110
void TransformGeoToPixel(const Projection &projection, const C &nodes)
Transform the given source array of GeoCoords to DisplayPoints in the buffer.
Definition: Transformation.h:134
void SetFrom(const std::string_view &from)
Definition: FromToFeature.h:53
void CopyMissingValues(const FeatureValueBuffer &other)
Maintains the current values and types and copies over all not already set feature values of the pass...
Definition: TypeConfig.cpp:617
Cache(size_t maxSize)
Create a new cache object with the given max size.
Definition: Cache.h:140
void SetIntValue(int attribute, int value) override
Definition: Styles.cpp:630
IconStyle & SetSymbol(const SymbolRef &symbol)
Definition: Styles.cpp:1622
@ boolAnd
Definition: Tag.h:99
bool GetMaxSpeedFromAlias(const std::string &alias, uint8_t &maxSpeed) const
Definition: Tag.cpp:354
double getBearingRadians() const
Definition: VehiclePosition.h:98
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: WidthFeature.cpp:66
void setColorValue(Color &c)
Definition: OverlayObject.cpp:87
std::string GetCostString(double cost) const override
Textual representation of cost.
Definition: RoutingProfile.h:348
std::string GetValue() const
Definition: MaxStayFeature.h:55
bool GetOnlineTilesEnabled() const
Definition: QmlSettings.cpp:56
static const char *const NUMBER_LABEL
Name of the "number" label.
Definition: PhoneFeature.h:78
void BeforeDrawing(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterSVG.cpp:600
Definition: LayerFeature.h:30
virtual bool CanUseBackward(const Way &way) const =0
TypeInfo & AddCondition(unsigned char types, const TagConditionRef &condition)
Definition: TypeConfig.cpp:132
bool applyJunctionPenalty
Definition: QmlRoutingProfile.h:48
~OverlayObject() override
Definition: OverlayObject.cpp:64
static const Color GRAY
Definition: Color.h:49
QString type
Type of route step.
Definition: RouteStep.h:45
std::shared_ptr< NavigationMessage > NavigationMessageRef
Definition: Engine.h:56
Definition: Styles.h:1324
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: ChargingStationFeature.cpp:127
StopType
A halt can be of one of different types.
Definition: PublicTransport.h:50
Q_INVOKABLE double distance(double lat1, double lon1, double lat2, double lon2)
Definition: LocationInfoModel.cpp:369
double symbolScale
Potential magnification of the symbol.
Definition: MapPainter.h:204
void routingProgress(int percent)
@ Town
Definition: LookupModule.h:69
bool Intersects(const GeoBox &boundingBox) const
Returns true if the bounding box of the object intersects the given bounding box.
Definition: Area.h:300
virtual bool HasFlags() const
Returns 'true' if the feature provides flags.
Definition: TypeFeature.h:181
Q_INVOKABLE QmlRoutingProfile(QObject *parent=nullptr)
Definition: QmlRoutingProfile.cpp:26
bool HasConditions() const
Returns true, if there are any conditions bound to the type.
Definition: TypeConfig.h:334
bool IsAreaAtLeastPartlyInArea(const std::vector< N > &a, const std::vector< M > &b, const GeoBox &aBox, const GeoBox &bBox)
Definition: Geometry.h:570
const character charmap_f0_90_92[]
Definition: utf8helper_charmap.cpp:2545
bool GetDrawWaysWithFixedWidth() const
Definition: MapParameter.h:264
void SetMagnificationValue(int attribute, const Magnification &value) override
Definition: Styles.cpp:542
constexpr int IsPunctuation
Definition: utf8helper_charmap.h:34
void SetWidth(uint8_t width)
Definition: WidthFeature.h:44
std::string name
name of the location
Definition: Location.h:157
@ NameRole
Definition: AvailableVoicesModel.h:77
TextStyle & SetSlot(const std::string &slot)
Definition: Styles.cpp:900
void DOUBLE(double &value)
Definition: map/src/osmscoutmap/oss/Parser.cpp:594
@ PlayingState
Definition: VoicePlayer.h:41
const GeoCoord & GetCoord(size_t index) const
Definition: Area.h:192
void FlushCaches(const std::chrono::milliseconds &idleMs)
Definition: TiledMapOverlay.cpp:251
bool HasFeature(size_t featureIndex, const FeatureValueBuffer &buffer) const
Definition: StyleConfig.h:73
ingroup Description
Definition: DescriptionService.h:312
std::shared_ptr< LineStyle > LineStyleRef
Definition: Styles.h:281
void DrawGroundTiles(const Projection &projection, const MapParameter ¶meter, const std::list< GroundTile > &groundTiles, QPainter *painter)
Definition: MapPainterQt.cpp:1014
bool GetIndexAsAddress() const
Definition: TypeConfig.h:499
QDateTime getSunrise() const
Definition: client-qt/include/osmscoutclientqt/SunriseSunset.h:85
Helper template class for easy access to flag-like Features.
Definition: FeatureReader.h:39
BorderStyle & SetOffset(double value)
Definition: Styles.cpp:676
void ComputeSegmentBoxes(const std::vector< N > &path, std::vector< SegmentGeoBox > &segmentBoxes, size_t bound, size_t segmentSize=1000)
Helper for FindPathIntersections.
Definition: Geometry.h:1288
size_t GetPriority() const
Definition: Styles.h:761
void SetType(const TypeInfoRef &type)
Definition: Route.h:158
static int INITIAL_DATA_RENDERING_TIMEOUT
Definition: PlaneMapRenderer.cpp:35
Definition: Styles.h:1123
RoutingService()
Definition: RoutingService.cpp:93
Definition: RouteDescription.h:523
void GetRouteTypesWithMaxMag(const Magnification &maxMag, TypeInfoSet &types) const
Definition: StyleConfig.cpp:1091
Holder for voice metadata.
Definition: Voice.h:118
static const char *const FILENAME_LOCATION_IDX
Definition: LocationIndex.h:51
void SetLayer(int8_t layer)
Definition: LayerFeature.h:44
void CopyAttributes(const PathSymbolStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:1785
ScreenMask(size_t width, size_t height)
Definition: LabelLayouterHelper.cpp:113
bool isLockedToPosition() override
Definition: InputHandler.cpp:889
Definition: FileScanner.h:61
TileLoaderThread(QThread *thread)
Definition: TiledMapOverlay.cpp:31
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: PhoneFeature.cpp:31
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: MaxStayFeature.cpp:32
MapPainterCairo(const StyleConfigRef &styleConfig)
Definition: MapPainterCairo.cpp:261
GeoCoord coord
Definition: ElevationService.h:45
bool Open(const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedData)
Open the index file.
Definition: DataFile.h:214
@ carForward
Definition: AccessFeature.h:38
bool IsValidFor(const GeoCoord &coord) const override
Return true if given coordinate is valid for this projection.
Definition: MercatorProjection.h:80
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: ConstructionYearFeature.cpp:93
virtual ~BatchMapPainter()=default
RouteUpdateMessage(const Timestamp ×tamp, const RouteDescriptionRef &routeDescription, const osmscout::Vehicle &vehicle)
Definition: Agents.cpp:103
Definition: RoutePostprocessor.h:283
@ bicycleForward
Definition: AccessFeature.h:36
Definition: StyleDescription.h:292
Definition: RoutingModel.h:46
size_t columns
Definition: SRTM.h:49
const character charmap_e1_ba[]
Definition: utf8helper_charmap.cpp:1851
Definition: LabelPath.h:30
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: MapStyleModel.h:61
@ LangRole
Definition: InstalledVoicesModel.h:66
static const std::string LABEL_KEY_WAY_ACCESS_BICYCLE
Definition: DescriptionService.h:251
static CoordBuffer emptyCoordBuffer
Definition: Transformation.h:340
std::shared_ptr< TurnDescription > TurnDescriptionRef
Definition: RouteDescription.h:331
void finished(QString path)
static const std::string SUBSECTION_NAME_LOCATION_ADMINLEVEL
Definition: DescriptionService.h:199
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: LocationFeature.cpp:24
QVariant data(const QModelIndex &index, int role) const override
Definition: NavigationModel.cpp:264
Logger::Line Error()
Definition: Logger.cpp:136
void TriggerMapRenderingSignal(const MapViewStruct &request, size_t requestEpoch)
GradeFeatureValue & operator=(const FeatureValue &other) override
Definition: GradeFeature.cpp:34
bool HasPattern(const Projection &projection, const MapParameter ¶meter, const FillStyle &style)
Definition: MapPainterQt.cpp:171
@ ValidRole
Definition: InstalledVoicesModel.h:68
bool operator<(const Bearing &o) const
Definition: Bearing.h:119
void SetCostLimitDistance(const Distance &costLimitDistance)
seet SetCostLimitFactor()
Definition: RoutingProfile.cpp:74
Distance GetDistance(const GeoCoord &target) const
Get distance between two coordinates.
Definition: GeoCoord.cpp:374
bool GetResolveRouteMembers() const
Definition: MapService.cpp:54
int GetZIndex() const
Definition: Styles.h:213
void WriteLink(const std::string &url, const std::string &title)
Definition: HTMLWriter.cpp:300
Definition: PersistentCookieJar.h:98
std::vector< LabelInstanceType > allSortedLabels
Definition: LabelLayouter.h:288
void locationDescriptionFinished(const osmscout::GeoCoord location)
const TileId & operator*() const
Definition: TileId.h:223
double delta
Definition: src/osmscout/util/SunriseSunset.cpp:64
static const TagId tagIgnore
Definition: Tag.h:48
static double * CalculatePathSegmentLengths(cairo_path_t *path)
Calculate an array of double for the path, that contains the length of each path segment.
Definition: MapPainterCairo.cpp:46
@ attrBgColor
Definition: Styles.h:720
double GetLat() const
Definition: SearchLocationModel.h:227
const std::vector< ObjectFileRef > & GetObjects() const
Return the objects that intersect at the current node index.
Definition: RouteDescription.h:722
LocationWayDescription(const Place &way)
Definition: LocationDescriptionService.cpp:68
std::shared_ptr< RectanglePrimitive > RectanglePrimitiveRef
Definition: Styles.h:1084
static double FONT_HEIGHT_FACTOR
Height of the font in pixel in relation to the given fontSize.
Definition: MapPainterNoOp.cpp:24
std::vector< SegmentMember > members
Definition: Route.h:63
std::map< int, OverlayObjectRef > overlayObjectMap
Definition: MapRenderer.h:111
TypeId GetAreaId() const
Returns the unique id of this type.
Definition: TypeConfig.h:292
uint32_t ytile
Definition: TileCache.h:58
Definition: MapPainterCairo.h:62
size_t GetWarningCoordCountLimit() const
Definition: MapParameter.h:399
static GeoBox BoxByCenterAndRadius(const GeoCoord ¢er, const Distance &radius)
Return an GeoBox based on the center and the radius [meters] of a circle around the center.
Definition: GeoBox.cpp:134
void Read(const TypeConfig &typeConfig, FileScanner &scanner)
Read the area as written by Write().
Definition: Area.cpp:173
AreaRef GetArea() const
Definition: SimpleRoutingService.h:90
Data structure for holding temporary data about ways.
Definition: MapPainter.h:111
CmdLineArgParserRef CmdLineStringListOption(Args &&...args)
Definition: CmdLineParsing.h:268
MaxSpeedFeatureValueReader maxSpeedReader
Definition: RoutingProfile.h:194
uint32_t GetMaxX() const
Definition: TileId.h:281
void UnsetFeature(size_t idx)
Definition: Route.h:148
Parser(Scanner *scanner, const std::string &filename, TypeConfig &config)
Definition: src/osmscout/ost/Parser.cpp:880
int version
Definition: AvailableMapsModel.h:129
Definition: StringMatcher.h:75
NameFeature()
Definition: NameFeature.cpp:58
Definition: AreaAreaIndex.h:52
void lock()
Definition: ReadWriteLock.h:217
GPSUpdateMessage(const Timestamp ×tamp, const GeoCoord ¤tPosition, double currentSpeed, const Distance &horizontalAccuracy)
Definition: Agents.cpp:26
static StyleDescriptorRef GetDescriptor()
Definition: Styles.cpp:1678
AreaNodeIndexRef GetAreaNodeIndex() const
Definition: Database.cpp:444
@ attrDisplayWidth
Definition: Styles.h:88
RoutePosition GetRoutePosition() const
Definition: RoutingService.h:110
@ LabelRole
Definition: MapObjectInfoModel.h:51
std::shared_ptr< RoutePoints > RoutePointsRef
Definition: AbstractRoutingService.h:121
bool HasRoute() const
Definition: Navigation.h:139
void MarkNeighbor(Point *p1, Point *p2, Triangle *t)
LanesFeatureValue & operator=(const FeatureValue &other) override
Definition: LanesFeature.cpp:81
void SetLocation(const std::string_view &location)
Definition: LocationFeature.h:45
void SetBoolValue(int attribute, bool value) override
Definition: StyleConfig.h:381
std::string FloatToString(double value, const Locale &locale, uint32_t precision=3)
Returns locale-aware string representation of number.
Definition: String.cpp:97
DrawPrimitive(const FillStyleRef &fillStyle, const BorderStyleRef &borderStyle)
Definition: Styles.cpp:1438
MapRenderer(QThread *thread, SettingsRef settings, DBThreadRef dbThread, QString iconDirectory)
Definition: MapRenderer.cpp:29
@ LicenseRole
Definition: AvailableVoicesModel.h:80
bool IsEmpty() const
Return 'true' if no data for any type has been assigned.
Definition: DataTileCache.h:427
int8_t ReadInt8()
Definition: FileScanner.cpp:601
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: EleFeature.cpp:106
double getLon() const
Definition: VehiclePosition.h:83
const character * pagemap_16[32]
Definition: utf8helper_charmap.cpp:25
void SetProgress(const RoutingProgressRef &progress)
Definition: RoutingService.cpp:68
Definition: AreaNodeIndex.h:45
std::list< PathSymbolStyleSelector > PathSymbolStyleSelectorList
Definition: StyleConfig.h:538
int GetPos()
Definition: src/osmscout/ost/Scanner.cpp:135
Bearing operator*(const double &d) const
Definition: Bearing.h:87
void DrawIcon(const IconStyle *style, const Vertex2D ¢erPos, double width, double height) override
Draw the Icon as defined by the IconStyle at the given pixel coordinate (icon center).
Definition: MapPainterQt.cpp:650
double GetLat() const
Definition: NearPOIModel.h:152
std::string UnitStr() const override
Definition: Distance.h:218
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:105
virtual double GetFontHeight(const Projection &projection, const MapParameter ¶meter, double fontSize)=0
Returns the height of the font.
@ operatorLess
Definition: Parsing.h:33
NodeDescriptionTmpl nextWaypointDescription()
Definition: Navigation.h:169
size_t GetLimit() const
Definition: LocationService.cpp:303
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: PostalCodeFeature.cpp:31
~Token()
Definition: src/osmscout/ost/Scanner.cpp:109
Definition: LocationService.h:226
bool GetLocationOnlyMatch() const
Definition: LocationService.cpp:398
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: AvailableMapsModel.cpp:354
QString type
Definition: OverlayObject.h:48
Definition: DataAgent.h:30
bool CanUseForward(const RoutingProfile &profile, const DatabaseId &database, const WayRef &way) override
Definition: SimpleRoutingService.cpp:92
Orientation Orient2d(const Point &pa, const Point &pb, const Point &pc)
Formula to calculate signed area Positive if CCW Negative if CW 0 if collinear
Definition: utils.h:56
CoordBufferRange coordRange
Range of coordinates in transformation buffer.
Definition: MapPainter.h:119
static const std::string LABEL_KEY_COMMERCIAL_OPERATOR
Definition: DescriptionService.h:299
LayoutJob(const ScreenVectorRectangle &layoutViewport, const Projection &projection, const MapParameter ¶meter)
Definition: LabelLayouter.h:294
const TileAreaData & GetAreaData() const
Return a read-only reference to the area data.
Definition: DataTileCache.h:334
void AREABORDERTEXTSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1621
std::ostream & operator<<(std::ostream &stream, const DBId &o)
Definition: DBFileOffset.h:80
bool operator!=(const TypeInfoSet &other) const
Definition: TypeInfoSet.cpp:170
Definition: ObjectPool.h:33
Definition: AbstractRoutingService.h:144
void TAGANDCOND(TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:512
void SetBaselineY(long baselineY)
Definition: TextLoader.h:62
static double maxLat()
Definition: OSMTile.h:53
ScopeGuard(CB cb) noexcept(noexcept(std::move(cb)))
Definition: ScopeGuard.h:45
double GetCosts(const Distance &distance) const override
Estimated cost for distance when are no limitations (max.
Definition: RoutingProfile.h:343
MatchQuality poiMatchQuality
Definition: LocationService.h:246
Definition: Location.h:168
~StyleFlagsModel() override
Definition: StyleFlagsModel.cpp:48
Line & operator<<(unsigned int value)
Definition: Logger.h:170
RNode(const DBId &id, const RouteNodeRef &node, const ObjectFileRef &object, const DBId &prev, bool prevRestricted)
Definition: RoutingService.h:254
double mapDpi
Definition: MapRenderer.h:100
bool IsValid() const
Returns true, if the GeoBox instance is valid.
Definition: GeoBox.h:182
CmdLineParseResult Parse()
Definition: CmdLineParsing.cpp:444
bool Load(const std::string &path)
Load the bounding box data and return, if this operation was successful.
Definition: BoundingBoxDataFile.cpp:46
MapTileCache< T >::TRef GetTile(const TileKey &key) const
Return the tile with the given id.
Definition: MapTileCache.h:166
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: MapStyleModel.cpp:100
TagId tagDataPolygon
Definition: TypeConfig.h:1110
const character * pagemap_24_e2[]
Definition: utf8helper_charmap.cpp:2253
bool AreaIsSimple(std::vector< N > points)
Definition: Geometry.h:722
WayRef GetWay() const
Definition: Database.h:203
static const Color OLIVE
Definition: Color.h:54
const char * GetTypeName() const
Definition: ObjectRef.cpp:29
const character charmap_d5[]
Definition: utf8helper_charmap.cpp:1437
NodeRegionSearchResult LoadNodesInRadius(const GeoCoord &location, const TypeInfoSet &types, Distance maxDistance=Distance::Of< Meter >(100)) const
Load nodes of given types with maximum distance to the given coordinate.
Definition: Database.cpp:969
InitializeMessage(const Timestamp ×tamp)
Definition: Engine.cpp:29
Definition: include/osmscout/ost/Parser.h:37
LanesFeatureValueReader lanesReader
Value reader for the 'lanes' feature.
Definition: MapPainter.h:262
void SetTo(OSMId to)
Definition: TurnRestriction.h:89
Label(Args &&... args)
Definition: LabelLayouter.h:132
void Clear()
Definition: ObjectPool.h:100
Definition: DestinationFeature.h:66
void SetDebugData(bool debug)
Definition: MapParameter.cpp:240
void AddTagValue(const std::string &tagValue)
Definition: Tag.cpp:181
Definition: Location.h:258
Duration GetTime() const
Time from the start of the route in h.
Definition: RouteDescription.h:781
static const double GRAD_TO_RAD
Definition: OSMTile.h:42
void currentSpeed(double currentSpeedKmPH)
static const char *const TEXT_REGION_DAT
Definition: TextSearchIndex.h:43
RoutingResult CalculateRoute(RoutingState &state, const RoutePosition &start, const RoutePosition &target, const std::optional< osmscout::Bearing > &bearing, const RoutingParameter ¶meter)
Calculate a route.
Definition: AbstractRoutingService.cpp:992
static const std::string LABEL_KEY_WAY_ROUNDABOUT
Definition: DescriptionService.h:230
uint32_t GetHeight() const
Definition: Tiling.h:229
static uint32_t GetDatabaseFileFormatVersion(const std::string &path)
Definition: Database.cpp:195
@ timeRole
Definition: RouteStep.h:75
void COLOR(Color &color)
Definition: map/src/osmscoutmap/oss/Parser.cpp:799
Definition: RouteDataFile.h:34
QmlSettings()
Definition: QmlSettings.cpp:25
uint32_t GetHeight() const
Definition: TileId.h:301
@ capRound
Definition: Styles.h:80
MapPainterNoOp(const StyleConfigRef &styleConfig)
Definition: MapPainterNoOp.cpp:27
Distance elevation
Definition: ElevationService.h:44
uint32_t GetMinY() const
Definition: TileId.h:286
QObject * getRoute() const
Definition: RoutingModel.h:173
CancelableFuture< T > Future() const
Definition: CancelableFuture.h:123
PathTextStyle & SetDisplayOffset(double value)
Definition: Styles.cpp:1385
void SetValue(Fee fee)
Definition: FeeFeature.h:56
static Locale ByEnvironment()
Creates Locale defined by current environment.
Definition: Locale.h:115
void CONSTBLOCK(bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:623
@ none
Definition: Transformation.h:185
virtual void onMapDPIChange(double dpi)
Definition: MapRenderer.cpp:100
uint32_t GetCount() const
Definition: Tiling.h:234
CoordBufferRange coordRange
Range of coordinates in transformation buffer.
Definition: MapPainter.h:184
void failed(QString error)
virtual void ReportTag(const ObjectOSMRef &object, const TagMap &tags, const std::string &error)=0
TagConditionRef condition
The root condition.
Definition: TypeConfig.h:97
void InvalidateCache()
Mark all tiles as in cache as "incomplete".
Definition: DataTileCache.cpp:90
FeatureValue * AllocateValue(void *buffer) override
Definition: AccessFeature.cpp:95
PathShieldStyle()
Definition: Styles.cpp:1128
@ refWay
Definition: ObjectRef.h:143
@ stop
Stop.
Definition: Location.h:104
std::shared_ptr< SuggestedLanesPostprocessor > SuggestedLanesPostprocessorRef
Definition: RoutePostprocessor.h:485
BrandFeatureValue & operator=(const FeatureValue &other) override
Definition: BrandFeature.cpp:35
double GetDisplayOffset() const
Definition: Styles.h:178
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: OpeningHoursModel.cpp:150
OSMScoutQtBuilder & AddMapProviders(const QString &mapProviders)
Definition: OSMScoutQt.h:101
MatchQuality addressMatchQuality
Definition: LocationService.h:248
void sin_cos_pd(double x, double &res_sin, double &res_cos)
Definition: SSEMath.h:227
bool isReady() const
Definition: client-qt/include/osmscoutclientqt/SunriseSunset.h:80
ConstructionYearFeatureValue & operator=(const FeatureValue &other) override
Definition: ConstructionYearFeature.cpp:38
ElevationModule * MakeElevationModule()
Definition: OSMScoutQt.cpp:425
static const Color RED
Definition: Color.h:44
OffsetRel ParseForwardTurnStringToOffset(LaneTurn turn)
Definition: Styles.cpp:41
bool operator==(const FeatureValue &other) const override
Definition: FeeFeature.cpp:50
const TileNodeData & GetNodeData() const
Return a read-only reference to the node data.
Definition: DataTileCache.h:318
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:570
bool operator<(const TileKey &other) const
Compare tile ids by their order.
Definition: TileId.cpp:204
size_t GetTypeCount() const
Returns the number of types available.
Definition: TypeConfig.h:1252
void WIDTHCONSTDEF()
Definition: map/src/osmscoutmap/oss/Parser.cpp:756
static double RoundUp(double value)
Definition: MapPainter.cpp:2559
Index selectors by type and level.
Definition: StyleConfig.h:551
RouteWayResult()
Definition: AbstractRoutingService.cpp:70
StringMatcherTransliterate(const std::string &pattern)
Definition: StringMatcher.cpp:55
Definition: CmdLineParsing.h:96
static const size_t URL_LABEL_INDEX
Index of the 'url' label.
Definition: WebsiteFeature.h:80
void SetWarningCoordCountLimit(size_t limit)
Definition: MapParameter.cpp:255
double Value(const class Distance &d) const override
Definition: Distance.h:306
bool IsOpen() const
Definition: FileScanner.h:193
const character charmap_d0[]
Definition: utf8helper_charmap.cpp:1102
void tick()
Definition: IconAnimation.cpp:82
double contourLabelOffset
Definition: LabelLayouter.h:52
const std::vector< TypeInfoRef > & GetTypes() const
Return an array of the types available.
Definition: TypeConfig.h:1186
@ StateRole
Definition: AvailableVoicesModel.h:84
static const char *const FILE_WAYSOPT_DAT
Definition: OptimizeWaysLowZoom.h:42
double pixelSize
Size of a pixel in meter.
Definition: Projection.h:57
CDT(const std::vector< Point * > &polyline)
Constructor - add polyline with non repeating points.
FromToFeature()
Definition: FromToFeature.cpp:60
int8_t GetLayer() const
Definition: LayerFeature.h:49
virtual void InvalidateVisualCache()
Definition: TiledMapRenderer.cpp:159
TypeInfo & SetIndexAsAddress(bool indexAsAddress)
Set, if an object of this type should be indexed as an address.
Definition: TypeConfig.h:492
ConsoleLogger()
Definition: LoggerImpl.cpp:114
void PushTask(const T &task)
Push a copy of the given data into the queue.
Definition: ProcessingQueue.h:114
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: NameFeature.cpp:29
TileAreaData & GetOptimizedAreaData()
Return a read-write reference to the optimized area data.
Definition: DataTileCache.h:406
virtual std::string GetName() const =0
Returns the name of the feature.
SRTM(const std::string &path)
Definition: SRTM.cpp:46
static const std::string LABEL_KEY_WAY_SIDEWAYS_CYCLELANE
Definition: DescriptionService.h:245
LabelLayouter(TextLayouter *textLayouter)
Definition: LabelLayouter.h:239
Id GetId(size_t index) const
Definition: Area.h:174
double GetSize() const
Returns the size of the screen box (width*height).
Definition: ScreenBox.h:123
uint16_t x
Definition: GroundTile.h:62
void SetRouterDataMMap(bool mmap)
Definition: Database.cpp:58
OSMScoutQtBuilder & AddCustomPoiType(const QString &typeName)
Definition: OSMScoutQt.h:143
void WriteHeader(const std::string &title, const std::string &description, const std::string &keywords, const std::string &stylesheetLocation)
Definition: HTMLWriter.cpp:138
std::shared_ptr< DestinationDescription > DestinationDescriptionRef
Definition: RouteDescription.h:495
std::string Sanitize(const std::string &string) const
Definition: HTMLWriter.cpp:95
Definition: LabelLayouterHelper.h:38
LineStyleRef lineStyle
Line style.
Definition: MapPainter.h:116
int getSuggestedLaneTo() const
Definition: NavigationModel.h:217
void ClearSectionLengths()
Definition: AbstractRoutingService.h:108
uint8_t flags
Certain flags.
Definition: RouteNode.h:102
bool isLoading() const
Definition: AvailableMapsModel.h:242
double AngleDiff(double a, double b)
Definition: Geometry.h:84
uint8_t vehicleRouteNodeBit
Definition: RoutingProfile.h:197
void InvalidateTileCache()
Mark all tiles in cache as incomplete, while keeping all data and type information stored in it.
Definition: MapService.cpp:170
WidthFeatureValue(uint8_t width)
Definition: WidthFeature.h:38
@ attrLabel
Definition: Styles.h:517
std::string GetName() const
Definition: ObjectRef.cpp:24
LineStyle & SetPreferColorFeature(bool value)
Definition: Styles.cpp:233
bool isLaneSuggested() const
Definition: NavigationModel.h:207
Definition: TypeConfig.h:94
bool IsLinearInterpolationEnabled() const
Definition: TileProjection.h:117
std::string GetName() const
Definition: LocationDescriptionService.h:88
SuggestedLanesPostprocessor(const Distance &distanceBefore=Meters(500))
Definition: RoutePostprocessor.h:446
void Update(const Timestamp &time, const GeoCoord &position, const Distance &horizontalAccuracy)
Definition: PositionAgent.cpp:79
List model with voices available by configured providers (see Settings::GetVoiceProviders).
Definition: AvailableVoicesModel.h:56
double getDistanceDelta() const
Definition: RouteStep.h:152
bool operator==(const GeoBox &other) const
Definition: GeoBox.h:65
PolygonPrimitive(const FillStyleRef &fillStyle, const BorderStyleRef &borderStyle)
Definition: Styles.cpp:1446
double AngleAtLength(double offset) const
Definition: LabelPath.cpp:93
Errors * errors
Definition: include/osmscout/ost/Parser.h:101
void COLOR_VALUE(Color &color)
Definition: map/src/osmscoutmap/oss/Parser.cpp:2388
void DrawGlyphs(const Projection &projection, const MapParameter ¶meter, const osmscout::PathTextStyleRef style, const std::vector< AggGlyph > &glyphs)
Definition: MapPainterAgg.cpp:308
RouteDescriptionRef GetDescription() const
Definition: AbstractRoutingService.h:159
const character * pagemap_24_e1[]
Definition: utf8helper_charmap.cpp:1571
void SetDoubleValue(int attribute, double value) override
Definition: Styles.cpp:853
AreaRef GetArea() const
Definition: Database.h:250
void SetTo(const std::string &to)
Definition: PublicTransport.cpp:70
FileOffset GetFileOffset() const
Definition: Area.h:246
TypeInfo & CanRouteFoot(bool canBeRoute)
If set to 'true', an object of this type can be traveled by feet by default.
Definition: TypeConfig.h:425
Id GetId(size_t index) const
Definition: Way.h:128
static const std::string LABEL_KEY_WAY_LANES_TURNBACKWARD
Definition: DescriptionService.h:241
Definition: CmdLineParsing.h:333
bool paint(const Projection &projection, const MapParameter ¶meter, QPainter *painter)
Definition: MapPainterQt.cpp:1101
bool CanAccess() const
Definition: AccessRestrictedFeature.h:61
double GetLineMinWidthPixel() const
Definition: MapParameter.h:219
static const char *const NAME
Name of this feature.
Definition: NameShortFeature.h:73
TypeInfoRef typeInfoTileLand
Internal type for ground tiles of type "land".
Definition: TypeConfig.h:1116
static double ToMeter(double mile)
Definition: Distance.h:347
uint32_t GetAreaCount(const TypeInfo &type) const
Definition: TypeDistributionDataFile.h:85
std::vector< Glyph< NativeGlyph > > glyphs
Vector of glyphs of the label text (see text)
Definition: LabelLayouter.h:176
const character charmap_d3[]
Definition: utf8helper_charmap.cpp:1303
TypeConfigRef typeConfig
Definition: RoutingProfile.h:192
ScreenBox GetScreenBox() const
Return a ScreenBox instance for the screen.
Definition: Projection.h:231
Distance operator*(double factor) const
Definition: Distance.h:109
qint8 layer
Definition: OverlayObject.h:51
Definition: StopClock.h:36
QString typeName
Definition: OverlayObject.h:57
void DrawPolygon(const std::vector< Vertex2D > &polygonPixels) override
Definition: SymbolRendererQt.cpp:89
StartPostprocessor(const std::string &startDescription)
Definition: RoutePostprocessor.cpp:99
OSMScoutQtBuilder & WithIconDirectory(const QString &iconDirectory)
Definition: OSMScoutQt.h:155
QRecursiveMutex lock
Definition: MapRenderer.h:97
QString getAuthor() const
Definition: Voice.h:156
const storage_type & Data() const
Returns the characters contained in this string.
Definition: utf8helper.h:167
RouteStateAgent()
Definition: RouteStateAgent.cpp:54
Definition: InputHandler.h:470
Definition: MapPainterStatistics.h:35
const std::string & GetTo() const
Definition: FromToFeature.h:58
MotorwayLeaveDescription(const NameDescriptionRef &fromDescription)
Definition: RouteDescription.cpp:370
void SetStop(const ObjectFileRef &stop)
Definition: PublicTransport.cpp:30
Definition: OpenGLProjection.h:33
static const Color WHITE
Definition: Color.h:42
Definition: CmdLineParsing.h:226
bool operator==(const Pixel &other) const
Definition: Pixel.h:62
static double CalculatePointDistance(cairo_path_data_t *a, cairo_path_data_t *b)
Definition: MapPainterCairo.cpp:35
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: EmbankmentFeature.cpp:36
bool Evaluate(const TagMap &tagMap) const override
Definition: Tag.h:135
Definition: LocationIndex.h:48
bool Valid() const
Definition: ObjectRef.h:214
@ attrPosition
Definition: Styles.h:518
Definition: SpeedAgent.h:37
QString objectType
Definition: LocationEntry.h:52
WayDataFileRef GetWayDataFile() const
Definition: Database.cpp:384
std::vector< ObjectFileRef > ReadObjectFileRefs(size_t count)
Definition: FileScanner.cpp:2553
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: AddressFeature.cpp:90
@ partialMatch
Definition: StringMatcher.h:36
CmdLineArgParserRef CmdLineAlternativeFlag(Args &&...args)
Definition: CmdLineParsing.h:250
void STYLEFILTER_SIZE(StyleFilter &filter)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1189
Efficiently (in disk space handling) write a number of (sorted by file offset) ObjectFileRefs.
Definition: FileWriter.h:166
void removeOverlayObject(int id)
Definition: MapRenderer.cpp:186
void onJobFailed(QString errorMessage, bool recoverable)
Definition: FileDownloader.cpp:345
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: NameAltFeature.cpp:56
std::string GetName() const override
Returns the name of the feature.
Definition: EmbankmentFeature.cpp:31
double GetLon() const
Definition: InputHandler.h:215
TypeConfigRef typeConfig
Definition: DataAgent.h:32
bool IsLoaded() const
Definition: ObjectVariantDataFile.h:56
Definition: NameShortFeature.h:30
StyleFilter filter
Definition: StyleConfig.h:451
int roundaboutExit
when type is "leave-roundabout" this property indicate number of exit
Definition: RouteStep.h:57
virtual void BeforeDrawing(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterAgg.cpp:452
Definition: RouteDescription.h:438
std::optional< osmscout::Color > colorValue
Definition: OverlayObject.h:65
Definition: VoicePlayer.h:87
#define ARRAY2V2DF(name)
Definition: SSEMath.h:33
std::shared_ptr< OptimizeAreasLowZoom > OptimizeAreasLowZoomRef
Definition: OptimizeAreasLowZoom.h:116
@ DirRole
Definition: AvailableMapsModel.h:209
void SwapData()
Definition: OpenGLMapData.h:150
PathShieldStyle & SetBorderColor(const Color &color)
Definition: Styles.cpp:1239
bool Open()
Opens the routing service.
Definition: SimpleRoutingService.cpp:331
Distance Kilometers(double km)
Definition: Distance.h:362
Scanner(const unsigned char *buf, size_t len)
Definition: src/osmscout/ost/Scanner.cpp:158
PostalCodeFeature()
Definition: PostalCodeFeature.cpp:58
Definition: Location.h:186
void Reserve(size_t sz)
Attempts to allocate memory for at least sz characters.
Definition: utf8helper.h:130
void onLookupResult(int requestId, QList< osmscout::LocationEntry > locations)
Definition: NearPOIModel.cpp:157
Helper for rendering labels following some path.
Definition: LabelPath.h:43
bool CanRouteBicycle() const
Definition: AccessFeature.h:163
@ LabelRole
Definition: LocationInfoModel.h:68
QPoint screenCoord
Definition: IconLookup.h:44
static constexpr int MaxLatitude
Definition: GeoCoord.h:81
~AvailableMapsModel() override
Definition: AvailableMapsModel.cpp:113
void onError(const QString &err)
Definition: FileDownloader.cpp:161
void GetNodeTypesWithMaxMag(const Magnification &maxMag, TypeInfoSet &types) const
Definition: StyleConfig.cpp:1067
void dbInitialized(const osmscout::GeoBox &)
Definition: MapObjectInfoModel.cpp:68
Definition: AbstractRoutingService.h:165
PathSymbolStyle & SetOffsetRel(OffsetRel offsetRel)
Definition: Styles.cpp:1773
Result Match(const std::string &text) const override
Definition: StringMatcher.cpp:34
const int category
Definition: utf8helper_charmap.h:45
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: SidewayFeature.cpp:84
void SetLon(double lon)
Definition: SearchLocationModel.h:242
@ DrawWays
Definition: MapPainter.h:80
size_t GetFeatureCount() const
Definition: Area.h:120
CoordDataFile()
Definition: CoordDataFile.cpp:32
Distance operator-(const Distance &d) const
Definition: Distance.h:99
static uint32_t lon2tilex(double lon, uint32_t z)
Definition: OSMTile.h:69
bool Open(const TypeConfigRef &typeConfig, const std::string &path, bool memoryMapedData)
Definition: RouteNodeDataFile.cpp:63
uint32_t xtile
Definition: TileCache.h:57
virtual void SetBoolValue(int attribute, bool value)=0
Distance GetDistance() const
Return the distance to the location.
Definition: LocationDescriptionService.h:197
static bool ScanCoordinate(const std::string &text, size_t ¤tPos, double &value, size_t maxDigits)
Definition: GeoCoord.cpp:149
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:122
void SetThousandsSeparator(const std::string &separator)
Definition: Locale.h:90
bool CanBatch() const override
Definition: TileProjection.h:74
void Clear()
Definition: NumberSet.cpp:72
static std::vector< GLfloat > TriangulatePolygon(std::vector< osmscout::Point > points)
Triangulate a polygon without hole.
Definition: Triangulate.cpp:28
CoordBufferRange coordRange
Range of coordinates of the path in transformation buffer.
Definition: MapPainter.h:203
void ThreadAssert() const
Definition: AsyncWorker.h:67
virtual ~OSMScoutQtBuilder()
Definition: OSMScoutQt.cpp:81
Definition: LabelLayouter.h:88
friend Database
Definition: Database.h:225
static const char * valueChar
Definition: MapPainterSVG.cpp:37
TypeInfo & SetType(const std::string &name)
The the name of this type.
Definition: TypeConfig.cpp:125
Definition: DataAgent.h:71
GeoBox ReadBox()
Definition: FileScanner.cpp:2514
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: MapStyleModel.cpp:129
Definition: LabelLayouterHelper.h:73
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: OpeningHoursModel.cpp:116
double shieldGridSizeHoriz
Width of a cell for shield label placement.
Definition: MapPainter.h:276
OSMId GetFrom() const
Definition: TurnRestriction.h:74
FileOffset objectOffset
Node data offset of the alias.
Definition: Location.h:71
std::string GetArgumentName() const
Definition: CmdLineParsing.cpp:122
#define OSMSCOUT_NOEXCEPT
Definition: Exception.h:37
std::shared_ptr< BasemapDatabase > BasemapDatabaseRef
Reference counted reference to an Database instance.
Definition: BasemapDatabase.h:88
void GRADES()
Definition: src/osmscout/ost/Parser.cpp:181
MagnificationLevel & operator+=(uint32_t increment)
Definition: Magnification.h:71
void init()
Definition: TiledMapOverlay.cpp:49
bool GetRoutesByOffset(const OffsetsCol &offsets, DataCol &routes) const
Definition: Database.h:455
int GetVerticesNumber()
Definition: OpenGLMapData.h:279
AdminRegionRef GetDefaultAdminRegion() const
Definition: LocationService.cpp:298
static std::optional< OpeningHours > Parse(const std::string &str, bool explicitClosedDays=false)
Parse OSM opening hours string.
Definition: OpeningHours.cpp:174
MoveAccumulator & operator+=(const QPointF p)
Definition: InputHandler.cpp:143
std::map< int, OverlayObjectRef > getOverlayObjects() const
Definition: MapRenderer.cpp:210
std::string GetOptionHint() const override
Definition: CmdLineParsing.cpp:133
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:672
virtual bool CanBatch() const =0
TileIdBox tileBox
Definition: AreaIndex.h:51
Edge * constrained_edge
Definition: sweep_context.h:121
WaterIndexRef GetWaterIndex() const
Definition: BasemapDatabase.cpp:85
TypeInfoRef GetRingType(const Ring &ring) const
Definition: Area.h:266
bool IsAreaSubOfAreaOrSame(const std::vector< N > &a, const std::vector< M > &b)
Definition: Geometry.h:677
void WAYSTYLEDEF(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1313
std::string GetName() const override
Returns the name of the feature.
Definition: ColorFeature.cpp:69
@ attrTextColor
Definition: Styles.h:519
void AddAreaBorderTextStyle(const StyleFilter &filter, PathTextPartialStyle &style)
Definition: StyleConfig.cpp:1034
@ PathRole
Definition: AvailableMapsModel.h:208
NameFeatureValueReader nameReader
Attribute readers.
Definition: MapPainter.h:256
std::string GetNameShort() const
Definition: NameShortFeature.h:49
@ none
Definition: LocationService.h:233
@ TypeRole
Definition: LocationInfoModel.h:75
bool MoveUp(double pixel)
Definition: MercatorProjection.h:146
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: RefFeature.cpp:77
void requestObjects(const LocationEntry &, bool reverseLookupAddresses)
Definition: LookupModule.cpp:143
size_t GetCurrentNodeIndex() const
Definition: RouteDescription.h:714
Id GetBackId() const
Definition: Way.h:138
TargetDescription(const std::string &description)
Definition: RouteDescription.cpp:87
static const char *const TURN_DESC
Constant for a description of an explicit turn (TurnDescription)
Definition: RouteDescription.h:70
StyleConfig & config
Definition: map/include/osmscoutmap/oss/Parser.h:123
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: LayerFeature.cpp:81
double getLat() const
Definition: RouteStep.h:132
@ ShortDescriptionRole
Definition: RouteStep.h:65
bool DescribeLocationByPOI(const GeoCoord &location, LocationDescription &description, const Distance &lookupDistance=Distance::Of< Meter >(100), double sizeFilter=1.0)
Definition: LocationDescriptionService.cpp:1063
static const std::string LABEL_KEY_PAYMENT_FEE_CONDITION
Definition: DescriptionService.h:320
Definition: DestinationFeature.h:30
double getMaxPenalty() const
Definition: QmlRoutingProfile.cpp:188
unsigned int EncodeNumberSigned(N number, char *buffer)
Definition: Number.h:50
void TAGCONDITION(TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:414
virtual void RegisterRegularLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const std::vector< LabelData > &labels, const Vertex2D &position, double objectWidth)=0
Register regular label with given text at the given pixel coordinate in a style defined by the given ...
Definition: LocationDescriptionService.h:56
double penaltyDifferentType
Definition: QmlRoutingProfile.h:52
MapView * GetView() const
Definition: MapOverlay.h:64
ColorFeature()
Definition: ColorFeature.cpp:58
osmscout::ObjectFileRef ref
Definition: LocationInfoModel.h:38
std::string name
Name of the postal area.
Definition: Location.h:46
virtual void BeforeDrawing(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data)
Definition: MapPainter.cpp:284
static MagnificationLevel magCity
Definition: Magnification.h:153
bool IsCovered(const Pixel &tile) const
Definition: RouteNodeDataFile.cpp:202
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: OpeningHoursFeature.cpp:29
uint64_t InterleaveNumbers(uint32_t a, uint32_t b)
Definition: Number.cpp:24
bool operator!=(const MessageStruct &other) const
Definition: VoiceInstructionAgent.h:172
LineStyleRef GetCoastlineLineStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1502
LocationDescriptionService(const DatabaseRef &database)
LocationService constructor.
Definition: LocationDescriptionService.cpp:170
Definition: Exception.h:72
GeoBox bbox
Precomputed (cache) bounding box.
Definition: Area.h:108
void Legalize(Point &point)
double GetOverlayLabelPadding() const
Definition: MapParameter.h:299
QString GetIconDirectory() const
Definition: OSMScoutQt.cpp:499
@ capButt
Definition: Styles.h:79
StyleUDoubleAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:367
std::string GetDebugString() const override
Definition: RouteDescription.cpp:487
bool IsInitialized() const
Definition: TextLoader.h:101
Definition: TagErrorReporter.h:32
Node(DatabaseId database, size_t currentNodeIndex, const std::vector< ObjectFileRef > &objects, const ObjectFileRef &pathObject, size_t targetNodeIndex)
Definition: RouteDescription.cpp:419
MapPainterQt(const StyleConfigRef &styleConfig)
Definition: MapPainterQt.cpp:43
OptimizeAreasLowZoom()
Definition: OptimizeAreasLowZoom.cpp:38
void WriteDocumentStart()
Definition: HTMLWriter.cpp:124
std::string GetLabel(const Locale &, size_t) const override
Definition: FromToFeature.h:68
TypeInfo & AddDescription(const std::string &languageCode, const std::string &description)
Add a description of the type for the given language code.
Definition: TypeConfig.cpp:218
double DurationAsHours(Duration duration)
Definition: Time.h:39
CmdLineArgParserRef CmdLineNumberOption(Args &&...args)
Definition: CmdLineParsing.h:274
bool IsOpen() const
Definition: NumericIndex.h:331
PathShieldStyle & SetLabel(const LabelProviderRef &label)
Definition: Styles.cpp:1204
Definition: StyleConfig.h:60
std::promise< bool > promise
Definition: SearchModule.h:56
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: BridgeFeature.cpp:26
void SearchRequested(const QString searchPattern, int limit, osmscout::GeoCoord searchCenter, AdminRegionInfoRef defaultRegion, osmscout::BreakerRef breaker)
osmscout::RefType getObjectType() const override
Definition: OverlayObject.h:181
Exit
Definition: utf8helper.h:70
Helper class for calculating hash codes for VNode instances to make it usable in std::unordered_set.
Definition: RoutingService.h:375
@ TypeRole
Definition: NearPOIModel.h:86
@ attrLineColor
Definition: Styles.h:85
FeatureValueBufferRef GetObjectFeatures() const
Definition: Location.h:283
void UnsetFeature(size_t idx)
Definition: Area.h:137
Definition: RouteNode.h:61
void AREASTYLEDEF(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1330
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: RefFeature.cpp:72
virtual ~ObjectPool()
Definition: ObjectPool.h:59
std::string ResultString() const
Definition: StopClock.cpp:63
const double latConversionFactor
Definition: GeoCoord.cpp:29
static const char *const NAME
Name of this feature.
Definition: LanesFeature.h:141
const character * pagemap_32_f0_90[]
Definition: utf8helper_charmap.cpp:2533
void GetNodeTextStyleSelectors(size_t level, const TypeInfoRef &type, std::list< TextStyleSelector > &selectors) const
Methods for low level debugging access to the style sheet internals.
Definition: StyleConfig.cpp:1550
std::string GetDebugString() const override
Definition: RouteDescription.cpp:175
ViaDescription(int sectionNumber, int nodeCount)
Definition: RouteDescription.h:679
size_t Size() const
Definition: TypeInfoSet.h:173
Definition: AreaDataFile.h:34
SearchModule(QThread *thread, DBThreadRef dbThread, LookupModule *lookupModule)
Definition: SearchModule.cpp:97
GeoBox boundingBox
Bounding box of the area.
Definition: MapPainter.h:181
virtual void Read(FileScanner &scanner)=0
Read the value of the Feature from the FileScanner.
uint32_t GetMinX() const
Definition: TileId.h:276
std::string WStringToLocaleString(const std::wstring &text)
Definition: String.cpp:560
QString getFileName() const
Definition: FileDownloader.h:102
static const Color PURPLE
Definition: Color.h:51
static MagnificationLevel magDetail
Definition: Magnification.h:155
uint32_t GetMinX() const
Definition: Tiling.h:204
void RemoveNode(Node *node)
std::vector< NativeGlyph > glyphs
Definition: MapPainterAgg.h:56
std::string GetLabelKey() const
Definition: DescriptionService.h:89
Definition: RoundaboutFeature.h:30
unsigned long GetAreaAreaIndexCacheSize() const
Definition: Database.cpp:93
Q_INVOKABLE QModelIndex index(int row, int column=0, const QModelIndex &parent=QModelIndex()) const override
Definition: AvailableMapsModel.cpp:232
double angle
Definition: LabelPath.h:35
Definition: RoutePostprocessor.h:217
double GetContourLabelOffset() const
Definition: MapParameter.h:349
void styleFlagsRequested()
Cell getCentroidCell(const Polygon &polygon)
Definition: PolygonCenter.cpp:103
void listDownloaded(const VoiceProvider &provider, QNetworkReply *)
Definition: AvailableVoicesModel.cpp:113
VoiceSample
Definition: VoiceInstructionAgent.h:32
std::string GetDebugString() const override
Definition: RouteDescription.cpp:345
virtual ~OptimizeWaysLowZoom()
Definition: OptimizeWaysLowZoom.cpp:44
LocationStringSearchParameter(const std::string &searchString)
Definition: LocationService.cpp:286
GeoCoord PolygonCenter(const Area &area, double precision=1)
Definition: PolygonCenter.cpp:191
TapRecognizer()
Definition: InputHandler.h:84
NativeGlyph glyph
Definition: LabelLayouter.h:105
const OSMId & GetId() const
Definition: ObjectRef.h:98
LanesFeature()
Definition: LanesFeature.cpp:116
MaxAllowedSpeedMessage(const Timestamp ×tamp, double maxAllowedSpeed, bool defined)
Definition: SpeedAgent.cpp:34
double GetMeterInMM() const
Returns the number of on screen millimeters for one meter on the ground.
Definition: Projection.h:279
void SetAddressOnlyMatch(bool addressOnlyMatch)
Definition: LocationService.cpp:378
void cancel()
Definition: RoutingModel.cpp:160
bool DrawMap(const Projection &projection, const MapParameter ¶meter, const MapData &data, std::ostream &stream)
Definition: MapPainterSVG.cpp:1037
void ProcessLabelContourLabel(const ContourLabelType ¤tContourLabel, std::vector< ContourLabelType > &contourLabelInstances)
Definition: LabelLayouter.h:446
SymbolRendererQt(QPainter *painter)
Definition: SymbolRendererQt.cpp:27
bool IsAborted() const override
Return true, if the process was signaled to stop.
Definition: Breaker.cpp:29
#define POLY_EVAL3(y, x, coeff)
Definition: SSEMath.h:90
DBLoadJob(osmscout::MercatorProjection lookupProjection, unsigned long maximumAreaLevel, bool lowZoomOptimization, bool closeOnFinish=true)
Definition: DBLoadJob.cpp:25
double GetLon() const
Return the latitude value of the coordinate.
Definition: GeoCoord.h:124
int col
Definition: include/osmscout/ost/Scanner.h:51
bool GetUseMultithreading() const
Definition: MapService.cpp:74
QHash< int, QByteArray > roleNames() const override
Definition: MapStyleModel.cpp:118
UninitializedException(const std::string &objectName)
Definition: Exception.cpp:34
std::shared_ptr< TagBoolCondition > TagBoolConditionRef
Definition: Tag.h:120
TypeInfoRef GetType() const
Definition: Node.h:65
ObjectFileRef object
The object (way/area) visited from the current route node.
Definition: RoutingService.h:318
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: RefFeature.cpp:24
std::shared_ptr< LocationService > LocationServiceRef
Definition: LocationService.h:318
virtual void DrawPolygon(const std::vector< Vertex2D > &polygonPixels)=0
int GetLastCell() const
Return the index of the final, right-sided bit mask cell (containing x+width-1 coordinate of rectangl...
Definition: LabelLayouterHelper.h:161
Definition: DataAgent.h:51
std::string GetLabel(const Locale &, size_t) const override
Definition: NameFeature.h:55
bool operator==(const FeatureValue &other) const override
Definition: AccessFeature.cpp:45
void SetCoordDescription(const LocationCoordDescriptionRef &description)
Definition: LocationDescriptionService.cpp:104
@ ProcessAreas
Process (complex) areas for rendering.
Definition: MapPainter.h:72
Q_INVOKABLE bool deleteMap(int row)
Delete installed map represented this model on given row.
Definition: InstalledMapsModel.cpp:163
uint32_t GetLevel() const
Get the magnification level of the tile.
Definition: DataTileCache.h:302
std::vector< std::vector< PathSymbolStyleSelectorList > > PathSymbolStyleLookupTable
List of selectors.
Definition: StyleConfig.h:539
MapView * view
Definition: MapOverlay.h:40
QString type
Definition: IconLookup.h:52
void onProviderChanged(const OnlineTileProvider &newProvider)
Definition: TiledMapOverlay.cpp:81
StyleVoidAttributeDescriptor()
Definition: StyleDescription.h:143
Definition: RouteDescription.h:359
@ LastStep
Definition: MapPainter.h:92
bool invalidate(osmscout::GeoBox box=osmscout::GeoBox())
Definition: TileCache.cpp:266
std::string GetObjectName() const
Definition: Exception.cpp:45
std::vector< osmscout::ContoursData > LoadContours(const osmscout::GeoBox &box)
Definition: ElevationModule.cpp:64
virtual void OnTargetReached(const RouteDescription::TargetDescriptionRef &targetDescription)
Called once for the target node reached.
Definition: RouteDescriptionPostprocessor.cpp:43
virtual void onDatabaseLoaded(osmscout::GeoBox boundingBox)=0
void Invalidate()
Marks the tile as incomplete again, without actually clearing data and types.
Definition: DataTileCache.h:80
size_t GetEnd() const
THe index of the last element.
Definition: Transformation.h:454
static osmscout::GeoBox tileBoundingBox(uint32_t zoomLevel, uint32_t xtile, uint32_t ytile)
Definition: OSMTile.cpp:28
Distance GetDistanceFromStart()
Definition: Navigation.h:149
std::function< void(const std::string &)> AppendFunction
Definition: CmdLineParsing.h:168
void SetHeight(long height)
Definition: TextLoader.h:70
Abstract model item used in AvailableMapsModel.
Definition: AvailableMapsModel.h:39
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: MapDownloadsModel.cpp:114
void downloaded(uint32_t zoomLevel, uint32_t x, uint32_t y)
LocationFeatureValue(const std::string &location)
Definition: LocationFeature.h:39
QtSettingsStorage(QSettings *providedStorage=nullptr)
Definition: QtSettingsStorage.cpp:25
StyleEnumAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:240
std::string GetLabel(const Locale &, size_t) const override
Definition: NetworkFeature.h:55
double GetFontHeight(const Projection &projection, const MapParameter ¶meter, double fontSize) override
Returns the height of the font.
Definition: MapPainterQt.cpp:252
static const char *const CROSSING_DESTINATION_DESC
Constant for a description of a destination to choose at a junction.
Definition: RouteDescription.h:84
virtual Distance GetCostLimitDistance() const =0
QImage image
Definition: IconLookup.h:60
FeatureValue * AllocateValue(void *buffer) override
Definition: FromToFeature.cpp:86
~CDT()
Destructor - clean up memory.
void onDatabaseLoaded(QString dbPath, QList< osmscout::TileRef > tiles)
Definition: LookupModule.cpp:273
static const StyleDescriptorRef iconStyleDescriptor
Definition: Styles.cpp:1559
FileOffset objectOffset
Offset of the postal area data.
Definition: Location.h:47
bool IsVisible() const
Definition: Color.h:135
@ PostalCodeRole
Definition: LocationInfoModel.h:76
bool IsSet(const FeatureValueBuffer &buffer) const
Definition: FeatureReader.cpp:41
bool HasDashes() const
Definition: Styles.h:198
void coco_string_delete(char *&data)
Definition: map/src/osmscoutmap/oss/Scanner.cpp:92
static const Color DARK_YELLOW
Definition: Color.h:64
TypeInfo & CanBeArea(bool canBeArea)
If set to 'true', an area can be of this type.
Definition: TypeConfig.h:380
Definition: FromToFeature.h:92
static double tiley2lat(uint32_t y, uint32_t z)
Definition: OSMTile.h:84
TileIdBox(const TileId &a, const TileId &b)
Definition: TileId.cpp:209
Definition: NodeUseMap.h:50
bool touch(const QTouchEvent &event) override
Definition: InputHandler.cpp:688
std::vector< int > AddCharactersToTextureAtlas(std::string text, double size)
Add new characters to the texture atlas and returns its indices in the atlas.
Definition: TextLoader.cpp:41
DBThreadRef GetDBThread() const
Definition: OSMScoutQt.cpp:342
PathShieldStyleRef GetWayPathShieldStyle(const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1334
std::chrono::system_clock::time_point Timestamp
Definition: Time.h:27
BasemapDatabase instance initialization parameter to influence the behavior of the db instance.
Definition: BasemapDatabase.h:38
bool GetNodeIndexByNodeId(Id id, size_t &index) const
Definition: Area.cpp:42
size_t GetFeatureBit() const
return the index of this feature within the list of features of the type.
Definition: TypeFeature.h:264
bool InitContext(const std::string &shaderDir, const std::string &vertexShaderFileName, const std::string &fragmentShaderFileName, GLuint projectionShader)
Definition: OpenGLMapData.h:194
void DrawSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const Vertex2D &screenPos, double scaleFactor) override
Draw the Symbol as defined by the SymbolStyle at the given pixel coordinate (symbol center).
Definition: MapPainterNoOp.cpp:91
bool GetIndex(const FeatureValueBuffer &buffer, size_t &index) const
Returns the index of the Feature/FeatureValue within the given FeatureValueBuffer.
Definition: FeatureReader.h:89
RefFeatureValue(const std::string &ref)
Definition: RefFeature.h:39
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: AccessRestrictedFeature.cpp:54
bool operator==(const TileId &other) const
Compare tile ids for equality.
Definition: TileId.h:81
Roles
Definition: StyleFlagsModel.h:55
GeoBox GetBoundingBox() const
Return the boundingbox of the tile (shortcut for GetId().GetBoundingBox())
Definition: MapTileCache.h:231
Q_INVOKABLE QString stateStr(VoiceState state) const
Definition: AvailableVoicesModel.cpp:176
std::set< RNodeRef, RNodeCostCompare >::iterator OpenListRef
Definition: RoutingService.h:386
static const uint8_t usableByBicycle
This path can be traveled by bicycle.
Definition: RouteNode.h:65
void RECTANGLE(Symbol &symbol)
Definition: map/src/osmscoutmap/oss/Parser.cpp:477
void RegisterContourLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const PathLabelData &label, const LabelPath &labelPath) override
Register contour label.
Definition: MapPainterQt.cpp:887
double GetCostLimitFactor() const override
Definition: RoutingProfile.h:264
Q_INVOKABLE QVariant timeOfMap(const QStringList &path)
Generation time of map with given path.
Definition: InstalledMapsModel.cpp:168
bool GetOfflineMap() const
Definition: QmlSettings.cpp:85
std::vector< SegmentGeoBox > segments
Precomputed (cache) segment bounding boxes for optimisation.
Definition: Way.h:57
std::shared_ptr< RoundaboutLeaveDescription > RoundaboutLeaveDescriptionRef
Definition: RouteDescription.h:381
void SetStep(std::format_string< Args... > format, Args &&...args)
Definition: Progress.h:64
bool startRequestProcess(uint32_t zoomLevel, uint32_t x, uint32_t y)
Definition: TileCache.cpp:109
@ SizeRole
Definition: InstalledMapsModel.h:57
VoicePlayer(QObject *parent)
Definition: VoicePlayer.cpp:25
Definition: SearchModule.h:45
~OpenGLMapData()
Definition: OpenGLMapData.h:119
void DumpMapPainterStatistics(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data)
Definition: MapPainterStatistics.cpp:43
#define OSMSCOUT_MAP_QT_API
Definition: MapQtImportExport.h:45
void CopyMissingValues(const FeatureValueBuffer &buffer)
Definition: Area.h:211
static const std::string LABEL_KEY_GEOMETRY_COORDINATE
Definition: DescriptionService.h:177
std::string GetDebugString() const override
Definition: RouteDescription.cpp:441
GeoBox GetBoundingBox() const
Definition: Way.h:163
LocationDescriptionCandicate(const ObjectFileRef &ref, const std::string &name, const Distance &distance, const Bearing &bearing, const bool atPlace, const double size)
Definition: LocationDescriptionService.h:67
EleFeature()
Definition: EleFeature.cpp:96
void SetWayDataCacheSize(unsigned long size)
Definition: Database.cpp:43
LineStyle & SetWidth(double value)
Definition: Styles.cpp:248
static const char *const NAME_LABEL
Name of the "name" label.
Definition: PostalCodeFeature.h:77
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: ColorFeature.cpp:63
void HandleInitialRenderingRequest()
Definition: PlaneMapRenderer.cpp:534
bool GetByOffset(FileOffset offset, ValueType &entry) const
Read one data value from the given file offset.
Definition: DataFile.h:451
OverlayWay * getRouteWayAhead() const
Definition: NavigationModel.cpp:81
void SetIndexMMap(bool mmap)
Definition: Database.cpp:88
std::string GetPositionalHint(const std::string &positional) const override
Definition: CmdLineParsing.cpp:227
bool operator<(const FillStyle &other) const
Definition: Styles.cpp:513
void AddOption(const CmdLineArgParserRef &parser, const std::string &optionName, const std::string &helpString, bool stopParsing=false)
Definition: CmdLineParsing.cpp:345
std::vector< Platform > platforms
Definition: PublicTransport.h:139
void stylesheetFilenameChanged()
AreaRouteIndexRef GetAreaRouteIndex() const
Definition: Database.cpp:530
std::string GetDisplayString() const
Returns a textual representation of the place in.
Definition: Location.cpp:97
size_t GetFeatureCount() const
Definition: Node.h:88
@ attrBgColor
Definition: Styles.h:648
PathSymbolStyle & SetScale(double scale)
Definition: Styles.cpp:1745
osmscout::PathTextStyleRef style
Style for drawing the text of the label.
Definition: LabelLayouter.h:177
static const Color MAROON
Definition: Color.h:50
WebsiteFeatureValue(const std::string &website)
Definition: WebsiteFeature.h:38
LineStyle & SetGapColor(const Color &color)
Definition: Styles.cpp:226
Definition: TypeFeature.h:40
const std::vector< TypeInfoRef > & GetWayTypes() const
Returns an array of (ignore=false) the way types available.
Definition: TypeConfig.h:1207
std::vector< Triangle * > GetTriangles()
Definition: OptimizeAreasLowZoom.h:43
virtual double GetCostLimitFactor() const =0
static const std::string LABEL_KEY_PRESENCE_MAXSTAY_VALUE
Definition: DescriptionService.h:361
Line Debug()
Start logging a line of debug output.
Definition: Logger.cpp:79
LineStyle & SetEndCap(CapStyle endCap)
Definition: Styles.cpp:276
std::list< ShieldStyleSelector > ShieldStyleSelectorList
Definition: StyleConfig.h:514
FeatureValue * AllocateValue(void *buffer) override
Definition: MaxSpeedFeature.cpp:78
FeatureValueReader< NameFeature, NameFeatureValue > NameFeatureValueReader
Definition: NameFeature.h:97
bool PixelToGeo(double x, double y, GeoCoord &coord) const override
Converts a pixel coordinate to a geo coordinate.
Definition: MercatorProjection.cpp:158
#define POLY_EVAL6(y, x, coeff)
Definition: SSEMath.h:92
std::string GetOptionHint() const override
Definition: CmdLineParsing.cpp:222
size_t NumberDigits(const N &number, size_t base=10)
Definition: String.h:102
std::shared_ptr< LocationWayDescription > LocationWayDescriptionRef
Definition: LocationDescriptionService.h:205
Definition: RouteDescription.h:337
bool operator>(const MagnificationLevel &other) const
Definition: Magnification.h:103
@ attrBorderColor
Definition: Styles.h:649
const std::vector< LabelInstanceType > & Labels() const
Definition: LabelLayouter.h:882
const osmscout::RouteDescription & routeDescription() const
Definition: QtRouteData.cpp:74
void downloadNextFile()
Definition: FileDownloader.cpp:378
std::string GetName() const override
Returns the name of the feature.
Definition: SidewayFeature.cpp:74
TypeInfo & SetPinWay(bool pinWay)
Definition: TypeConfig.h:620
IconStyle & SetOverlay(bool overlay)
Definition: Styles.cpp:1671
virtual void onUnitsChanged(const QString &)
Definition: MapRenderer.cpp:150
static const Color LUCENT_WHITE
Definition: Color.h:69
uint qHash(const TileCacheKey &key)
Definition: TileCache.cpp:35
std::vector< std::vector< PathShieldStyleSelectorList > > PathShieldStyleLookupTable
List of selectors.
Definition: StyleConfig.h:521
bool IsSet(const TypeInfoRef &type) const
Definition: TypeInfoSet.h:160
PathShieldStyle & SetPriority(size_t priority)
Definition: Styles.cpp:1211
double scaleGradtorad
Precalculated scale*Gradtorad.
Definition: MercatorProjection.h:51
std::string GetSubsectionKey() const
Definition: DescriptionService.h:85
FileOffset GetNextFileOffset() const
Definition: Way.h:68
Definition: MapTileCache.h:39
size_t GetFeatureValueBufferSize() const
Returns the size of the buffer required to store all FeatureValues of this type into.
Definition: TypeConfig.h:266
Definition: StyleConfig.h:449
@ match
Definition: StringMatcher.h:37
bool move(const QVector2D &vector) override
Definition: InputHandler.cpp:680
QDateTime sunset
Definition: client-qt/include/osmscoutclientqt/SunriseSunset.h:48
void SetType(const TypeInfoRef &type)
Definition: Way.h:191
void SetIntValue(int attribute, int value) override
Definition: StyleConfig.h:423
bool IsAborted() const
Definition: LocationService.cpp:328
void Parse(TagErrorReporter &errorReporter, const TagRegistry &tagRegistry, const ObjectOSMRef &object, const TagMap &tags)
Definition: TypeConfig.cpp:508
std::vector< std::vector< FillStyleSelectorList > > FillStyleLookupTable
List of selectors.
Definition: StyleConfig.h:497
uint64_t PageId
Definition: OSMScoutTypes.h:41
@ water
Definition: GroundTile.h:51
Definition: IsInFeature.h:62
static const char *const NODE_TARGET_DESC
Constant for a description of the target node (TargetDescription)
Definition: RouteDescription.h:60
FutureBreaker & operator=(const FutureBreaker &)=default
static void SimplifyPolyLineDouglasPeucker(TransPoint *points, size_t beginIndex, size_t endIndex, size_t endValueIndex, double optimizeErrorToleranceSquared)
Definition: Transformation.cpp:197
virtual void ParametrizeForFoot(const TypeConfig &typeConfig, double maxSpeed)
Definition: RoutingProfile.cpp:107
bool useLinearInterpolation
switch to enable linear interpolation of latitude to pixel computation
Definition: MercatorProjection.h:55
LanesFeatureValue(uint8_t lanes)
Definition: LanesFeature.h:45
void TAGBOOLCOND(TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:538
virtual ~CoordDataFile()
Definition: CoordDataFile.cpp:39
std::string GetOptionHint() const override
Definition: CmdLineParsing.h:198
void WriteTypeId(TypeId id, uint8_t maxBytes)
Definition: FileWriter.cpp:1307
TextStyleRef debugLabel
Definition: MapPainter.h:217
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: AvailableMapsModel.cpp:292
FeatureValue * GetFeatureValue(size_t featureIndex, const FeatureValueBuffer &buffer) const
Definition: StyleConfig.h:84
virtual bool GeoToPixel(const GeoCoord &coord, Vertex2D &pixel) const =0
Converts a geo coordinate to a pixel coordinate.
void downloadNext()
Definition: MapDownloader.cpp:144
Message to pass to the NavigationEngine with routable objects around current possition.
Definition: DataAgent.h:61
const std::vector< Point > points
Definition: AbstractRoutingService.h:116
std::vector< Ring > rings
Definition: Area.h:241
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: LayerFeature.cpp:56
void Close()
Definition: AreaIndex.cpp:59
void SetDoubleArrayValue(int attribute, const std::vector< double > &value) override
Definition: StyleConfig.h:411
bool SearchForPOIByForm(const POIFormSearchParameter &searchParameter, LocationSearchResult &result) const
Definition: LocationService.cpp:2229
DBFileOffset(DatabaseId database, FileOffset offset)
Definition: DBFileOffset.h:100
void SetStartYear(int year)
Definition: ConstructionYearFeature.h:46
uint8_t ReadUInt8()
Definition: FileScanner.cpp:881
Definition: LabelLayouter.h:166
virtual void BeginPrimitive()
Definition: SymbolRenderer.h:70
bool DescribeLocation(const GeoCoord &location, LocationDescription &description, const Distance &lookupDistance=Distance::Of< Meter >(100), double sizeFilter=1.0)
Definition: LocationDescriptionService.cpp:1383
RoutingResult CalculateRoute(const RoutePosition &start, const RoutePosition &target, const std::optional< osmscout::Bearing > &bearing, const RoutingParameter ¶meter)
Definition: MultiDBRoutingService.cpp:387
@ NameRole
Definition: InstalledMapsModel.h:52
virtual ~KeywordMap()
Definition: map/include/osmscoutmap/oss/Scanner.h:130
static const char *const WAY_NAME_DESC
Constant for a description of name of the way (NameDescription)
Definition: RouteDescription.h:62
std::string GetName() const override
Returns the name of the feature.
Definition: BrandFeature.cpp:69
RerouteRequestMessage(const Timestamp ×tamp, const GeoCoord &from, const std::optional< Bearing > &initialBearing, const GeoCoord &to)
Definition: RouteStateAgent.cpp:30
void onStyleChanged()
Definition: StyleModule.cpp:60
void onSetFlagRequest(QString key, bool value)
Definition: StyleModule.cpp:71
Id GetFrontId() const
Definition: Area.h:179
@ COLLINEAR
Definition: utils.h:44
PhoneFeature()
Definition: PhoneFeature.cpp:58
MessageStruct(MessageType type, const Distance &distance)
Definition: VoiceInstructionAgent.h:154
Entry in the TransBuffer structure.
Definition: Transformation.h:46
void ROUTEPATHTEXTSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1504
Definition: Distance.h:41
std::shared_ptr< FeatureToDescriptionProcessor > FeatureToDescriptionProcessorRef
ingroup Description
Definition: DescriptionService.h:143
static const StyleDescriptorRef borderStyleDescriptor
Definition: Styles.cpp:569
@ attrPriority
Definition: Styles.h:95
std::string UTF8Transliterate(const std::string &text)
Definition: utf8helper.cpp:43
std::shared_ptr< MapService > MapServiceRef
Definition: MapService.h:400
WayPathDataIt wayData
Definition: MapPainter.h:195
static const char *const FILENAME_INTERSECTIONS_DAT
Relative filename of the intersection data file.
Definition: RoutingService.h:393
bool GetRouteNode(const Id &id, RouteNodeRef &node) const
Definition: RoutingDB.h:57
std::string altName
Definition: Location.h:70
void Write(const char *buffer, size_t bytes)
Definition: FileWriter.cpp:184
bool operator==(const DBId &other) const
Definition: DBFileOffset.h:64
bool IsRoute() const
Definition: TypeConfig.h:615
static const std::string SECTION_NAME_CHARGINGSTATION
Definition: DescriptionService.h:335
RouteData & GetRoute()
Definition: AbstractRoutingService.h:83
FeatureValue * AllocateValue(void *buffer) override
Definition: WebsiteFeature.cpp:82
void WAYSHIELDSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1481
void OnZoom(float zoomDirection)
Zooms on the map.
Definition: MapPainterOpenGL.cpp:1043
void Write(const MagnificationLevel &level)
Definition: FileWriter.h:107
void Normalize(double x, double y, double &nx, double &ny)
Definition: Geometry.h:947
CapStyle GetEndCap() const
Definition: Styles.h:193
qint8 getLayer() const
Definition: OverlayObject.h:118
size_t getSize()
Definition: OverlayObject.h:113
double getPenaltyDifferentType() const
Definition: QmlRoutingProfile.cpp:174
@ refArea
Definition: ObjectRef.h:142
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: WebsiteFeature.cpp:87
@ DistanceRole
Definition: LocationInfoModel.h:72
void DeregisterTileStateCallback(CallbackId callbackId)
Definition: MapService.cpp:1456
Slot & operator=(const Slot &)=delete
static const std::string LABEL_KEY_LOCATION_LOCATION
Definition: DescriptionService.h:202
void CalcSize()
After direct writing access to the points array to have to call this method to correct internal start...
Definition: Transformation.cpp:40
TextStyleEnumAttributeDescriptor(const std::string &name, int attribute)
Definition: Styles.h:623
std::string UTF8Transliterate(const std::string &text)
Transliterate non-ascii characters to one or more characters that are similar to the original charact...
Definition: String.cpp:632
bool operator==(const DataBlockSpan &other) const
Definition: DataFile.h:55
OSMTileIdBoxConstIterator(const OSMTileId ¤tTile, const OSMTileId &minTile, const OSMTileId &maxTile)
Definition: Tiling.h:124
int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: NavigationModel.cpp:274
Definition: RouteDescription.h:693
std::list< Node > & Nodes()
Definition: RouteDescription.h:829
Distance GetDistance() const
Definition: RouteDescription.h:577
void BeforeDrawing(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterQt.cpp:842
bool DrawMap(const Projection &projection, const MapParameter ¶meter, const MapData &data, AggPixelFormat *pf, RenderSteps startStep=RenderSteps::FirstStep, RenderSteps endStep=RenderSteps::LastStep)
Definition: MapPainterAgg.cpp:716
ScreenMask iconCanvas
Definition: LabelLayouter.h:290
static const std::string LABEL_KEY_PAYMENT_FEE_VALUE
Definition: DescriptionService.h:319
GeoBox GetBoundingBox(const Magnification &magnification) const
Return the bounding box of the region defined by the box.
Definition: TileId.cpp:224
OpeningHoursFeatureValue & operator=(const FeatureValue &other) override
Definition: OpeningHoursFeature.cpp:34
cairo_text_extents_t textExtents
Definition: MapPainterCairo.h:65
size_t flagIndex
Definition: StyleConfig.h:225
PathTextStyle & SetPriority(size_t value)
Definition: Styles.cpp:1399
std::string GetFilename() const
Definition: ObjectVariantDataFile.h:61
static const std::string LABEL_KEY_GEOMETRY_BOUNDINGBOX
Definition: DescriptionService.h:178
void MarkAsOuterRing()
Definition: Area.h:221
bool CanRouteCar() const
Definition: TypeConfig.h:482
CoordBufferRange & operator=(const CoordBufferRange &other)
Definition: Transformation.h:402
static OSMScoutQtBuilder NewInstance()
Definition: OSMScoutQt.cpp:267
virtual bool operator!=(const FeatureValue &other) const
Definition: TypeFeature.h:78
@ LabelRole
Definition: SearchLocationModel.h:176
bool CanAccess(Vehicle vehicle) const
Definition: AccessRestrictedFeature.h:66
static int osmTileOriginalWidth()
Definition: OSMTile.h:62
uint32_t GetMaxY() const
Definition: Tiling.h:219
GeoBox GetDimensions() const
Definition: Projection.h:255
Duration timestamp
Estimate time from route start.
Definition: RouteStep.h:88
const RouteDescriptionRef routeDescription
Definition: Agents.h:86
std::list< AreaRef > poiAreas
List of manually added areas (not managed or changed by the db)
Definition: MapData.h:53
static const StyleDescriptorRef textStyleDescriptor
Definition: Styles.cpp:803
bool operator==(const VNode &other) const
Equality operator.
Definition: RoutingService.h:328
std::input_iterator_tag iterator_category
Definition: TileId.h:170
Definition: MapPainterNoOp.h:35
Definition: CmdLineParsing.h:56
Point * q
Definition: shapes.h:125
FileOffset GetFileOffset() const
Definition: Way.h:63
bool FiltersByFeature() const
Definition: StyleConfig.h:273
bool StringToDouble(const char *string, double &value)
Definition: map/include/osmscoutmap/oss/Parser.h:150
@ DayRole
Definition: OpeningHoursModel.h:51
const codepoint upper
Definition: utf8helper_charmap.h:43
void SwapData()
Swaps currently drawn data and processed data.
Definition: MapPainterOpenGL.cpp:147
size_t GetIndex() const
Returns the index of this type.
Definition: TypeConfig.h:308
void DumpStatistics()
Definition: SimpleRoutingService.cpp:459
static const char *const TEXT_POI_DAT
Definition: TextSearchIndex.h:41
bool AreaIsClockwise(const std::vector< N > &edges)
Definition: Geometry.h:988
void SetLon(double lon)
Definition: NearPOIModel.h:170
std::string GetName() const
Definition: NameFeature.h:50
bool operator<(const DBFileOffset &other) const
Definition: DBFileOffset.h:122
Definition: OverlayObject.h:45
bool IsValidToWrite(const std::vector< Point > &nodes)
Definition: FileWriter.cpp:1368
std::string GetLabel(const Locale &, size_t) const override
Definition: LocationFeature.h:55
void getOverlayObjects(std::vector< OverlayObjectRef > &objs, osmscout::GeoBox requestBox) const
Definition: MapRenderer.cpp:237
std::vector< const Ring * > Polygon
Definition: PolygonCenter.cpp:64
QString pattern
Searched pattern.
Definition: SearchLocationModel.h:85
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: NameFeature.cpp:64
static const std::string LABEL_KEY_NAME_NAME_REF
Definition: DescriptionService.h:159
Distance distance
Definition: ElevationService.h:43
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:549
Color GetColor() const
Definition: PublicTransport.h:172
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: RouteInstructionAgent.h:70
void NODESTYLEDEF(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1302
void onElevationProfileRequest(std::shared_ptr< OverlayWay > way, int requestId, osmscout::BreakerRef breaker)
Definition: ElevationModule.cpp:87
bool operator==(const FeatureValue &other) const override
Definition: MaxSpeedFeature.cpp:47
CmdLineNumberArgParser(SetterFunction &&setter)
Definition: CmdLineParsing.h:192
PositionAgent::PositionState getState() const
Definition: VehiclePosition.h:108
void lookupResult(int requestId, QList< osmscout::LocationEntry > locations)
bool operator==(const FeatureValue &other) const override
Definition: LanesFeature.cpp:96
Distance GetDistance() const
Distance from the start of the route.
Definition: RouteDescription.h:773
size_t GetSpecialFeatureMaskBytes() const
Returns the (rounded) number of bytes required for storing the feature mask and one additional genera...
Definition: TypeConfig.h:258
virtual void stop()=0
stop playing
bool Draw(const Projection &projection, const MapParameter ¶meter, const MapData &data, RenderSteps startStep, RenderSteps endStep)
Definition: MapPainter.cpp:1891
virtual void RegisterContourLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const PathLabelData &label, const LabelPath &labelPath)=0
Register contour label.
Type
Definition: GroundTile.h:48
constexpr int X_STEP_0
The X flag is set as follows based on the locking steps Step 0 : X is released Step 1 : X is held,...
Definition: ReadWriteLock.cpp:39
~BatchMapPainterQt() override
Definition: MapPainterQt.cpp:1099
bool Load(const TypeConfig &typeConfig, const std::string &filename)
Load the object variant data from the given file.
Definition: ObjectVariantDataFile.cpp:44
uint64_t FileOffset
Definition: OSMScoutTypes.h:46
void MarkAsMasterRing()
Definition: Area.h:216
std::list< RouteDescription::Node >::const_iterator NodeIterator
Definition: RouteDescription.h:805
std::shared_ptr< CmdLineArgParser > CmdLineArgParserRef
Definition: CmdLineParsing.h:94
std::string GetName() const override
Returns the name of the feature.
Definition: GradeFeature.cpp:60
virtual void Clear()
Definition: Navigation.h:47
std::map< PathTextStyleRef, std::set< std::string > > labels
Definition: MapPainter.h:196
bool ClosestPointOnRoute(const GeoCoord &location, GeoCoord &locOnRoute)
Definition: Navigation.h:215
GeoCoord GetCenter() const
Definition: GeoBox.cpp:120
Message to pass periodically to the Engine to make sure that state changes based on timeouts are trig...
Definition: Engine.h:73
double GetMag() const
Definition: InputHandler.h:217
OSMScoutQtBuilder & WithVoiceLookupDirectory(const QString &voiceLookupDirectory)
Definition: OSMScoutQt.h:125
Duration GetTime(const Way &way, const Distance &distance) const override
Definition: RoutingProfile.h:305
std::string GetFilename() const
Definition: FileWriter.cpp:100
FileOffset startOffset
Offset for the first data entry referenced in the file. Data will be read starting from this position...
Definition: DataFile.h:47
Sweep-line, Constrained Delauney Triangulation (CDT) See: Domiter, V.
Definition: shapes.h:41
OffsetRelAttributeDescriptor(const std::string &name, int attribute)
Definition: Styles.h:250
Definition: TileCache.h:94
virtual bool RenderMap(QPainter &painter, const MapViewStruct &request)
Render map defined by request to painter.
Definition: TiledMapRenderer.cpp:184
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: NetworkFeature.cpp:71
Definition: RouteNodeDataFile.h:38
Parser(Scanner *scanner, const std::string &filename, StyleConfig &config, osmscout::ColorPostprocessor colorPostprocessor=nullptr, const Log &log=osmscout::log)
Definition: map/src/osmscoutmap/oss/Parser.cpp:2430
void DrawRect(double x, double y, double w, double h) override
Definition: SymbolRendererQt.cpp:105
PatternMode GetPatternMode() const
Definition: MapParameter.h:324
void GetWayPathSymbolStyle(const FeatureValueBuffer &buffer, const Projection &projection, std::vector< PathSymbolStyleRef > &symbolStyles) const
Definition: StyleConfig.cpp:1289
static const char *const BOUNDINGBOX_DAT
Definition: BoundingBoxDataFile.h:40
RouteWayResult TransformRouteDataToWay(const RouteData &data)
Definition: MultiDBRoutingService.cpp:561
@ IndexedAdminRegionRole
Definition: LocationInfoModel.h:81
bool HasIcon(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, IconStyle &style) override
Return true, if the icon in the IconStyle is available and can be drawn.
Definition: MapPainterCairo.cpp:444
void GetAreaTextStyles(const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection, std::vector< TextStyleRef > &textStyles) const
Definition: StyleConfig.cpp:1400
void DrawLabel(const Projection &projection, const MapParameter ¶meter, const ScreenVectorRectangle &labelRectangle, const LabelData &label, const CairoNativeLabel &layout)
Definition: MapPainterCairo.cpp:942
size_t GetSize() const
Definition: DataTileCache.h:514
Locale & GetLocaleRef()
Definition: MapParameter.h:414
int GetColumn() const
Definition: StyleError.h:78
Q_INVOKABLE void download(const QModelIndex &index)
Definition: AvailableVoicesModel.cpp:248
TypeInfoSet GetTypes() const
Return the list of types of the data stored in the tile.
Definition: DataTileCache.h:210
uint32_t areaCount
Definition: TypeDistributionDataFile.h:48
SRTMDataRef GetHeightInBoundingBox(const GeoBox &boundingBox)
Definition: SRTM.cpp:223
Definition: Location.h:135
double offset
Offset of the first label.
Definition: LabelLayouter.h:91
QString getGender() const
Definition: Voice.h:82
@ attrEmphasizeColor
Definition: Styles.h:520
void GetPOIsInArea(const GeoBox &boundingBox, const TypeInfoSet &nodeTypes, std::vector< NodeRef > &nodes, const TypeInfoSet &wayTypes, std::vector< WayRef > &ways, const TypeInfoSet &areaTypes, std::vector< AreaRef > &areas) const
Returns all objects in the given boundary that have one of the given types.
Definition: POIService.cpp:54
std::function< RoutingProfileRef(const DatabaseRef &)> RoutingProfileBuilder
Definition: MultiDBRoutingService.h:52
TypeInfoRef GetType() const
Definition: Area.h:115
double GetSize() const
Returns the size of the bounding box (width*height).
Definition: GeoBox.h:258
bool CanRouteFoot() const
Definition: AccessFeature.h:147
double GetUTurnCost(const RoutingProfile &profile, const DatabaseId databaseId) override
Definition: SimpleRoutingService.cpp:123
void Read(const TypeConfig &typeConfig, FileScanner &scanner)
Definition: Route.cpp:36
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: NetworkFeature.cpp:29
size_t GetHeight() const
Returns the height of the screen.
Definition: Projection.h:220
bool CanRouteCarBackward() const
Definition: AccessFeature.h:190
void SetBoolValue(int attribute, bool value) override
Definition: Styles.cpp:1572
NavigationModule(QThread *thread, SettingsRef settings, DBThreadRef dbThread)
Definition: NavigationModule.cpp:31
Definition: Distance.h:327
CmdLineArgParserRef CmdLineUInt64TOption(Args &&...args)
Definition: CmdLineParsing.h:316
static double ToMeter(double km)
Definition: Distance.h:254
VehicleFollowHandler(const MapView &view, const QSizeF &widgetSize)
Definition: InputHandler.cpp:824
size_t rows
Definition: SRTM.h:48
Definition: RoutingProfile.h:318
@ attrFillColor
Definition: Styles.h:292
void ParametrizeForBicycle(const TypeConfig &typeConfig, double maxSpeed) override
Setup profile for bicycle, it also setup junction penalty and multiply cost limit and cost limit fact...
Definition: RoutingProfile.h:382
bool GetWaysByOffset(const OffsetsCol &offsets, DataCol &ways) const
Definition: Database.h:447
static const char *const NAME
Name of this feature.
Definition: RefFeature.h:74
TypeInfoRef GetRouteTypeInfo(TypeId id) const
Returns the type definition for the given type id.
Definition: TypeConfig.h:1317
void AddAttrib(std::string attribName, GLint length, GLuint type, size_t positionOffset)
Definition: OpenGLMapData.h:357
Token()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:97
Distance GetDistance() const
Definition: LocationDescriptionService.h:93
bool GetGradeForSurface(const std::string &surfaceValue, size_t &grade) const
Definition: Tag.cpp:333
std::vector< Edge * > edge_list
Definition: sweep_context.h:97
FillStyleRef fillStyle
Fill style.
Definition: MapPainter.h:179
static bool ContourLabelSorter(const ContourLabel< NativeGlyph > &a, const ContourLabel< NativeGlyph > &b)
Definition: LabelLayouter.h:192
Definition: RoutePostprocessor.h:270
void set_search(Node *node)
Definition: advancing_front.h:111
virtual void FlushVisualCaches(const std::chrono::milliseconds &idleMs)
Definition: TiledMapRenderer.cpp:169
void SetColorValue(int attribute, const Color &value) override
Definition: Styles.cpp:1314
codepoint(*)(const character *, int context) Transform
functor implements desired transformation of the character It has 2 arguments:
Definition: utf8helper.h:49
Model item representing directory in AvailableMapsModel.
Definition: AvailableMapsModel.h:101
void LoadVertices()
Definition: OpenGLMapData.h:266
MaxStayFeatureValue & operator=(const FeatureValue &other) override
Definition: MaxStayFeature.cpp:38
QObject nextRouteStep
Definition: NavigationModel.h:50
virtual AreaRef GetArea(const DBFileOffset &offset) const =0
OverlayArea(QObject *parent=Q_NULLPTR)
Definition: OverlayObject.cpp:232
std::wstring NativeLabel
Definition: MapPainterSVG.h:64
bool GetAreasDataMMap() const
Definition: Database.cpp:128
BasemapDatabase(const BasemapDatabaseParameter ¶meter)
Definition: BasemapDatabase.cpp:37
void EndPrimitive() override
Definition: SymbolRendererCairo.cpp:101
#define SRTM3_GRID
Definition: SRTM.cpp:42
double scaledLatDeriv
precalculated derivation of "latToYPixel" function in projection
Definition: MercatorProjection.h:53
@ Symbol
Definition: StyleError.h:36
GLuint GetTexture()
Definition: OpenGLMapData.h:377
Signal< std::thread::id > threadExit
Definition: Thread.cpp:57
const Point & GetPoint(size_t index) const
Definition: Way.h:153
virtual bool CanUseForward(const Way &way) const =0
size_t GetFeatureCount() const
Definition: Route.h:128
double NormalizeRelativeAngle(double angle)
Definition: Geometry.cpp:382
std::vector< OffsetRel > ParseLaneTurns(const LanesFeatureValue &feature) const
Definition: MapPainter.cpp:1248
static const Vertex2D ZERO
Definition: Pixel.h:107
A specialisation of Worker.
Definition: Worker.h:113
static double FromMeter(double m)
Definition: Distance.h:352
TagBinaryCondition(TagId tag, BinaryOperator binaryOperator, const std::string &tagValue)
Definition: Tag.cpp:78
FeatureValue * AllocateValue(void *buffer) override
Definition: DestinationFeature.cpp:84
size_t GetMaxLevel() const
Definition: StyleConfig.h:288
void mapDownloadFails(QString message)
std::list< GroundTile > groundTiles
List of ground tiles (optional)
Definition: MapData.h:55
void EncodeToBuffer(GeoCoordBuffer &buffer) const
Encode the coordinate value into a buffer - as it would be done by FileScanner/FileWriter classes.
Definition: GeoCoord.h:156
std::string GetFilename() const
Definition: Exception.cpp:121
std::string GetName() const override
Returns the name of the feature.
Definition: WebsiteFeature.cpp:67
void Append(RouteData routePart)
Definition: RouteData.h:120
bool LinesIntersect(const N &a1, const N &a2, const N &b1, const N &b2)
Definition: Geometry.h:216
void update()
Definition: InstalledVoicesModel.cpp:57
bool GetLineIntersectionPixel(const N &a1, const N &a2, const N &b1, const N &b2, N &intersection)
Definition: Geometry.h:363
int displayLimit
Limit of model rows.
Definition: SearchLocationModel.h:80
std::vector< osmscout::Point > getPoints() const
Definition: OverlayObject.cpp:143
void ATTRIBUTEVALUE(PartialStyleBase &style, const StyleAttributeDescriptor &descriptor)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1701
size_t GetHexDigitValue(char c)
Definition: map/include/osmscoutmap/oss/Parser.h:161
StringMatcherFactoryRef GetStringMatcherFactory() const
Definition: LocationService.cpp:333
bool Close()
Close the index.
Definition: RouteNodeDataFile.cpp:121
osmscout::RefType getObjectType() const override
Definition: OverlayObject.h:223
bool GetAreasByBlockSpan(const DataBlockSpan &span, std::vector< AreaRef > &area) const
Definition: Database.cpp:869
agg::pixfmt_rgb24 AggPixelFormat
Definition: MapPainterAgg.h:47
void addReference(const osmscout::ObjectFileRef reference)
Definition: LocationEntry.cpp:145
@ DirectoryRole
Definition: InstalledMapsModel.h:54
void setEquals(const QJSValue &fn)
Definition: SearchLocationModel.h:209
void TYPEDESCS(TypeInfo &typeInfo)
Definition: src/osmscout/ost/Parser.cpp:495
AvailableMapsModelItem & operator=(const AvailableMapsModelItem &o)
Definition: AvailableMapsModel.h:65
QString getDatabase() const
Definition: LocationEntry.cpp:198
bool IsWay() const
Definition: ObjectRef.h:229
std::shared_ptr< MaxSpeedDescription > MaxSpeedDescriptionRef
Definition: RouteDescription.h:517
std::string UTF8ToUpper(const std::string &text)
Definition: utf8helper.cpp:27
double height
Definition: MapPainterSVG.h:68
bool showAltLanguage
Definition: QmlSettings.h:61
DBFileOffset GetDBFileOffset() const
Definition: RouteData.h:62
Definition: FileWriter.h:48
bool IsAborted() const override
Return true, if the process was signaled to stop.
Definition: CancelableFuture.h:96
bool IsVisible() const override
Definition: Styles.h:558
@ distanceDeltaRole
Definition: RouteStep.h:73
bool zoom(double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) override
Definition: InputHandler.cpp:676
FileOffset locationOffset
Offset to location.
Definition: Location.h:154
Definition: StyleDescription.h:454
StyleConstantRef GetConstantByName(const std::string &name) const
Definition: StyleConfig.cpp:431
static double minLon()
Definition: OSMTile.h:56
std::shared_ptr< StyleDescriptor > StyleDescriptorRef
Definition: StyleDescription.h:498
@ EstimateInTunnel
Definition: PositionAgent.h:62
Definition: AdminLevelFeature.h:74
NativeLabel label
Definition: LabelLayouter.h:121
bool operator==(const FeatureValue &other) const override
Definition: LayerFeature.cpp:47
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: BrandFeature.cpp:74
PostalAreaRef GetPostalArea() const
Definition: Location.h:293
void SetColorValue(int attribute, const Color &value) override
Definition: Styles.cpp:588
size_t GetOnlineTileCacheSize() const
Definition: OSMScoutQt.cpp:494
QVariant data(int role) const
Definition: RouteStep.cpp:67
StringMatcherRef CreateMatcher(const std::string &pattern) const override
Definition: StringMatcher.cpp:50
void WriteOptimized(const TypeConfig &typeConfig, FileWriter &writer) const
Write the area with all data required by the OptimizeLowZoom index, dropping all ids.
Definition: Area.cpp:517
BorderStyle & SetDisplayOffset(double value)
Definition: Styles.cpp:669
virtual void DrawWay(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const WayData &data)
Definition: MapPainter.cpp:694
double contourLabelSpace
Definition: LabelLayouter.h:53
void Open(const std::string &filename)
Definition: HTMLWriter.cpp:50
FeatureValue * GetValue(size_t idx) const
Return a raw pointer to the value (as reserved in the internal featureValueBuffer)
Definition: TypeConfig.h:830
bool operator<(const ObjectVariantData &other) const
Definition: RouteNode.cpp:34
TypeInfoRef GetType() const
Definition: Route.h:123
Definition: OpeningHours.h:54
bool CanBeNode() const
Definition: TypeConfig.h:357
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: OpeningHoursModel.h:68
QHash< int, QByteArray > roleNames() const override
Definition: NavigationModel.cpp:291
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: IsInFeature.cpp:29
@ attrSize
Definition: Styles.h:717
const Vertex2D & GetCenter() const
Definition: Styles.h:1102
bool Invalid() const
Definition: ObjectRef.h:219
IOException(const std::string &filename, const std::string &semanticError, const std::system_error &error)
Definition: Exception.cpp:55
const std::list< FeatureFilterData > & GetFeatures() const
Definition: StyleConfig.h:293
void tileDownloaded(uint32_t zoomLevel, uint32_t x, uint32_t y, QImage image, QByteArray downloadedData)
Definition: TiledMapRenderer.cpp:347
size_t ElevationProfile(const std::vector< GeoCoord > &way, const std::function< void(const Distance &distance, const std::vector< ElevationPoint > &points)> &callback, const BreakerRef &breaker=nullptr)
Definition: ElevationService.h:71
std::shared_ptr< Node > NodeRef
Definition: Node.h:123
FileOffset ReadFileOffset()
Definition: FileScanner.cpp:1503
FeatureLabelReader(const TypeConfig &typeConfig)
Definition: FeatureReader.h:272
uint8_t GetForwardLanes() const
Definition: LanesFeature.h:63
virtual T * MakeNew() noexcept=0
Make a new object.
bool Evaluate(const TagMap &tagMap) const override
Definition: Tag.cpp:186
IconStyleRef iconStyle
Definition: IconLookup.h:48
void SetBorder(const BorderStyleRef &borderStyle, double screenMmInPixel) override
Definition: SymbolRendererQt.cpp:50
std::string TimestampToISO8601TimeString(const Timestamp ×tamp)
Format Timestamp to string in ISO8601 format "2017-11-26T13:46:12.124Z" for UTC timezone.
Definition: String.cpp:707
friend Database
Definition: Database.h:179
bool Success() const
Definition: AbstractRoutingService.h:175
MapView & operator=(const MapView &mv)
Definition: InputHandler.h:223
QString getObjectTypeStr() const
Definition: OverlayObject.h:89
bool operator==(const StyleCriteria &other) const
Definition: StyleConfig.cpp:249
std::string GetNameAlt() const
Definition: NameAltFeature.h:50
long GetHeight()
Returns the height of the texture atlas in pixel.
Definition: TextLoader.cpp:179
static const char *const WAY_NAME_CHANGED_DESC
Constant for a description of a change of way name (NameChangedDescription)
Definition: RouteDescription.h:64
Definition: POIService.h:42
void Reset()
Reset length, start and end.
Definition: Transformation.cpp:33
Line & operator<<(unsigned short value)
Definition: Logger.h:156
QString getObjectType() const
Definition: LocationEntry.cpp:188
std::unordered_map< std::string, int > EnumNameValueMap
Definition: StyleDescription.h:234
ThreadedWorkerPool(Args &&... args)
Definition: Worker.h:179
QmlVehicle getQmlVehicle() const
Definition: QmlRoutingProfile.cpp:65
Definition: BoundingBoxDataFile.h:37
bool CanUse(const RouteNode ¤tNode, const std::vector< ObjectVariantData > &objectVariantData, size_t pathIndex) const override
Definition: RoutingProfile.cpp:195
QString getError() const
Definition: FileDownloader.h:202
bool GetOptimizeLowZoomMMap() const
Definition: Database.cpp:143
void AREABORDERSYMBOLSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1640
unsigned long GetWayDataCacheSize() const
Definition: Database.cpp:103
QHash< int, QByteArray > roleNames() const override
Definition: AvailableMapsModel.cpp:335
@ AltLangName
Definition: MapObjectInfoModel.h:64
Original source: https://github.com/philipperemy/easy-encryption/blob/master/b64.h licensed under ter...
Definition: Area.h:38
void SetUIntValue(int attribute, size_t value) override
Definition: StyleConfig.h:429
void TAGLESSEQUALCOND(const std::string &tagName, TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:619
OpenGLTexture & operator=(const OpenGLTexture &)=delete
void SetVerticesSize(int size)
Definition: OpenGLMapData.h:287
@ ProcessRoutes
Process routes for rendering.
Definition: MapPainter.h:73
virtual void onStylesheetFilenameChanged()
Definition: PlaneMapRenderer.cpp:544
int line
Definition: map/include/osmscoutmap/oss/Parser.h:66
WaterIndexRef GetWaterIndex() const
Definition: Database.cpp:588
bool IsEmpty() const
Check if size of the screen box is zero.
Definition: ScreenBox.h:133
QStringList streetNames
Street names leading to this step.
Definition: RouteStep.h:55
bool GetIndex(const FeatureValueBuffer &buffer, size_t &index) const
Returns the index of the Feature/FeatureValue within the given FeatureValueBuffer.
Definition: FeatureReader.h:207
const Color & GetGapColor() const
Definition: Styles.h:419
SectionsPostprocessor(const std::vector< int > §ionLengths)
Definition: RoutePostprocessor.h:479
std::string GetDebugString() const override
Definition: RouteDescription.cpp:207
double GetDouble(const std::string &key, double defaultValue=0) override
Definition: QtSettingsStorage.cpp:60
Definition: StyleConfig.h:374
QString color
Definition: OverlayObject.h:53
std::string GetPositionalHint(const std::string &positional) const override
Definition: CmdLineParsing.cpp:256
TileIdBox Intersection(const TileIdBox &other) const
Definition: TileId.cpp:258
std::shared_ptr< Token > TokenRef
Definition: include/osmscout/ost/Scanner.h:43
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: DestinationFeature.h:81
void AddEnumValue2(const std::string &name, OffsetRel value)
Definition: Styles.h:274
size_t GetCurrentNodeIndex() const
Definition: RouteData.h:72
bool operator!=(const GeoCoord &other) const
Return true if coordinates are not equal.
Definition: GeoCoord.h:279
void SetRoute(RouteDescription *newRoute)
Definition: Navigation.h:117
bool operator!=(const Magnification &other) const
Definition: Magnification.h:207
void SetAdminRegionOnlyMatch(bool adminRegionOnlyMatch)
Definition: LocationService.cpp:363
void PATH(TypeInfo &typeInfo)
Definition: src/osmscout/ost/Parser.cpp:819
bool operator<=(const MagnificationLevel &other) const
Definition: Magnification.h:93
void AddEntry(DatabaseId database, Id currentNodeId, size_t currentNodeIndex, const ObjectFileRef &pathObject, size_t targetNodeIndex)
Definition: RouteData.cpp:48
ProcessingQueue< E > & inQueue
Definition: Worker.h:162
FileOffset GetFileOffset() const
Definition: PublicTransport.h:208
void Wait()
Definition: Worker.h:88
static const char *const NAME
Name of this feature.
Definition: DestinationFeature.h:75
void DrawCircle(double x, double y, double radius) override
Definition: SymbolRendererCairo.cpp:86
const QString GetOnlineTileProviderId() const
Definition: QmlSettings.cpp:66
~OverlayArea() override
Definition: OverlayObject.cpp:240
double GetFontHeight(const Projection &projection, const MapParameter ¶meter, double fontSize) override
Returns the height of the font.
Definition: MapPainterSVG.cpp:680
bool request(uint32_t zoomLevel, uint32_t x, uint32_t y)
try to create new tile request.
Definition: TileCache.cpp:129
void Remove(const TypeInfoRef &type)
Definition: TypeInfoSet.cpp:86
StyleDisplayAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:277
DragHandler(const MapView &view)
Definition: InputHandler.cpp:603
Definition: ReadWriteLock.h:114
Definition: include/osmscout/ost/Scanner.h:60
void Exception(const char *s)
Definition: src/osmscout/ost/Parser.cpp:1080
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: WebsiteFeature.cpp:72
StyleUMapAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:331
bool operator!=(const TypeInfoSetConstIterator &other) const
Definition: TypeInfoSet.h:85
void Reset()
Definition: utf8helper.cpp:495
FeatureValueReader< LanesFeature, LanesFeatureValue > LanesFeatureValueReader
Definition: LanesFeature.h:167
GroundTile(Type type)
Definition: GroundTile.h:103
void SetColor(const Color &color)
Definition: ColorFeature.h:50
static const char *const ROUTE_DAT
Definition: RouteDataFile.h:37
bool Close()
Definition: NumericIndex.h:314
bool GetAreasInArea(const TypeConfig &typeConfig, const GeoBox &boundingBox, size_t maxLevel, const TypeInfoSet &types, std::vector< DataBlockSpan > &spans, TypeInfoSet &loadedTypes) const
Returns references in form of DataBlockSpans to all areas within the given area,.
Definition: AreaAreaIndex.cpp:250
static double RoundDown(double value)
Definition: MapPainter.cpp:2551
void Write(FileWriter &writer, const std::array< bool, FlagCnt > &specialFlags) const
Writes the FeatureValueBuffer to the given FileWriter.
Definition: TypeConfig.h:973
void SetObjects(const std::vector< ObjectFileRef > &objects)
Definition: RouteData.cpp:38
static constexpr double AverageCharacterWidth
Definition: MapPainterSVG.h:70
RouteWayResult TransformRouteDataToWay(const RouteData &data)
Transforms the route into a Way (with empty type)
Definition: AbstractRoutingService.cpp:1778
AvailableMapsModelDir(const QString &name, const QList< QString > &path, const QString &description)
Definition: AvailableMapsModel.h:105
bool GetDrawFadings() const
Definition: MapParameter.h:259
QNetworkAccessManager * webCtrl
Definition: FileDownloader.h:138
Cache::CacheRef SetEntry(const CacheEntry &entry)
Set or update the cache with the given value for the given key.
Definition: Cache.h:204
ReadLock(Latch &latch, std::adopt_lock_t)
Definition: ReadWriteLock.h:132
ReadLock(Latch &latch)
Definition: ReadWriteLock.h:129
bool operator!=(const TileIdBoxConstIterator &other) const
Definition: TileId.h:218
bool operator<(const WayData &other) const
We then draw lines in order of layer (Smaller layers first)
Definition: MapPainter.h:139
Definition: QtSettingsStorage.h:33
MemberDirection
Definition: Route.h:52
Definition: MapService.h:98
std::string GetDescription() const
Definition: RouteDescription.cpp:82
double screenPixelRatio
Definition: MapRenderer.h:101
#define OSMSCOUT_LOCAL
Definition: CoreImportExport.h:38
bool operator!=(const ObjectOSMRef &reference) const
Definition: ObjectRef.h:80
void MAXSPEED()
Definition: src/osmscout/ost/Parser.cpp:241
std::wstring UTF8StringToWString(const std::string &text)
Definition: String.cpp:581
bool operator<(const Color &other) const
Definition: Color.cpp:111
void onJobFinished()
Definition: MapDownloader.cpp:163
static const std::string LABEL_KEY_WAY_LANES_LANES
Definition: DescriptionService.h:237
void Stop()
Signal that all data has been pushed into the queue.
Definition: ProcessingQueue.h:182
static const char *const MOTORWAY_CHANGE_DESC
Constant for a description of changing a motorway (MotorwayChangeDescription)
Definition: RouteDescription.h:78
virtual ~HTMLWriter()
Definition: HTMLWriter.cpp:38
QHash< int, QByteArray > roleNames() const override
Definition: RoutingModel.cpp:212
Definition: ElevationModule.h:46
Definition: DebugDatabase.h:44
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: NetworkFeature.cpp:86
~Scanner()
Definition: src/osmscout/ost/Scanner.cpp:163
size_t GetNodeTextStyleCount(const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1193
@ latRole
Definition: RouteStep.h:70
void OptimizeWay(TransBuffer &buffer, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance, TransPolygon::OutputConstraint constraint)
Optimize a already transformed way.
Definition: Transformation.cpp:646
uint8_t GetRing() const
Definition: Area.h:164
friend CairoLabelLayouter
Definition: MapPainterCairo.h:81
void FEATURES()
Definition: src/osmscout/ost/Parser.cpp:190
MultiDBRoutingService(const RouterParameter ¶meter, const std::vector< DatabaseRef > &databases)
Definition: MultiDBRoutingService.cpp:41
Definition: TextSearchIndex.h:38
double x
Definition: MapPainterAgg.h:50
void doubleTap(const QPoint p)
ScreenVectorRectangle & Set(double nx, double ny, double nw, double nh)
Definition: LabelLayouterHelper.h:90
void AddHole(const std::vector< Point * > &polyline)
Add a hole.
const character charmap_c3[]
Definition: utf8helper_charmap.cpp:231
Definition: Styles.h:1052
bool Intersects(const TileIdBox &other) const
Definition: TileId.cpp:270
void Cancel()
Cancel the corresponding execution.
Definition: CancelableFuture.h:176
static constexpr int MaxDownloadRetries
Maximal number of download retries before cancelling download.
Definition: FileDownloader.h:48
GeoCoord GetTopLeft() const
north-west corner
Definition: GeoBox.h:283
ScanCell(int x, int y)
Definition: Geometry.cpp:395
@ attrPreferColorFeature
Definition: Styles.h:87
void IMPORT()
Definition: map/src/osmscoutmap/oss/Parser.cpp:254
static const char *const NUMBER_LABEL
Name of the "number" label.
Definition: FromToFeature.h:103
double distance
Definition: RouteStep.h:48
Bearing operator/(const double &d) const
Definition: Bearing.h:92
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: AccessFeature.cpp:54
uint8_t GetWayTypeIdBytes() const
Definition: TypeConfig.h:1212
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: AccessRestrictedFeature.cpp:82
virtual void DrawContourLines(const Projection &projection, const MapParameter ¶meter, const MapData &data)
Definition: MapPainter.cpp:2572
~MapDownloader() override
Definition: MapDownloader.cpp:126
virtual std::string GetLabel(const Locale &, size_t) const
Definition: TypeFeature.h:50
void fontSizeSignal(double)
NameDescriptionRef GetToDescription() const
Definition: RouteDescription.h:397
bool IsRegionIgnoreToken(const std::string &token) const
Definition: LocationIndex.cpp:98
const std::vector< std::string > & GetPOIIgnoreTokens() const
Definition: LocationIndex.h:191
std::string GetName() const override
Returns the name of the feature.
Definition: AddressFeature.cpp:70
TypeId GetRouteId() const
Returns the unique id of this type.
Definition: TypeConfig.h:300
uint8_t GetDefaultAccess() const
Definition: TypeConfig.cpp:248
static SpeedVariant Fill(double speed)
Definition: RoutingProfile.h:115
SizeCondition()
Definition: StyleConfig.cpp:101
@ operatorEqual
Definition: Parsing.h:35
Definition: RoutingProfile.h:189
uint64_t expectedSize() const override
Definition: MapDownloader.h:77
bool CanRouteCarForward() const
Definition: AccessFeature.h:185
virtual ~TiledMapOverlay()
Definition: TiledMapOverlay.cpp:158
constexpr int X_STEP_3
Definition: ReadWriteLock.cpp:42
Message to pass to the NavigationEngine each time gps state has changed.
Definition: Agents.h:34
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:501
~Parser()
Definition: src/osmscout/ost/Parser.cpp:912
bool Intersects(const ScreenBox &other) const
Definition: ScreenBox.cpp:45
void SetRoutesDataMMap(bool mmap)
Definition: Database.cpp:78
bool PostProcessRouteDescription(RouteDescription &description, const std::list< RoutePostprocessor::PostprocessorRef > &postprocessors)
Definition: MultiDBRoutingService.cpp:491
void FindPathIntersections(const std::vector< N > &aPath, const std::vector< N > &bPath, bool aClosed, bool bClosed, std::vector< PathIntersection > &intersections, size_t aStartIndex=0, size_t bStartIndex=0)
Definition: Geometry.h:1310
bool BatchPaintInternal(const Projection &projection, const MapParameter ¶meter)
Render bach of multiple databases, step by step (.
Definition: BatchMapPainter.h:57
static const char *const WAY_TYPE_NAME_DESC
Constant for a description of type name of the way (TypeNameDescription)
Definition: RouteDescription.h:88
virtual FeatureValue * AllocateValue(void *buffer)
Definition: TypeFeature.cpp:77
AddressRef address
Address data if set.
Definition: LocationDescriptionService.h:367
bool try_lock()
Definition: ReadWriteLock.h:168
static bool SearchForAddressForLocation(LocationIndexRef &locationIndex, const SearchParameter ¶meter, const std::list< std::string > &addressTokens, const LocationSearchVisitor::Result &locationMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult::MatchQuality postalAreaMatchQuality, LocationSearchResult::MatchQuality locationMatchQuality, LocationSearchResult &result)
Definition: LocationService.cpp:1296
MoveAccumulator(int memory=100, double factor=4, double vectorLengthTreshold=5)
Definition: InputHandler.h:145
Definition: HTMLWriter.h:40
void onDownloadJobsChanged()
Definition: MapDownloadsModel.cpp:88
void Triangulate(SweepContext &tcx)
Triangulate.
std::list< Triangle * > GetMap()
Get triangle map.
Definition: VoiceInstructionAgent.h:30
V * GetValue(const FeatureValueBuffer &buffer) const
Returns the FeatureValue for the given FeatureValueBuffer.
Definition: FeatureReader.h:217
Line & operator<<(const std::string &value)
Definition: Logger.h:121
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: PhoneFeature.cpp:80
Definition: TextLoader.h:78
ingroup Description
Definition: DescriptionService.h:150
Type
Definition: include/osmscout/ost/Parser.h:43
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:2639
uint8_t GetTo() const
Definition: RouteDescription.h:655
bool RegisterSymbol(const SymbolRef &symbol)
Definition: StyleConfig.cpp:450
Router * MakeRouter()
Definition: OSMScoutQt.cpp:464
uint32_t GetMaxX() const
Definition: Tiling.h:209
~TransBuffer()
Definition: Transformation.cpp:28
bool Evaluate(const TagMap &tagMap) const override
Definition: Tag.cpp:46
Node & LocateNode(Point &point)
NodeDescriptionTmpl description
Definition: Navigation.h:48
bool operator==(const FeatureValue &other) const override
Definition: ChargingStationFeature.cpp:59
Position position
Definition: PositionAgent.h:85
void SetProgress(double current, double total, const std::string &label) override
Definition: Progress.cpp:115
bool RegisterLabelProviderFactory(const std::string &name, const LabelProviderFactoryRef &factory)
Methods for registering LabelProvider-factories and and retrieving label providers.
Definition: StyleConfig.cpp:372
static QString TurnCommandType(const RouteDescription::DirectionDescriptionRef &directionDescription)
Definition: RouteDescriptionBuilder.cpp:48
ingroup Description
Definition: DescriptionService.h:293
Grade
Definition: RoutingProfile.h:57
bool GetCenter(GeoCoord ¢er) const
Definition: Area.cpp:106
uint8_t VehicleMask
Definition: OSMScoutTypes.h:61
bool IsCoordInArea(const N &point, const std::vector< M > &nodes)
Definition: Geometry.h:492
std::function< void(const GeoCoord &)> SetterFunction
Definition: CmdLineParsing.h:229
Callback class that gets call in various routing situations.
Definition: RouteDescriptionPostprocessor.h:53
uint8_t maxSpeed
Maximum speed allowed on the way.
Definition: RouteNode.h:46
@ NameRole
Definition: MapStyleModel.h:49
bool LoadFromDataFile(const std::string &directory)
Loads the type configuration from the given binary data file.
Definition: TypeConfig.cpp:1241
std::string GetLabel(const Locale &, size_t) const override
Definition: NameAltFeature.h:55
TextStyle & SetPosition(size_t position)
Definition: Styles.cpp:921
Point operator+(const Point &a, const Point &b)
Add two points_ component-wise.
Definition: shapes.h:233
void Flush()
Definition: FileWriter.cpp:1325
TagId tagType
Definition: TypeConfig.h:1111
std::vector< TypeInfoSet > routeTypeSets
Definition: StyleConfig.h:633
void SetColorValue(int attribute, const Color &value) override
Definition: Styles.cpp:1162
std::string GetName() const
Definition: SimpleRoutingService.h:95
Pixel GetTile(const GeoCoord &coord) const
Definition: CoverageIndex.cpp:79
PathSymbolStyle & SetSlot(const std::string &slot)
Definition: Styles.cpp:1724
Definition: RouteDescription.h:409
ShieldStyle & SetBgColor(const Color &color)
Definition: Styles.cpp:1070
std::set< RNodeRef, RNodeCostCompare > OpenList
Definition: RoutingService.h:385
Q_INVOKABLE QStringList getLookupDirectories()
Definition: MapDownloadsModel.cpp:72
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: EmbankmentFeature.cpp:26
unsigned long GetAreaDataCacheSize() const
Definition: Database.cpp:113
std::string GetFilename() const
Definition: AreaAreaIndex.h:142
Definition: RouteDescription.h:269
void ClearDBData()
Deletes the content hold by this instance.
Definition: MapData.cpp:27
static constexpr uint64_t BufferNetwork
Size of network ring buffer.
Definition: FileDownloader.h:44
static double CalculateDistancePointToPoint(const TransPoint &a, const TransPoint &b)
Definition: Transformation.cpp:188
@ attrSize
Definition: Styles.h:516
void SetLat(double lat)
Definition: SearchLocationModel.h:235
QString error
Definition: FileDownloader.h:149
BearingChangedMessage(const Timestamp ×tamp, const Bearing &bearing)
Definition: BearingAgent.cpp:28
void WriteMeta(const std::string &name, const std::string &content)
Definition: HTMLWriter.cpp:195
void onCurrentSpeed(double currentSpeed)
Definition: NavigationModel.cpp:203
uint32_t DatabaseId
Definition: DBFileOffset.h:30
DBFileOffset & operator=(const DBFileOffset &other)=default
Definition: Navigation.h:34
Definition: RoutePostprocessor.h:296
double GetWidth() const
Definition: Styles.h:173
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: MaxSpeedFeature.cpp:56
~LocationInfoModel() override
Definition: LocationInfoModel.cpp:69
static const char *const WAYS_DAT
Definition: WayDataFile.h:37
const SymbolRef & GetSymbol(const std::string &name) const
Definition: StyleConfig.cpp:457
bool IsAreaCompletelyInArea(const std::vector< N > &a, const std::vector< M > &b)
Definition: Geometry.h:553
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: AccessFeature.cpp:90
static const Color NAVY
Definition: Color.h:56
TileKey GyetKe() const
Return the id of the tile.
Definition: MapTileCache.h:223
std::string GetDecimalSeparator() const
Definition: Locale.h:75
static const std::string SECTION_NAME_PAYMENT
Definition: DescriptionService.h:315
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:1895
char * val
Definition: map/include/osmscoutmap/oss/Scanner.h:53
Definition: CmdLineParsing.h:113
Definition: Geometry.h:1238
@ Downloaded
Definition: AvailableVoicesModel.h:91
Pixel GetTile(const GeoCoord &coord) const
Definition: RouteNodeDataFile.cpp:197
static const std::string LABEL_KEY_COMMERCIAL_BRAND
Definition: DescriptionService.h:298
bool ParseUInt32Argument(int argc, char *argv[], int ¤tIndex, uint32_t &value)
Definition: CmdLineParsing.cpp:655
void AddPrefillData(const TypeInfoSet &types, const std::vector< O > &data)
Assign data to the tile that was derived from existing tiles.
Definition: DataTileCache.h:91
FeatureValue * AllocateValue(void *buffer) override
Definition: MaxStayFeature.cpp:81
static const char *const NAME
Name of this feature.
Definition: NameAltFeature.h:71
int column
Definition: include/osmscout/ost/Parser.h:53
bool IsLoaded() const
Definition: TypeDistributionDataFile.h:65
LookupModule * MakeLookupModule()
Definition: OSMScoutQt.cpp:393
Representation of computed route.
Definition: QtRouteData.h:40
bool restricted
Flag to signal, if access to this node is restricted ("access restrictions")
Definition: RoutingService.h:235
double GetAngle() const
Returns the angle in radians ([0..2*PI[) of the display in relation to the north.
Definition: Projection.h:204
ObjectFileRef ReadObjectFileRef()
Definition: FileScanner.cpp:1453
~OpenGLTexture()
Definition: OpenGLMapData.h:58
@ DrawContourLines
Definition: MapPainter.h:88
std::string ReadString()
Definition: FileScanner.cpp:483
LineStyle & SetOffsetRel(OffsetRel offsetRel)
Definition: Styles.cpp:304
int resultLimit
Limit of results for each db.
Definition: SearchLocationModel.h:75
void AddPrefillData(const TypeInfoSet &types, std::vector< O > &&data)
Assign data to the tile that was derived from existing tiles.
Definition: DataTileCache.h:118
std::string GetCurrentArg() const
Definition: CmdLineParsing.cpp:73
std::shared_ptr< RouteNode > RouteNodeRef
Definition: RouteNode.h:177
const char * translate
Definition: utf8helper_charmap.h:46
std::shared_ptr< LocationCrossingDescription > LocationCrossingDescriptionRef
Definition: LocationDescriptionService.h:269
double GetSize() const
Definition: Styles.h:766
char * coco_string_create(const char *value)
Definition: map/src/osmscoutmap/oss/Scanner.cpp:52
static const std::string LABEL_KEY_LOCATION_ADDRESS
Definition: DescriptionService.h:201
SunriseSunsetRes GetNauticalTwilight(const GeoCoord &location, const Timestamp &day=Timestamp::clock::now())
Calculate the nautical twilight time for the given date and given location.
Definition: src/osmscout/util/SunriseSunset.cpp:325
bool Evaluate(const TagMap &tagMap) const override
Definition: Tag.cpp:101
@ Warning
Definition: StyleError.h:36
bool HasFeatures() const
Definition: TypeConfig.h:205
LineStyle & SetOffset(double value)
Definition: Styles.cpp:262
Q_INVOKABLE QVariant timeOfMap(QStringList path)
Generation time of map with given path.
Definition: AvailableMapsModel.cpp:363
void SetUseMultithreading(bool useMultithreading)
Definition: MapService.cpp:44
bool GetDataMMap() const
Definition: BasemapDatabase.cpp:32
FillStyle & SetFillColor(const Color &color)
Definition: Styles.cpp:453
void DrawLabels(const Projection &projection, const MapParameter ¶meter, Painter *p)
Definition: LabelLayouter.h:579
bool ready
Definition: MapObjectInfoModel.h:46
FeatureInstance GetFeature(size_t idx) const
Get a feature description for the feature with the given index ([0..featureCount[)
Definition: TypeConfig.h:807
Distance distance
Distance from the current route node to the target route node.
Definition: RouteNode.h:99
bool operator<(const LineStyle &other) const
Definition: Styles.cpp:422
GeoBox GetBoundingBox() const
Definition: Area.cpp:154
std::string GetName() const
Definition: Tag.h:215
constexpr bool debugGroundTiles
Definition: MapPainter.cpp:41
std::string GetFilename() const
Definition: HTMLWriter.h:64
void SetNetwork(const std::string &network)
Definition: PublicTransport.cpp:100
Definition: StyleDescription.h:328
@ attrPriority
Definition: Styles.h:373
bool rotateBy(double angleChange) override
Definition: InputHandler.cpp:451
Definition: map/include/osmscoutmap/oss/Scanner.h:119
void downloadNext()
Definition: VoiceManager.cpp:185
Definition: MapPainterCairo.h:69
Definition: include/osmscout/ost/Parser.h:40
double GetCosts(const Way &, const Distance &distance) const override
Estimated cost for specific way with given distance.
Definition: RoutingProfile.h:337
const Bearing bearing
Definition: BearingAgent.h:32
bool Evaluate(double meterInPixel, double meterInMM) const
Definition: StyleConfig.cpp:138
Roles
Definition: MapStyleModel.h:48
size_t GetFeatureFilterIndex(const Feature &feature) const
Definition: StyleConfig.cpp:936
Buffer structure for Vertex2D data.
Definition: Transformation.h:333
@ attrPattern
Definition: Styles.h:293
std::string GetDebugString() const override
Definition: RouteDescription.cpp:117
void SetResultLimit(int limit)
Definition: NearPOIModel.h:196
static bool adminRegionComparator(const AdminRegionInfoRef ®1, const AdminRegionInfoRef ®2)
Definition: LocationInfoModel.cpp:155
AddressFeatureValueReader addressReader
Value reader for the 'address' feature.
Definition: MapPainter.h:261
void DrawContourSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const ContourSymbolData &data) override
Draw the given Symbol on top of the contour of the given path.
Definition: MapPainterCairo.cpp:592
Definition: include/osmscout/ost/Scanner.h:111
void SetSerial(uint8_t serial)
Definition: Point.h:58
Definition: Location.h:43
const double EPSILON
Definition: utils.h:42
LaneTurn
Definition: LaneTurn.h:47
uint32_t GetLevel() const
Definition: Magnification.h:197
std::function< void(const N &)> SetterFunction
Definition: CmdLineParsing.h:186
Definition: StyleDescription.h:346
bool IsAtPlace() const
'true' if the location is at the place itself (in spite of 'close to...')
Definition: LocationDescriptionService.h:144
virtual bool HasLabel() const
Returns 'true' if the feature provides labels.
Definition: TypeFeature.h:173
static const uint8_t typeWay
Condition applies to ways.
Definition: TypeConfig.h:75
bool Move(double horizPixel, double vertPixel)
Definition: MercatorProjection.cpp:224
static std::string GetDataFilename(const std::string &filenamebase)
Definition: RoutingService.cpp:73
static const char *const NODE_VIA_DESC
Constant for a description of the first node of a route section.
Definition: RouteDescription.h:96
bool GetUseLowZoomOptimization() const
Definition: MapService.cpp:69
std::vector< Exclude > excludes
List of potential excludes regarding use of paths.
Definition: RouteNode.h:140
QVariant data(const QModelIndex &index, int role) const override
Definition: RoutingModel.cpp:193
static const char *const COVERAGE_IDX
Definition: CoverageIndex.h:43
virtual void OnViaAtRoute(const RouteDescription::ViaDescriptionRef &viaDescription)
Called everytime we have a new section at the route when routing with some via points between start a...
Definition: RouteDescriptionPostprocessor.cpp:107
std::string GetFilename() const
Definition: TypeDistributionDataFile.h:70
Move
Definition: RouteDescription.h:272
std::list< RouteDescription::Node >::const_iterator routeNode
Definition: PositionAgent.h:68
RoutePointsRef GetPoints() const
Definition: AbstractRoutingService.h:138
Node(Point &p)
Definition: advancing_front.h:51
TileWayData & GetWayData()
Return a read-write reference to the way data.
Definition: DataTileCache.h:374
Id id
id of the targeting route node
Definition: RouteNode.h:100
TileCache(size_t cacheSize)
Definition: TileCache.cpp:55
@ BearingRole
Definition: LocationInfoModel.h:73
bool IsClockwise() const
Definition: RouteDescription.h:375
bool IsLocationIgnoreToken(const std::string &token) const
Definition: LocationIndex.cpp:103
bool operator()(const ObjectFileRef &a, const ObjectFileRef &b) const
Definition: ObjectRef.h:249
void unlock_shared()
Definition: ReadWriteLock.cpp:262
bool GetNodeByOffset(const FileOffset &offset, NodeRef &node) const
Definition: Database.cpp:707
Buffer * buffer
Definition: include/osmscout/ost/Scanner.h:176
void routeComputed(QtRouteData route, int requestId)
clock::time_point lastAccess
Definition: TileCache.h:75
void SetDoubleValue(int attribute, double value) override
Definition: Styles.cpp:146
@ NameRole
Definition: OnlineTileProviderModel.h:98
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: WidthFeature.cpp:81
void onSearchFinished(const QString searchPattern, bool error)
Definition: SearchLocationModel.cpp:299
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: AddressFeature.cpp:29
static QString TurnCommandWithList(const RouteDescription::DirectionDescriptionRef &directionDescription)
Definition: RouteDescriptionBuilder.cpp:126
MapTileCache< T >::TRef GetCachedTile(const TileKey &key) const
Return the cache tiles with the given id.
Definition: MapTileCache.h:147
QMap< QString, QMap< osmscout::TileKey, osmscout::TileRef > > GetAllTiles() const
Definition: DBLoadJob.cpp:176
std::wstring wstr
Definition: MapPainterCairo.h:63
QHash< int, QByteArray > roleNames() const override
Definition: InstalledMapsModel.cpp:122
static MagnificationLevel magState
Definition: Magnification.h:147
void SetTurnLanes(const std::vector< LaneTurn > &turnForward, const std::vector< LaneTurn > &turnBackward)
Definition: LanesFeature.h:75
RoutingResult CalculateRouteViaCoords(RoutingProfile &profile, const std::vector< GeoCoord > &via, const Distance &radius, const RoutingParameter ¶meter)
Calculate a route going through all the via points.
Definition: SimpleRoutingService.cpp:393
void STYLEFILTER_GROUP(StyleFilter &filter)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1037
Utility for parsing simple OpenStreetMap opening hours.
Definition: OpeningHours.h:35
uint8_t byte
Definition: utf8helper_charmap.h:36
bool IsOpen() const
Returns true, if the routing service has been successfully opened, else false.
Definition: SimpleRoutingService.cpp:352
Definition: LabelProvider.h:116
size_t GetCacheSize() const
Definition: MapService.cpp:130
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: BuildingFeature.cpp:36
Definition: DebugDatabase.h:55
Triangle * NeighborCCW(Point &point)
@ SizeRole
Definition: AvailableMapsModel.h:216
CoordBufferRange CopyPolygonToCoordBuffer(const TransBuffer &transBuffer, CoordBuffer &coordBuffer)
Definition: Transformation.cpp:699
Point * GetPoint(const int &index) const
Definition: shapes.h:286
bool IsWay() const
Definition: ObjectRef.h:125
bool ParseSizeTArgument(int argc, char *argv[], int ¤tIndex, size_t &value)
Definition: CmdLineParsing.cpp:631
ProcessingQueue()
Initialize a unbounded queue.
static QStringList AdminRegionNames(const QList< AdminRegionInfoRef > ®ionList, bool useAltNames)
Helper method that returns list of unique admin region names.
Definition: LookupModule.cpp:488
bool operator!=(const MapView &a, const MapView &b)
Definition: InputHandler.h:243
Definition: RefFeature.h:67
std::shared_ptr< PathTextStyle > PathTextStyleRef
Definition: Styles.h:893
std::string name
name of the region
Definition: Location.h:77
long GetBaselineY() const
Definition: TextLoader.h:58
double getRouteDuration() const
Route duration in seconds.
Definition: RoutingModel.cpp:185
int GetFirstCell() const
Return the index of the initial, left-sided bit mask cell (containing x coordinate of rectangle)
Definition: LabelLayouterHelper.h:153
bool left_highest
Definition: sweep_context.h:104
virtual void Print(const std::string &value)=0
Print a std::string.
Definition: FromToFeature.h:30
std::string GetSearchString() const
Definition: LocationService.cpp:293
std::string GetIsIn() const
Definition: AdminLevelFeature.h:62
void setVehicle(QmlVehicle vehicle)
Definition: QmlRoutingProfile.cpp:70
double GetAreaMinDimensionMM() const
Definition: MapParameter.h:224
void SetNodeUsed(Id id)
Definition: NodeUseMap.cpp:33
void GetAreaTextStyleSelectors(size_t level, const TypeInfoRef &type, std::list< TextStyleSelector > &selectors) const
Definition: StyleConfig.cpp:1584
const TypeInfo * GetType() const
Return a pointer back tot he type we are assigned to.
Definition: TypeFeature.h:256
void objectsRequested(const LocationEntry &entry, bool reverseLookupAddresses)
void onLoadJobFinished(QMap< QString, QMap< osmscout::TileKey, osmscout::TileRef >> tiles)
Definition: IconLookup.cpp:217
const Color & GetTextColor() const
Definition: Styles.h:776
WriteLock & operator=(WriteLock &&wl) noexcept
Definition: ReadWriteLock.h:208
void Clear()
Definition: TypeInfoSet.h:140
void SetLabelValue(int attribute, const LabelProviderRef &value) override
Definition: Styles.cpp:1149
void Initialize()
Definition: Router.cpp:54
void fontNameSignal(QString)
std::vector< std::vector< BorderStyleSelectorList > > BorderStyleLookupTable
List of selectors.
Definition: StyleConfig.h:503
void SetDoubleValue(int attribute, double value) override
Definition: Styles.cpp:1179
bool ReverseLookupObjects(const std::list< ObjectFileRef > &objects, std::list< ReverseLookupResult > &result) const
Lookups location descriptions for the given objects.
Definition: LocationDescriptionService.cpp:715
Unit
Definition: StyleConfig.h:167
uint32_t wayCount
Definition: TypeDistributionDataFile.h:47
void Read(FileScanner &scanner)
Reads the TurnRestriction data from the given FileScanner.
Definition: TurnRestriction.cpp:29
Definition: Styles.h:1027
double GetFontHeight(const Projection &projection, const MapParameter ¶meter, double fontSize) override
Returns the height of the font.
Definition: MapPainterAgg.cpp:90
FileOffset addressOffset
Offset of the address entry.
Definition: Location.h:189
LineStyleRef GetOSMTileBorderLineStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1518
bool RemoveFile(const std::string &filename)
Definition: File.cpp:42
osmscout::OpenGLTextureRef LoadPNGOpenGL(const std::string &filename)
Definition: PNGLoaderOpenGL.cpp:34
QString getDescription() const
Definition: AvailableMapsModel.h:84
void Open(const std::string &filename)
Definition: FileWriter.cpp:50
void FILLSTYLEATTR(FillPartialStyle &style)
Definition: map/src/osmscoutmap/oss/Parser.cpp:528
bool removeRequest(uint32_t zoomLevel, uint32_t x, uint32_t y)
Remove pending request.
Definition: TileCache.cpp:178
void SetMapView(QObject *o)
Definition: MapOverlay.h:50
FillStyleRef GetLandFillStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1470
bool IsValid() const override
Definition: MercatorProjection.h:75
FileOffset offset
Definition: DBFileOffset.h:95
OnlineTileProviderModel()
Definition: OnlineTileProviderModel.h:86
static bool LabelLayoutDataSorter(const LabelData &a, const LabelData &b)
Sort labels for the same object by position.
Definition: MapPainter.cpp:149
std::string GetRef() const
Definition: RouteDescription.cpp:132
void stop() override
stop playing
Definition: VoicePlayer.cpp:53
virtual void onStylesheetFilenameChanged()
Definition: MapRenderer.cpp:96
static void FreeInstance()
Definition: OSMScoutQt.cpp:278
double overlayLabelPadding
Definition: LabelLayouter.h:285
OverlayWay(QObject *parent=Q_NULLPTR)
Definition: OverlayObject.cpp:197
static const double radiusMeter
Definition: Earth.h:37
void SetRef(const std::string_view &ref)
Definition: RefFeature.h:45
GLuint getVAO()
Definition: OpenGLMapData.h:373
bool Merge(std::list< Polygon > &result)
Definition: Geometry.cpp:723
size_t GetDataSize() const
Definition: DataTileCache.h:217
bool Load(const std::string &path, bool memoryMappedData)
Definition: LocationIndex.cpp:30
QDir getDestinationDirectory() const
Definition: FileDownloader.h:212
WayRef way
Definition: PositionAgent.h:73
void Warning(int line, int col, const char *s)
Definition: map/src/osmscoutmap/oss/Parser.cpp:2685
double width
Definition: MapPainterCairo.h:71
void failed(uint32_t zoomLevel, uint32_t x, uint32_t y)
void RegisterLabel(size_t index, const std::string &labelName)
Definition: TypeFeature.cpp:33
bool HasError() const
Definition: HTMLWriter.h:59
bool GetPinWay() const
Definition: TypeConfig.h:627
QString getShortDescription() const
Definition: RouteStep.h:177
const double currentSpeed
Definition: Agents.h:37
Definition: OpeningHours.h:60
static const char *const NAME
Name of this feature.
Definition: NetworkFeature.h:74
virtual void onStylesheetFilenameChanged()
Definition: TiledMapRenderer.cpp:122
void SetType(const TypeInfoRef &type)
Definition: PublicTransport.cpp:80
Result of a routing calculation.
Definition: AbstractRoutingService.h:52
std::shared_ptr< CharacterTexture > CharacterTextureRef
Definition: TextLoader.h:76
IsInFeatureValue(const std::string &isIn)
Definition: IsInFeature.h:39
void SetOverallDistance(const Distance &overallDistance)
Definition: AbstractRoutingService.h:63
void reload()
Definition: AvailableMapsModel.cpp:84
Definition: LocationInfoModel.h:44
Path(const ObjectFileRef &Object, size_t targetNodeIndex)
Definition: Path.cpp:24
size_t CallbackId
Definition: MapService.h:115
Bearing(Bearing &&d) noexcept
Definition: Bearing.h:50
std::shared_ptr< ViaDescription > ViaDescriptionRef
Definition: RouteDescription.h:688
void CleanupTileCache()
Evict tiles from cache until tile count <= cacheSize.
Definition: MapService.cpp:147
void set(int key, int val)
Definition: include/osmscout/ost/Scanner.h:91
std::string GetCondition() const
Definition: MaxStayFeature.h:65
IsInFeatureValue & operator=(const FeatureValue &other) override
Definition: IsInFeature.cpp:34
void cancel()
Cancel downloading, remove temporary files (of unfinished jobs), emit canceled signal.
Definition: FileDownloader.cpp:331
TagId tagRestriction
Definition: TypeConfig.h:1112
bool Open(const std::string &path, bool memoryMappedData)
Definition: AreaNodeIndex.cpp:47
std::vector< osmscout::ElevationPoint > ElevationPoints
Definition: ElevationModule.h:44
bool operator<(const BorderStyle &other) const
Definition: Styles.cpp:759
void AREATEXTSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1552
void TYPEOPTIONS(TypeInfo &typeInfo)
Definition: src/osmscout/ost/Parser.cpp:476
int GetPriority() const
Definition: Styles.h:449
@ attrScaleAndFadeMag
Definition: Styles.h:522
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:133
PathTextStyleRef GetRoutePathTextStyle(const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1325
Definition: BrandFeature.h:67
@ DrawGroundTiles
Same as previous, but from main db.
Definition: MapPainter.h:77
GeoCoord GetLocation() const
Definition: LocationDescriptionService.cpp:45
static const char *const IN_METER_LABEL
Name of the "inMeter" label.
Definition: EleFeature.h:73
FeatureReader< RoundaboutFeature > RoundaboutFeatureReader
Definition: RoundaboutFeature.h:52
std::vector< ObjectFileRef > objects
List of objects that build up this location.
Definition: Location.h:158
double GetShieldSpace() const
Definition: Styles.h:791
void Reset()
Definition: LabelLayouter.h:258
@ NoGpsSignal
Definition: PositionAgent.h:59
double GetCosts(const RoutingProfile &profile, DatabaseId database, const RouteNode &routeNode, size_t inPathIndex, size_t outPathIndex) override
Definition: SimpleRoutingService.cpp:106
void SetFontSize(double fontSize)
Definition: MapParameter.cpp:75
void mergeWith(const LocationEntry &location)
Definition: LocationEntry.cpp:151
OSMScoutQtBuilder & AddMapLookupDirectories(const QString &mapLookupDirectory)
Definition: OSMScoutQt.h:131
QStringList getDestinations() const
Definition: RouteStep.h:187
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: OperatorFeature.cpp:71
Model item representing map in AvailableMapsModel.
Definition: AvailableMapsModel.h:122
std::vector< Point > coords
Definition: Geometry.h:1450
void TYPES()
Definition: src/osmscout/ost/Parser.cpp:199
std::string GetName() const override
Returns the name of the feature.
Definition: FeeFeature.cpp:73
QString databasePath
Definition: IconLookup.h:49
std::shared_ptr< RoutableObjects > RoutableObjectsRef
Definition: DataAgent.h:49
static const char *const NAME
Name of this feature.
Definition: LocationFeature.h:82
static const char *const DEFAULT_FILENAME_BASE
Relative filebase name for touting data as generated by default by the importer.
Definition: RoutingService.h:398
@ Icon
Definition: LabelLayouter.h:61
CmdLineArgParserRef CmdLineInt64TOption(Args &&...args)
Definition: CmdLineParsing.h:310
void SetPos(FileOffset pos)
Moves the writing cursor to the given file position.
Definition: FileWriter.cpp:151
ObjectFileRef GetObject() const
Definition: RouteDescription.h:567
void DrawGround(const Projection &projection, const MapParameter ¶meter, const FillStyle &style) override
(Optionally) fills the area with the given default color for ground.
Definition: MapPainterNoOp.cpp:48
virtual void OnTurn(const RouteDescription::TurnDescriptionRef &turnDescription, const RouteDescription::CrossingWaysDescriptionRef &crossingWaysDescription, const RouteDescription::DirectionDescriptionRef &directionDescription, const RouteDescription::TypeNameDescriptionRef &typeNameDescription, const RouteDescription::NameDescriptionRef &nameDescription)
Call everytime a turn is necessary.
Definition: RouteDescriptionPostprocessor.cpp:48
static QString CrossingWaysDescriptionToString(const RouteDescription::CrossingWaysDescription &crossingWaysDescription)
Definition: RouteDescriptionBuilder.cpp:207
void SetResolvedMembers(const MemberCache &map)
Definition: Route.h:101
void voiceDownloadFails(const QString &errorMessage)
void onRerouteRequest(const GeoCoord from, const std::optional< osmscout::Bearing > initialBearing, const GeoCoord to)
Definition: NavigationModel.cpp:186
bool IsEqual(const GeoCoord &other) const
Return true if both coordinates are equal (using == operator)
Definition: GeoCoord.h:197
ProcessingQueue< E1 > & inQueue
Definition: Worker.h:138
void DrawArea(const Projection &projection, const MapParameter ¶meter, const AreaData &area) override
Draw the given area using the given FillStyle for the area outline.
Definition: MapPainterNoOp.cpp:122
FileOffset offset
Definition: ObjectRef.h:153
size_t featureFilterIndex
Definition: StyleConfig.h:224
OffsetRel ParseBackwardTurnStringToOffset(LaneTurn turn)
Definition: Styles.cpp:66
double GetFontHeight(const Projection &projection, const MapParameter ¶meter, double fontSize) override
Returns the height of the font.
Definition: MapPainterCairo.cpp:566
StyleFilter & SetSizeCondition(const SizeConditionRef &condition)
Definition: StyleConfig.cpp:227
Roles
Definition: AvailableMapsModel.h:206
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: PhoneFeature.cpp:63
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: LocationInfoModel.h:91
FileOffset GetNextFileOffset() const
Definition: PublicTransport.h:213
QImage image
Definition: TileCache.h:76
void locationDescriptionRequested(const osmscout::GeoCoord location)
TypeInfoRef GetType() const
Definition: Area.h:261
QStringList destinations
Destinations, visible on road sign usually.
Definition: RouteStep.h:56
GLuint getShaderProgram()
Definition: OpenGLMapData.h:381
bool suggested
individual turns for lanes
Definition: LaneAgent.h:41
std::shared_ptr< TypeDistributionDataFile > TypeDistributionDataFileRef
Definition: TypeDistributionDataFile.h:91
size_t priority
Priority of the label.
Definition: LabelLayouter.h:175
const size_t CELL_DIMENSION_MAX
Definition: Geometry.h:1473
double width
Definition: LabelLayouterHelper.h:76
static double ToMeter(double feet)
Definition: Distance.h:285
Definition: RoutePostprocessor.h:309
~MapDownloadJob() override
Cancel downloading, when db is not downloaded successfully, remove it from disk (even already downloa...
Definition: MapDownloader.cpp:44
void DrawIcon(const IconStyle *style, const Vertex2D ¢erPos, double width, double height) override
Draw the Icon as defined by the IconStyle at the given pixel coordinate (icon center).
Definition: MapPainterCairo.cpp:1135
void Cancel()
Definition: CancelableFuture.h:127
static const size_t IN_FEET_LABEL_INDEX
Index of the 'inFeet' label.
Definition: EleFeature.h:82
bool DrawMap(const Projection &projection, const MapParameter ¶meter, const MapData &data, RenderSteps startStep=RenderSteps::FirstStep, RenderSteps endStep=RenderSteps::LastStep)
Definition: MapPainterNoOp.cpp:129
~OverlayNode() override
Definition: OverlayObject.cpp:278
Roles
Definition: LocationInfoModel.h:67
std::string GetName() const
Definition: RouteDescription.cpp:127
void SetDatabaseMapping(const std::map< DatabaseId, std::string > &databaseMapping)
Definition: RouteDescription.cpp:582
std::string GetOperator() const
Definition: PublicTransport.h:228
FeatureValue * AllocateValue(void *buffer) override
Definition: ConstructionYearFeature.cpp:88
GeoBox boundingBox
Definition: AreaIndex.h:53
OSMScoutQtBuilder & WithMapLookupDirectories(const QStringList &mapLookupDirectories)
Definition: OSMScoutQt.h:113
@ attrLabel
Definition: Styles.h:646
Edge(Point &p1, Point &p2)
Constructor.
Definition: shapes.h:128
Q_INVOKABLE QString getId(int row) const
Definition: OnlineTileProviderModel.cpp:63
void SetVehicle(Vehicle vehicle)
Definition: RoutingProfile.cpp:46
StyleFilter & SetMinLevel(size_t level)
Definition: StyleConfig.cpp:206
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: GradeFeature.cpp:54
Line Log(Level level) override
The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to.
Definition: LoggerImpl.cpp:105
@ attrOffset
Definition: Styles.h:372
size_t GetFeatureCount() const
Definition: Way.h:83
@ coast
Definition: GroundTile.h:52
static const char *const NAME
Name of this feature.
Definition: AddressFeature.h:82
Copy of the StopClock implementation but using a high_resolution timer and by default return nano sec...
Definition: StopClock.h:70
void SetArgumentName(const std::string &argumentName)
Definition: CmdLineParsing.cpp:117
void Reset() override
Reset the state of the breaker.
Definition: Breaker.cpp:34
void COLORCONSTDEF()
Definition: map/src/osmscoutmap/oss/Parser.cpp:684
void SetPartialMatch(bool partialMatch)
Definition: LocationService.cpp:383
static const char *const AREA_ROUTE_IDX
Definition: AreaRouteIndex.h:51
bool CanRouteBackward(Vehicle vehicle) const
Definition: AccessFeature.h:132
CoordBuffer coordBuffer
Coordinate buffer.
Definition: MapPainter.h:214
@ fast
Definition: Transformation.h:186
static const Color LIME
Definition: Color.h:53
void tileDownloadFailed(uint32_t zoomLevel, uint32_t x, uint32_t y, bool zoomLevelOutOfRange)
Definition: TiledMapRenderer.cpp:357
void SetCondition(const std::string &condition)
Definition: MaxStayFeature.h:50
bool operator<(const Distance &d) const
Definition: Distance.h:134
TileCacheVal get(uint32_t zoomLevel, uint32_t x, uint32_t y)
Definition: TileCache.cpp:165
static const StyleDescriptorRef pathShieldStyleDescriptor
Definition: Styles.cpp:1126
void SetDistanceUnits(const DistanceUnitSystem &units)
Definition: Locale.h:70
void FlushCache() const
Definition: LocationIndex.cpp:847
void CloseFailsafe()
Definition: FileWriter.cpp:86
void ReadImport(const TypeConfig &typeConfig, FileScanner &scanner)
Read the area as written by WriteImport().
Definition: Area.cpp:252
const OSMTileId & operator*() const
Definition: Tiling.h:167
bool Set(const GeoCoord &coord, const Magnification &magnification, double dpi, size_t width, size_t height)
Definition: MercatorProjection.h:101
double ConvertPixelToWidth(double pixel) const
Convert a width in pixel into the equivalent mm size based on the given DPI.
Definition: Projection.h:305
void AREASYMBOLSTYLE(FillPartialStyle &fillStyle, BorderPartialStyle &borderStyle)
Definition: map/src/osmscoutmap/oss/Parser.cpp:547
QHash< int, QByteArray > roleNames() const override
Definition: MapDownloadsModel.cpp:152
An instantiation of a feature for a certain type.
Definition: TypeFeature.h:227
char * val
Definition: include/osmscout/ost/Scanner.h:53
CmdLineParseResult Parse(CmdLineScanner &scanner) override
Definition: CmdLineParsing.cpp:261
void setupRoute(QtRouteData route, osmscout::Vehicle vehicle)
Definition: NavigationModule.cpp:203
std::shared_ptr< CairoLabel > Layout(const Projection &projection, const MapParameter ¶meter, const std::string &text, double fontSize, double objectWidth, bool enableWrapping=false, bool contourLabel=false)
Definition: MapPainterCairo.cpp:912
std::shared_ptr< StyleModule > StyleModuleRef
Definition: StyleModule.h:80
static const std::string LABEL_KEY_WAY_ACCESSRESTRICTED_BICYCLE
Definition: DescriptionService.h:255
LocationCrossingDescriptionRef GetCrossingDescription() const
Return the location in relation to a close crossing.
Definition: LocationDescriptionService.cpp:159
void deactivateAll()
Definition: IconAnimation.cpp:48
bool IsOpen() const
Return true, if index is currently opened.
Definition: RouteNodeDataFile.cpp:111
LocationCoordDescription(const GeoCoord &location)
Definition: LocationDescriptionService.cpp:39
bool getJunctionPenalty() const
Definition: QmlRoutingProfile.cpp:146
FillStyle & SetPatternMinMag(const Magnification &mag)
Definition: Styles.cpp:472
FeatureValue * GetFeatureValue(size_t idx) const
Definition: Route.h:143
static const int32_t nodata
Definition: SRTM.h:66
const size_t CELL_DIMENSION_COUNT
Definition: Geometry.h:1474
ClosestRoutableObjectResult GetClosestRoutableObject(const GeoCoord &location, Vehicle vehicle, const Distance &maxRadius)
Returns the closest routeable object (area or way) relative to the given coordinate.
Definition: SimpleRoutingService.cpp:674
const T * findValue() const
Definition: TypeConfig.h:1020
~CoordBuffer()
Definition: Transformation.cpp:356
MagnificationConverter()
Definition: Magnification.cpp:58
static const std::string LABEL_KEY_WAY_LANES_LANESBACKWARD
Definition: DescriptionService.h:239
virtual bool Continue() const
If postprocessor should continue.
Definition: RouteDescriptionPostprocessor.cpp:122
bool operator>=(const MagnificationLevel &other) const
Definition: Magnification.h:98
Definition: LocationFeature.h:30
QString phone
Definition: LookupModule.h:79
std::shared_ptr< LaneDescription > LaneDescriptionRef
Definition: RouteDescription.h:629
double GetWidth() const
Returns the width of the bounding box (maxLon-minLon).
Definition: GeoBox.h:240
void Clear()
Definition: sweep_context.h:110
MaxSpeedFeatureValue(uint8_t maxSpeed)
Definition: MaxSpeedFeature.h:38
Vertex2D start
Definition: LabelPath.h:32
codepoint TransformNormalize(const character *, int)
Definition: utf8helper.cpp:61
RoutableObjectsRef data
Definition: DataAgent.h:63
void SetBreaker(const BreakerRef &breaker)
Definition: MapService.cpp:59
void AddNewVertex(GLfloat vertex)
Definition: OpenGLMapData.h:271
bool operator<(const DataBlockSpan &other) const
Definition: DataFile.h:50
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: AdminLevelFeature.cpp:59
std::list< RouteInstruction > instructions
Definition: RouteInstructionAgent.h:33
std::string GetName() const override
Returns the name of the feature.
Definition: WidthFeature.cpp:61
bool HasCollision(const ScreenRectMask &mask) const
Definition: LabelLayouterHelper.cpp:141
#define OSMSCOUT_MAP_AGG_API
Definition: MapAggImportExport.h:45
int state(int key)
Definition: map/include/osmscoutmap/oss/Scanner.h:104
void setProvider(QJsonValue jv)
Definition: TiledMapOverlay.cpp:206
const FeatureValueBuffer & GetFeatureValueBuffer() const
Definition: Route.h:153
static bool distanceComparator(const QMap< int, QVariant > &obj1, const QMap< int, QVariant > &obj2)
Definition: LocationInfoModel.cpp:146
std::string GetFilename() const
Definition: AreaNodeIndex.h:110
TypeInfoRef typeInfoIgnore
Definition: TypeConfig.h:1115
virtual void onFontSizeChanged(double)
Definition: MapRenderer.cpp:130
bool HasNextArg() const
Definition: CmdLineParsing.cpp:51
size_t operator()(const osmscout::DBFileOffset &id) const
Definition: DBFileOffset.h:150
Definition: RouteDescription.h:156
LocationEntry boundingBox
Definition: OverlayObject.h:54
double GetUTurnCost() const override
Definition: RoutingProfile.h:524
EleFeatureValueReader reader
Definition: ElevationService.h:37
StyleConstantUInt(size_t value)
Definition: StyleConfig.cpp:88
void SearchForLocations(const QString searchPattern, int limit, osmscout::GeoCoord, AdminRegionInfoRef defaultRegion, osmscout::BreakerRef breaker)
Start object search by some pattern.
Definition: SearchModule.cpp:214
void SetPatternSize(double size)
Definition: MapParameter.cpp:184
CoordBufferRange(CoordBuffer &coordBuffer, size_t start, size_t end)
Definition: Transformation.h:395
std::string GetIconName() const
Definition: Styles.h:954
virtual ~Buffer()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:121
@ attrDisplayOffset
Definition: Styles.h:1229
QObject route
Definition: RoutingModel.h:52
uint32_t nodeCount
Definition: TypeDistributionDataFile.h:46
std::shared_ptr< S > style
Definition: StyleConfig.h:475
virtual void OnMotorwayEnter(const RouteDescription::MotorwayEnterDescriptionRef &motorwayEnterDescription, const RouteDescription::CrossingWaysDescriptionRef &crossingWaysDescription)
Called if we enter a motorway.
Definition: RouteDescriptionPostprocessor.cpp:69
void Close()
Definition: AreaAreaIndex.cpp:45
static Parser::Exit _p2_u3(Parser *p, byte bb)
Definition: utf8helper.cpp:394
std::vector< LaneTurn > turns
number of route lanes
Definition: LaneAgent.h:39
Definition: SearchModule.h:124
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: ColorFeature.cpp:31
std::vector< char > GetBytes(const std::string &key) override
Definition: QtSettingsStorage.cpp:90
Vehicle vehicle
Definition: RoutingProfile.h:196
virtual void FlushVisualCaches(const std::chrono::milliseconds &idleMs)=0
double aDistanceSquare
distance^2 between "a path" point and intersection
Definition: Geometry.h:1245
GeoCoord GetCenter() const
Definition: Projection.h:195
static const Color DARK_GRAY
Definition: Color.h:61
static const double MinLon
Definition: MercatorProjection.h:61
void RegisterRegularLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const std::vector< LabelData > &labels, const Vertex2D &position, double objectWidth) override
Register regular label with given text at the given pixel coordinate in a style defined by the given ...
Definition: MapPainterCairo.cpp:1077
static const std::string SECTION_NAME_COMMERCIAL
Definition: DescriptionService.h:296
Definition: DataTileCache.h:271
Distance GetDistance() const
Definition: Database.h:208
QDateTime arrivalEstimate
Definition: NavigationModel.h:55
TileRef GetCachedTile(const TileKey &id) const
Return the cache tiles with the given id.
Definition: DataTileCache.cpp:105
void DrawPath(const Projection &projection, const MapParameter ¶meter, const Color &color, double width, const std::vector< double > &dash, LineStyle::CapStyle startCap, LineStyle::CapStyle endCap, const CoordBufferRange &coordRange) override
Draw simple line with the given style,the given color, the given width and the given untransformed no...
Definition: MapPainterAgg.cpp:570
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:1575
static void AddPostalAreaResult(const SearchParameter ¶meter, LocationSearchResult::MatchQuality regionMatchQuality, const PostalAreaSearchVisitor::Result &postalAreaMatch, LocationSearchResult::MatchQuality postalAreaMatchQuality, LocationSearchResult &result)
Definition: LocationService.cpp:1208
std::string GetFilename() const
Definition: FileScanner.cpp:319
CmdLineArgParserRef CmdLineULongOption(Args &&...args)
Definition: CmdLineParsing.h:298
Definition: map/include/osmscoutmap/oss/Parser.h:51
double GetLon() const
Definition: NearPOIModel.h:165
bool contains(uint32_t zoomLevel, uint32_t x, uint32_t y)
Definition: TileCache.cpp:159
long GetDefaultFontSize() const
Returns the default font size.
Definition: TextLoader.cpp:183
~FileDownloader() override
Definition: FileDownloader.cpp:80
double GetHeight(const Projection &projection) const
height in pixels for given projection
Definition: Styles.h:1203
double GetSize() const
Definition: LocationDescriptionService.h:108
Definition: EmbankmentFeature.h:30
~TagRegistry()
Definition: Tag.cpp:223
SidewayFeatureValue & operator=(const FeatureValue &other) override
Definition: SidewayFeature.cpp:34
@ slightlyRight
Definition: RouteDescription.h:277
double GetMilliseconds() const
Definition: StopClock.cpp:42
@ slightlyLeft
Definition: RouteDescription.h:275
An individual entry in the cache.
Definition: Cache.h:64
Definition: LaneAgent.h:35
StyleConstantMag(const Magnification &magnification)
Definition: StyleConfig.cpp:82
VNode(const DBId ¤tNode, bool currentRestricted)
Simple constructor for searching for VNodes in the ClosedSet.
Definition: RoutingService.h:340
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: WebsiteFeature.cpp:61
void SetSymbolValue(int attribute, const SymbolRef &value) override
Definition: Styles.cpp:1595
GeoCoord GetTopRight() const
north-east corner
Definition: GeoBox.h:292
static Distance Max()
Definition: Distance.cpp:38
bool canceledByUser
Definition: FileDownloader.h:145
~DBLoadJob() override
Definition: DBLoadJob.cpp:46
void unlock()
Definition: ReadWriteLock.h:161
double GetContourLabelSpace() const
Definition: MapParameter.h:354
GeoBox GetGeoBox() const
Definition: PositionAgent.cpp:74
std::string ReplaceString(const std::string &in, const std::string &search, const std::string &replacement)
Definition: String.cpp:325
double symbolOffset
Initial offset of the symbol.
Definition: MapPainter.h:201
static const char *const WAYS_IDMAP
Definition: WayDataFile.h:38
A single ground tile cell.
Definition: GroundTile.h:46
ObjectFileRef object
Reference to the object.
Definition: Location.h:125
AreaWayIndex()
Definition: AreaWayIndex.cpp:26
void SetOfflineMap(bool)
Definition: QmlSettings.cpp:89
Definition: MapOverlay.h:34
static const std::string LABEL_KEY_WAY_TUNNEL
Definition: DescriptionService.h:229
@ attrPriority
Definition: Styles.h:907
static const size_t NUMBER_LABEL_INDEX
Index of the 'number' label.
Definition: ColorFeature.h:81
void SetCharacter(char32_t character)
Definition: TextLoader.h:46
Definition: StyleDescription.h:51
unsigned int EncodeNumber(N number, char *buffer)
Definition: Number.h:145
DataAgent(DataLoader &mapServiceProvider)
Definition: DataAgent.h:79
QStringList types
Limit of results for each db.
Definition: NearPOIModel.h:81
virtual Id GetNodeId(const RouteDescription::Node &node) const
Definition: RoutePostprocessor.cpp:79
void OSS()
Definition: map/src/osmscoutmap/oss/Parser.cpp:148
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: ConstructionYearFeature.cpp:67
uint16_t ReadUInt16Number()
Definition: FileScanner.cpp:2005
void STYLEBLOCK(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:938
void setLocationEntry(QObject *o)
Definition: MapObjectInfoModel.cpp:247
bool IsCanceled()
Definition: CancelableFuture.h:222
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:336
std::vector< ElevationPoint > ElevationProfile(const std::vector< GeoCoord > &way)
Definition: ElevationService.h:62
std::shared_ptr< TypeNameDescription > TypeNameDescriptionRef
Definition: RouteDescription.h:540
bool IsOneway() const
Definition: RouteDescription.h:610
~Parser()
Definition: map/src/osmscoutmap/oss/Parser.cpp:2469
Definition: StringMatcher.h:69
FillStyleRef GetAreaFillStyle(const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1352
Definition: RouteNode.h:97
const Bearing targetBearing
Definition: RouteStateAgent.h:51
bool Success() const
Definition: AbstractRoutingService.h:93
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:436
std::string GetLabel(const Locale &, size_t) const override
Definition: NameShortFeature.h:54
void GetMaxValue(double &vmUsage, double &residentSet)
Return the maximum measured memory usage.
Definition: MemoryMonitor.cpp:103
double angleSin
Definition: MercatorProjection.h:45
virtual ~OutputDescription()=default
std::vector< DBId > GetNodeTwins(const RoutingProfile &state, DatabaseId database, Id id) override
Definition: SimpleRoutingService.cpp:316
Definition: map/include/osmscoutmap/oss/Scanner.h:153
void SetContourLabelSpace(double contourLabelSpace)
Definition: MapParameter.cpp:209
std::string name
name of the address
Definition: Location.h:192
std::vector< MapDataRef > data
Definition: BatchMapPainter.h:44
FeatureValue * AllocateValue(void *buffer) override
Definition: AdminLevelFeature.cpp:80
void SetCostLimitFactor(double costLimitFactor)
The router tries to minimize the actual costs of the route.
Definition: RoutingProfile.cpp:102
LabelProviderRef GetLabelProvider(const std::string &name) const
Definition: StyleConfig.cpp:388
virtual ~Signal()
Definition: Signal.h:210
const std::optional< Bearing > initialBearing
Definition: RouteStateAgent.h:38
Definition: GradeFeature.h:61
size_t GetFeatureReaderIndex(const Feature &feature)
Definition: StyleConfig.cpp:58
virtual FeatureValue & operator=(const FeatureValue &other)
Definition: TypeFeature.cpp:26
GeoBox GetBoundingBox() const
Return the bounding box of the tile.
Definition: DataTileCache.h:310
VoiceCorePlayer(const VoiceCorePlayer &)=delete
Vertex2D trPosition
top-left position after rotation
Definition: LabelLayouter.h:109
void SetLanes(uint8_t forwardLanes, uint8_t backwardLanes)
Definition: LanesFeature.h:51
void SetEndYear(int year)
Definition: ConstructionYearFeature.h:56
utf8helper::Transform func
Definition: utf8helper.h:71
std::string Advance()
Definition: CmdLineParsing.cpp:62
Definition: IconLookup.h:66
FeatureValue * AllocateValue(void *buffer) override
Definition: WidthFeature.cpp:76
Definition: CmdLineParsing.h:183
StyleMagnificationAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:215
OSMScoutQtBuilder & WithStyleSheetFile(QString styleSheetFile)
Definition: OSMScoutQt.h:168
std::unordered_map< std::string, bool > GetFlags() const
Definition: StyleConfig.h:670
void CopyAttributes(const PathShieldStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:1258
@ osmRefRelation
Definition: ObjectRef.h:39
RoutePointsResult()
Definition: AbstractRoutingService.cpp:48
size_t wayPriority
Priority of way (from style sheet)
Definition: MapPainter.h:118
std::string GetOptionName() const
Definition: CmdLineParsing.cpp:112
static void EnsureSimple(TransBuffer &buffer, bool isArea)
Definition: Transformation.cpp:541
void Set(double lat, double lon)
Assign a new latitude and longitude value to the coordinate.
Definition: GeoCoord.h:106
double GetScale() const
Definition: Styles.h:1281
virtual void Initialize()=0
std::string GetErrorMsg() const
Definition: Exception.cpp:126
uint16_t ReadUInt16()
Definition: FileScanner.cpp:913
void SetOperator(const std::string &operatorName)
Definition: PublicTransport.cpp:55
virtual std::string GetDescription() const
Definition: Exception.cpp:29
Q_INVOKABLE QVariant map(const QModelIndex &index) const
Definition: AvailableMapsModel.cpp:330
bool constrained_edge[3]
Flags to determine if an edge is a Constrained edge.
Definition: shapes.h:157
bool move(const QVector2D &vector) override
Definition: InputHandler.cpp:653
@ attrPosition
Definition: Styles.h:906
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: LanesFeature.cpp:156
@ DirectoryRole
Definition: AvailableVoicesModel.h:81
OpeningHoursFeatureValue(const std::string &value)
Definition: OpeningHoursFeature.h:39
Definition: StyleDescription.h:400
bool GetSearchForPOI() const
Definition: LocationService.cpp:348
std::string name
Alias.
Definition: Location.h:69
~MoveAccumulator() override=default
size_t GetPosition() const
Definition: Styles.h:974
RoundaboutEnterDescription(bool clockwise)
Definition: RouteDescription.cpp:317
static constexpr std::chrono::seconds BackOffInitial
Initial back-off time.
Definition: FileDownloader.h:46
Definition: OperatorFeature.h:30
bool CanRouteFoot() const
Definition: TypeConfig.h:472
bool GetNodesByOffset(const std::vector< FileOffset > &offsets, std::vector< NodeRef > &nodes) const
Definition: Database.cpp:729
@ DistanceRole
Definition: NearPOIModel.h:90
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: IsInFeature.cpp:64
int GetSectionNumber() const
Definition: RouteDescription.h:683
void IDENT(std::string &value)
Definition: map/src/osmscoutmap/oss/Parser.cpp:378
void SetStringMatcherFactory(const StringMatcherFactoryRef &stringMatcherFactory)
Definition: LocationService.cpp:338
Definition: IsInFeature.h:31
size_t GetCurrentCacheSize() const
Definition: MapService.cpp:137
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:740
static const std::string LABEL_KEY_WAY_ACCESSRESTRICTED_CAR
Definition: DescriptionService.h:256
NameAltFeature()
Definition: NameAltFeature.cpp:61
TypeInfo & CanRouteBicycle(bool canBeRoute)
Definition: TypeConfig.h:432
void Adapt(const TypeConfig &typeConfig)
Definition: TypeInfoSet.cpp:45
Point * tail()
Definition: sweep_context.h:179
QString operatorName
Definition: IconLookup.h:56
void SetIconPaths(const std::list< std::string > &paths)
Definition: MapParameter.cpp:80
void redraw()
Definition: MapOverlay.cpp:47
virtual void DrawLabels(const Projection &projection, const MapParameter ¶meter, const MapData &data)=0
FillStyle & SetPattern(const std::string &pattern)
Definition: Styles.cpp:465
virtual bool isDirectory() const =0
bool ReverseLookupRegion(const GeoCoord &coord, std::list< ReverseLookupResult > &result) const
Definition: LocationDescriptionService.cpp:669
Definition: sweep_context.h:120
void NODEICONSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1387
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: LanesFeature.h:147
MapParameter()
Definition: MapParameter.cpp:24
Definition: StyleDescription.h:418
void RegisterMaxSpeedAlias(const std::string &alias, uint8_t maxSpeed)
Methods for dealing with mappings for surfaces and surface grades.
Definition: TypeConfig.h:1169
uint8_t GetAccess() const
Definition: AccessRestrictedFeature.h:56
OSMSCOUT_CLIENT_QT_API QStringList StringVectorToQStringList(const std::vector< std::string > &v)
Definition: QtStdConverters.cpp:33
static const Color AQUA
Definition: Color.h:58
ObjectFileRef GetObjectFileRef() const
Definition: RoutingService.h:83
bool GetBool(const std::string &key, bool defaultValue=0) override
Definition: QtSettingsStorage.cpp:85
bool operator==(const Vertex3D &other) const
Definition: Pixel.h:240
void setTypeName(const QString &name)
Definition: OverlayObject.h:108
CapStyle GetJoinCap() const
Definition: Styles.h:188
NameDescriptionRef GetFromDescription() const
Definition: RouteDescription.h:421
static TileId GetTile(const Magnification &magnification, const GeoCoord &coord)
Return the libosmscout-specific tile id for the given magnification that contains the given coordinat...
Definition: TileId.cpp:114
double width
Definition: MapPainterSVG.h:67
codepoint TransformUpper(const character *, int)
Definition: TiledMapOverlay.h:76
void onDatabaseLoaded(QString dbPath, QList< osmscout::TileRef > tiles)
Definition: IconLookup.cpp:201
Distance costLimitDistance
Definition: RoutingProfile.h:198
std::string GetRef() const
Definition: PublicTransport.h:223
double GetEstimateCosts(const RoutingProfile &profile, DatabaseId database, const Distance &targetDistance) override
Definition: SimpleRoutingService.cpp:128
void SetName(const std::string &name)
Definition: PublicTransport.cpp:45
void SetContourLabelOffset(double contourLabelOffset)
Definition: MapParameter.cpp:204
A route variant consists of a number of halts.
Definition: PublicTransport.h:70
double bearing
Definition: VehiclePosition.h:46
const std::vector< ObjectVariantData > & GetObjectVariantData() const
Definition: RoutingDB.h:87
std::shared_ptr< LabelProvider > LabelProviderRef
Definition: LabelProvider.h:60
TypeInfo & CanBeWay(bool canBeWay)
If set to 'true', a way can be of this type.
Definition: TypeConfig.h:365
Level
Definition: Logger.h:52
Definition: ColorFeature.h:30
std::vector< LaneTurn > GetTurnForward() const
Definition: LanesFeature.h:82
void AREASTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1535
bool isDownloading(const AvailableVoice &voice) const
Definition: VoiceManager.cpp:159
std::string GetDebugString() const override
Definition: RouteDescription.cpp:312
@ SolidGrade
Definition: RoutingProfile.h:59
Feature
Definition: SidewayFeature.h:33
Bearing & operator=(Bearing &&d) noexcept
Definition: Bearing.h:55
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: OpeningHoursFeature.cpp:24
void SetFontName(const std::string &fontName)
Definition: MapParameter.cpp:70
void Invalidate()
Definition: ObjectRef.h:196
LocationRef GetLocation() const
Definition: Location.h:303
double width
Definition: sweep_context.h:103
bool cmp(const Point *a, const Point *b)
Definition: shapes.h:219
double Max() const
Definition: RoutingProfile.h:110
std::string GetLabel(const MapParameter ¶meter, const FeatureValueBuffer &buffer) const override
Returns the label based on the given feature value buffer.
Definition: LabelProvider.cpp:135
friend PTRoute
Definition: PublicTransport.h:185
IconLookup * MakeIconLookup()
Definition: OSMScoutQt.cpp:434
static void AddPOIResult(const SearchParameter ¶meter, LocationSearchResult::MatchQuality regionMatchQuality, const POISearchVisitor::Result &poiMatch, LocationSearchResult::MatchQuality poiMatchQuality, LocationSearchResult &result)
Definition: LocationService.cpp:1182
void databaseLoadFinished(const osmscout::GeoBox &geoBox)
void SetCenter(const osmscout::GeoCoord ¢er)
Definition: MapPainterOpenGL.cpp:1079
static constexpr int MaxLongitude
Definition: GeoCoord.h:83
std::string filename
Definition: map/include/osmscoutmap/oss/Parser.h:122
std::string output
Definition: ChargingStationFeature.h:52
bool Contains(Point *p)
Definition: shapes.h:296
void SetOutputDebug(bool outputDebug)
Definition: Progress.cpp:33
Definition: NameShortFeature.h:66
bool IsSet(const FeatureValueBuffer &buffer) const
Returns true, if the feature is set for the given FeatureValueBuffer.
Definition: FeatureReader.h:98
virtual void SetDoubleArrayValue(int attribute, const std::vector< double > &value)=0
Roles
Definition: MapDownloadsModel.h:60
QString getTypeString() const
Definition: LocationEntry.cpp:176
~ScopeGuard() noexcept
Definition: ScopeGuard.h:53
static void TransformPathOntoPath(cairo_path_t *srcPath, cairo_path_t *dstPath, double *pathSegmentLengths, double xOffset, double yOffset)
Project a path using a function.
Definition: MapPainterCairo.cpp:198
Magnification operator++(int)
Definition: Magnification.h:240
std::shared_ptr< OSMScoutQtBuilder > OSMScoutQtBuilderRef
Definition: OSMScoutQt.h:195
MessageType
Definition: VoiceInstructionAgent.h:121
bool HasDisplayOffset() const
Definition: Styles.h:1291
const FeatureValueBuffer * buffer
Features of the line segment, can be NULL in case of border only areas.
Definition: MapPainter.h:177
OSMTileIdBoxConstIterator begin() const
Definition: Tiling.h:239
const std::string & GetSlot() const
Definition: Styles.h:148
@ attrJoinCap
Definition: Styles.h:92
void SetCoord(const GeoCoord &coords)
Definition: Point.h:68
bool operator>=(const Magnification &other) const
Definition: Magnification.h:222
~NavigationModel() override
Definition: NavigationModel.cpp:74
codepoint TransformLower(const character *, int)
TagRegistry & GetTagRegistry()
Definition: TypeConfig.h:1147
RectanglePrimitive(const Vertex2D &topLeft, double width, double height, const FillStyleRef &fillStyle, const BorderStyleRef &borderStyle)
Definition: Styles.cpp:1477
void onDownloadProgress()
Definition: MapDownloadsModel.cpp:97
void DumpStatistics() const
Definition: Database.cpp:915
Definition: WidthFeature.h:30
void readyChange(bool ready)
QString units
Definition: MapRenderer.h:108
void RegisterLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const Vertex2D &point, const LabelData &data, double objectWidth=10.0)
Definition: LabelLayouter.h:695
std::vector< Glyph< NativeGlyph > > ToGlyphs() const
Implementation have to be provided by backend.
Definition: MapPainterAgg.cpp:349
static bool IsHexString(const std::string &hexString)
Definition: Color.cpp:143
const std::vector< TypeInfoRef > & GetRouteTypes() const
Returns an array of the (ignore=false) route types available.
Definition: TypeConfig.h:1238
const std::vector< TypeInfoRef > & GetNodeTypes() const
Returns an array of the (ignore=false) node types available.
Definition: TypeConfig.h:1194
ObjectFileRef objectRef
Definition: IconLookup.h:50
std::shared_ptr< Postprocessor > PostprocessorRef
Definition: RoutePostprocessor.h:153
virtual void SetMagnificationValue(int attribute, const Magnification &value)=0
@ CalculatePaths
Calculate the paths to draw based on the given ways.
Definition: MapPainter.h:70
typename OrderList::iterator CacheRef
Definition: Cache.h:98
~Database()
Definition: Database.cpp:186
Q_INVOKABLE QString bearing(double lat1, double lon1, double lat2, double lon2)
Definition: LocationInfoModel.cpp:379
std::string GetDebugString() const override
Definition: RouteDescription.cpp:301
Attribute
Definition: Styles.h:1224
uint32_t GetY() const
Definition: Tiling.h:81
bool TestAngleVariance(double startOffset, double endOffset, double maximumAngle) const
Test how squiggly is path in given offsets.
Definition: LabelPath.cpp:103
static const uint32_t MAX_FORMAT_VERSION
Definition: TypeConfig.h:1057
void AddToMap(Triangle *triangle)
static const char *const NUMBER_LABEL
Name of the "number" label.
Definition: ColorFeature.h:78
Line & operator<<(bool value)
Definition: Logger.h:142
@ skipChildren
Do not visit child regions, but continue with traversal.
Definition: Location.h:100
const character charmap_e1_be[]
Definition: utf8helper_charmap.cpp:2119
TagId tagJunction
Definition: TypeConfig.h:1113
ObjectFileRef ref
Definition: MapPainter.h:175
static void CleanupSearchPatterns(std::list< TokenStringRef > &patterns)
Definition: LocationService.cpp:1118
Definition: Projection.h:45
@ refNode
Definition: ObjectRef.h:141
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: MaxSpeedFeature.cpp:68
double GetIconPadding() const
Definition: MapParameter.h:319
Definition: SidewayFeature.h:30
IconStyle & SetPriority(size_t priority)
Definition: Styles.cpp:1664
@ cyclewayTrackRight
Definition: SidewayFeature.h:39
uint32_t GetY() const
Return the y coordinate fo the tile.
Definition: TileId.h:66
void SetLabelLineMaxCharCount(size_t labelLineMaxCharCount)
Definition: MapParameter.cpp:130
static const double gradtorad
Definition: Math.h:26
void SetDefaultFontSize(long defaultFontSize)
Sets the default font size.
Definition: TextLoader.cpp:187
size_t GetOffset() const
Return the file offset within the feature value buffer for the value of this feature.
Definition: TypeFeature.h:280
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: InstalledMapsModel.cpp:93
IconStyle & SetIconName(const std::string &iconName)
Definition: Styles.cpp:1629
virtual bool IsMotorwayLink(const RouteDescription::Node &node) const =0
#define COCO_WCHAR_MAX
Definition: map/include/osmscoutmap/oss/Scanner.h:34
bool startIsClosed
The end of the way is closed, it does not lead to another way or area.
Definition: MapPainter.h:121
void WriteBodyStart()
Definition: HTMLWriter.cpp:222
Definition: PositionAgent.h:65
std::list< CoordBufferRange > clippings
Clipping polygons to be used during drawing of this area.
Definition: MapPainter.h:185
QList< AdminRegionInfoRef > getAdminRegionList() const
Definition: LocationEntry.cpp:193
void onLoadJobFinished(QMap< QString, QMap< osmscout::TileKey, osmscout::TileRef >>)
Definition: TiledMapRenderer.cpp:416
double GetLat() const
Return the latitude value of the coordinate.
Definition: GeoCoord.h:116
FutureBreaker Breaker() const
Definition: CancelableFuture.h:150
void arrivalEstimate(QDateTime arrivalEstimate, osmscout::Distance remainingDistance)
Definition: BuildingFeature.h:30
void Set(const TypeInfoRef &type)
Definition: TypeInfoSet.cpp:50
ObjectFileRef GetPathObject() const
Return the path object that connects the current node to the next node.
Definition: RouteDescription.h:757
Distance(Distance &&d) noexcept
Definition: Distance.h:59
void set(const char *key, int val)
Definition: include/osmscout/ost/Scanner.h:120
std::string GetName() const override
Returns the name of the feature.
Definition: MaxStayFeature.cpp:66
static double ToMeter(double yard)
Definition: Distance.h:316
AbstractRoutingProfile(const TypeConfigRef &typeConfig)
Definition: RoutingProfile.cpp:30
void SetNodeDataCacheSize(unsigned long size)
Definition: Database.cpp:38
Q_INVOKABLE void playSample(const QModelIndex &index, const QStringList &sample)
Definition: InstalledVoicesModel.cpp:130
Definition: TunnelFeature.h:30
void SetMinMM(double minMM)
Definition: StyleConfig.cpp:114
Definition: RoutePostprocessor.h:250
N BitsToBytes(N bits)
Definition: Number.h:306
@ NameRole
Definition: MapObjectInfoModel.h:54
void FlushCache()
Definition: DataFile.h:273
bool operator!=(const Pixel &other) const
Definition: Pixel.h:67
void DrawMap(RenderSteps startStep=RenderSteps::FirstStep, RenderSteps endStep=RenderSteps::LastStep)
OpenGL draw call.
Definition: MapPainterOpenGL.cpp:1110
#define ARRAY2V2DI(name)
Definition: SSEMath.h:34
void onLocationDescription(const osmscout::GeoCoord location, const QString database, const osmscout::LocationDescription description, const QList< AdminRegionInfoRef > regions)
Definition: LocationInfoModel.cpp:269
virtual ~AreaIndex()
Definition: AreaIndex.cpp:54
virtual ~MultiDBRoutingState()=default
void ProcessLabel(const Projection &projection, const MapParameter ¶meter, const Vertex2D &point, LabelInstanceType &instance, double &offset, const LabelData &data, double objectWidth)
Definition: LabelLayouter.h:648
static const uint8_t typeRelation
Condition applies to relations.
Definition: TypeConfig.h:77
const RefType & GetType() const
Definition: ObjectRef.h:207
virtual void RegisterRegularLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const std::vector< LabelData > &labels, const Vertex2D &position, double objectWidth) override
Register regular label with given text at the given pixel coordinate in a style defined by the given ...
Definition: MapPainterSVG.cpp:719
void objectsOnViewRequested(const MapViewStruct &view, const QRectF &filterRectangle)
ShieldStyle & SetTextColor(const Color &color)
Definition: Styles.cpp:1063
Definition: Location.h:66
Distance GetOverallDistance() const
Definition: AbstractRoutingService.h:73
Q_INVOKABLE int columnCount(const QModelIndex &parent=QModelIndex()) const override
Definition: AvailableMapsModel.cpp:284
void SearchingChanged(bool)
static const double tileDPI
Definition: MercatorProjection.cpp:43
Definition: MapService.h:101
Definition: Styles.h:1090
PostalAreaRef postalArea
Definition: LocationService.h:241
void SetRing(uint8_t ring)
Definition: Area.h:226
uint8_t GetSerial() const
Definition: Point.h:73
SunriseSunset()
Definition: client-qt/src/osmscoutclientqt/SunriseSunset.cpp:26
bool operator!=(const MagnificationLevel &other) const
Definition: Magnification.h:83
QString altName
Definition: IconLookup.h:54
double distanceSquare
Definition: IconLookup.h:47
FillStyleProcessorRef GetFillStyleProcessor(size_t typeIndex) const
Definition: MapParameter.cpp:283
cairo_font_extents_t fontExtents
Definition: MapPainterCairo.h:66
void DrawTextLabels(const Projection &, const MapParameter &, Painter *) const
Definition: LabelLayouter.h:542
Definition: LabelProvider.h:80
Definition: StyleConfig.h:471
Distance distance
Estimate distance from route start.
Definition: RouteStep.h:85
PathTextStyle()
Definition: Styles.cpp:1304
@ sidewalkTrackRight
Definition: SidewayFeature.h:35
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: PostalCodeFeature.cpp:63
void Set(uint16_t x, uint16_t y, bool coast)
Definition: GroundTile.h:77
bool operator<(const TextStyle &other) const
Definition: Styles.cpp:1025
void Read(const TypeConfig &typeConfig, FileScanner &scanner)
Read the data from the given FileScanner.
Definition: Way.cpp:74
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: GradeFeature.cpp:24
@ Downloading
Definition: AvailableVoicesModel.h:90
const LabelProviderRef & GetLabel() const
Definition: Styles.h:679
std::string GetDebugString() const override
Definition: RouteDescription.cpp:77
bool SearchForLocationByString(const LocationStringSearchParameter &searchParameter, LocationSearchResult &result) const
Definition: LocationService.cpp:1864
bool owns_lock() const noexcept
Definition: ReadWriteLock.h:150
bool operator()(const RNodeRef &a, const RNodeRef &b) const
Definition: RoutingService.h:283
Definition: LookupModule.h:47
Color Lighten(double factor) const
Definition: Color.h:140
bool DrawMap(const Projection &projection, const MapParameter ¶meter, const MapData &data, cairo_t *draw, RenderSteps startStep=RenderSteps::FirstStep, RenderSteps endStep=RenderSteps::LastStep)
Definition: MapPainterCairo.cpp:1298
void PrefillDataFromCache(Tile &tile, const TypeInfoSet &nodeTypes, const TypeInfoSet &wayTypes, const TypeInfoSet &areaTypes, const TypeInfoSet &routeTypes, const TypeInfoSet &optimizedWayTypes, const TypeInfoSet &optimizedAreaTypes)
(Partially) prefill the given tiles with data already cached with data of the given types.
Definition: DataTileCache.cpp:298
@ IndexedAdminRegionRole
Definition: SearchLocationModel.h:184
ScreenMask * GetCanvas(LabelData data)
Definition: LabelLayouter.h:350
void SetCurrentMaxDistance(const Distance ¤tMaxDistance)
Definition: AbstractRoutingService.h:68
void DrawSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const Vertex2D &screenPos, double scaleFactor) override
Draw the Symbol as defined by the SymbolStyle at the given pixel coordinate (symbol center).
Definition: MapPainterQt.cpp:665
TypeInfo & SetInternal()
Mark this type as internal.
Definition: TypeConfig.cpp:118
ObjectFileRefStreamWriter(FileWriter &writer)
Definition: FileWriter.cpp:1405
@ DescriptionRole
Definition: AvailableVoicesModel.h:83
std::string LocaleStringToUTF8String(const std::string &text)
Definition: String.cpp:607
std::shared_ptr< POIService > POIServiceRef
Definition: POIService.h:70
virtual bool IsFlagSet(size_t) const
Definition: TypeFeature.h:55
std::string GetDisplayText() const
Definition: Tiling.h:256
double jtransit
Definition: src/osmscout/util/SunriseSunset.cpp:63
void SetMaxSpeed(uint8_t maxSpeed)
Definition: MaxSpeedFeature.h:44
QDir target
Definition: FileDownloader.h:140
@ DescriptionRole
Definition: InstalledVoicesModel.h:71
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: PostalCodeFeature.h:80
double Value(const class Distance &d) const override
Definition: Distance.h:244
static double DELTA_ANGLE
We rotate in 16 steps.
Definition: MapWidget.cpp:37
TagId RegisterTag(const std::string &tagName)
Definition: Tag.cpp:228
void Warning(const std::string &text) override
Definition: Progress.cpp:172
TileId GetMax() const
Definition: TileId.h:264
Definition: NameAltFeature.h:30
void AddNodeTextStyle(const StyleFilter &filter, TextPartialStyle &stype)
Definition: StyleConfig.cpp:954
std::shared_ptr< Label< NativeGlyph, NativeLabel > > label
Definition: LabelLayouter.h:155
FileOffset GetNextFileOffset() const
Definition: Area.h:251
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: TunnelFeature.cpp:36
void WriteHeaderStart(const std::string &title, const std::string &description, const std::string &keywords, const std::string &stylesheetLocation)
Definition: HTMLWriter.cpp:159
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) const
Definition: Engine.cpp:44
FeatureRef GetFeature(const std::string &name) const
Return the feature with the given name or an invalid reference if no feature with the given name is r...
Definition: TypeConfig.cpp:838
bool IsOnewayForward() const
Definition: AccessFeature.h:200
double getLon() const
Definition: LocationEntry.cpp:245
@ timeDeltaRole
Definition: RouteStep.h:76
void onTimeout()
Definition: NavigationModule.cpp:229
@ laneBackwardThroughRight
@ AfterPreprocessing
Additional postprocessing.
Definition: MapPainter.h:74
const TileAreaData & GetOptimizedAreaData() const
Return a read-only reference to the optimized area data.
Definition: DataTileCache.h:358
uint8_t capacity
Definition: ChargingStationFeature.h:51
void LayoutTextLayout(const QFontMetrics &fontMetrics, qreal proposedWidth, QTextLayout &layout, QRectF &boundingBox)
Definition: MapPainterQt.cpp:264
Async worker provides simple tool for providing asynchronous method calls.
Definition: AsyncWorker.h:39
@ laneForwardLeft
when way has explicit turns, following offsets may be used to decorate them specially
Definition: StyleDescription.h:104
void SetName(const std::string_view &name)
Definition: NameFeature.h:45
double y
Definition: MapPainterAgg.h:51
AreaAreaIndexRef GetAreaAreaIndex() const
Definition: Database.cpp:472
codepoint u
Definition: utf8helper.h:76
void SetLabelLineFitToArea(bool labelLineFitToArea)
Definition: MapParameter.cpp:134
virtual ~OnlineTileProviderModel()
Definition: OnlineTileProviderModel.h:95
void onDatabaseListChanged()
Definition: InstalledMapsModel.cpp:42
void DeleteLater()
Definition: AsyncWorker.cpp:61
Coord(uint16_t x, uint16_t y, bool coast)
Definition: GroundTile.h:68
void SetLinearInterpolationUsage(bool useLinearInterpolation)
Switch to enable/disable linear interpolation of latitude to pixel computation.
Definition: MercatorProjection.h:175
virtual int queueCount() const =0
returns the track count in the playlist
TypeInfo & SetOptimizeLowZoom(bool optimize)
Set, if an object of this type should be optimized for low zoom.
Definition: TypeConfig.h:552
static const std::string LABEL_KEY_GEOMETRY_LAYER
Definition: DescriptionService.h:181
Future provides mechanism to access result of asynchronous computation.
Definition: CancelableFuture.h:40
FileOffset GetFileOffset() const
Definition: Route.h:83
Definition: BatchMapPainter.h:42
void onTargetReached(const osmscout::Bearing targetBearing, const osmscout::Distance targetDistance)
Definition: NavigationModel.cpp:179
static std::string GetIndexFilename(const std::string &filenamebase)
Definition: RoutingService.cpp:83
virtual ~ProcessingQueue()=default
void SetWarningObjectCountLimit(size_t limit)
Definition: MapParameter.cpp:250
void mapDpiChangeSignal(double)
double contourLabelSpace
Same value as in MapParameter but converted to pixel.
Definition: MapPainter.h:275
Vertex2D GetLast() const
Return the last element on the path.
Definition: Transformation.h:426
void onJobFailed(QString errorMessage)
Definition: VoiceManager.cpp:198
bool Open(const std::string &path, bool memoryMapped)
Definition: NumericIndex.h:271
Definition: StyleDescription.h:175
~TypeConfig()
Definition: TypeConfig.cpp:818
SidewayFeature()
Definition: SidewayFeature.cpp:54
NameFeatureValueReader nameReader
Definition: SearchModule.h:50
Definition: InputHandler.h:493
Definition: LocationDescriptionService.h:119
const std::string & GetSlot() const
Definition: Styles.h:570
void Close()
Definition: FileWriter.cpp:72
uint8_t targetIndex
The index of the target path.
Definition: RouteNode.h:89
Definition: map/include/osmscoutmap/oss/Parser.h:86
@ CW
Definition: utils.h:44
GeoBoxPartitioner(const GeoBox &box, Direction direction, size_t parts)
Definition: Geometry.h:1507
OptimizeAreasLowZoomRef GetOptimizeAreasLowZoom() const
Definition: Database.cpp:637
void ParametrizeForFoot(const TypeConfig &typeConfig, double maxSpeed) override
Definition: RoutingProfile.h:372
CmdLineParseResult Parse(CmdLineScanner &scanner) override
Definition: CmdLineParsing.h:208
std::shared_ptr< StyleConstant > StyleConstantRef
Definition: StyleConfig.h:104
static double tileDPI()
Definition: OSMTile.h:65
std::vector< Coord > coords
Optional coordinates for coastline.
Definition: GroundTile.h:99
bool isDownloading() const
Definition: FileDownloader.h:197
QString GetUnits() const
Definition: QmlSettings.cpp:135
Vertex2D PointAtLength(double offset) const
Definition: LabelPath.cpp:65
RoutableObjectsRequestMessage(const Timestamp ×tamp, const GeoBox &bbox)
Definition: DataAgent.cpp:71
Magnification(double magnification) noexcept
Create specific magnification.
Definition: Magnification.h:174
void AddWayPathShieldStyle(const StyleFilter &filter, PathShieldPartialStyle &style)
Definition: StyleConfig.cpp:994
Definition: BrandFeature.h:30
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: BrandFeature.cpp:24
CacheEntry(const K &key)
Definition: Cache.h:69
bool operator==(const ScanCell &other) const
Definition: Geometry.h:1163
SunriseSunsetRes GetSunriseSunset(const GeoCoord &location, const Timestamp &day, double sunAltitude)
Calculate the sunrise and sunset times for the given date, given location, and sun altitude.
Definition: src/osmscout/util/SunriseSunset.cpp:285
void Set(uint8_t serial, const GeoCoord &coords)
Definition: Point.h:51
bool DrawMap(const Projection &projection, const MapParameter ¶meter, const MapData &data, QPainter *painter, RenderSteps startStep=RenderSteps::FirstStep, RenderSteps endStep=RenderSteps::LastStep)
Definition: MapPainterQt.cpp:1037
static std::vector< GLfloat > TriangulateWithHoles(std::vector< std::vector< osmscout::Point >> points)
Triangulate a polygon with hole.
Definition: Triangulate.cpp:117
Database(const DatabaseParameter ¶meter)
Definition: Database.cpp:180
@ SelectedRole
Definition: InstalledVoicesModel.h:72
const std::unordered_set< std::string > & GetGroups() const
Return the set of groups the type is in.
Definition: TypeConfig.h:705
static const double MaxLat
Definition: MercatorProjection.h:58
static const std::string LABEL_KEY_GEOMETRY_ISIN
Definition: DescriptionService.h:182
bool HasSidewalkTrackRight() const
Definition: SidewayFeature.h:63
Bearing operator-(const Bearing &d) const
Definition: Bearing.h:77
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: SearchLocationModel.cpp:366
bool IsRestricted(Vehicle vehicle) const
Definition: RouteNode.h:118
void OST()
Definition: src/osmscout/ost/Parser.cpp:131
int GetFirstRow() const
Return starting index of row (y-coordinate of rectangle)
Definition: LabelLayouterHelper.h:137
ValueSizer returns the size (in bytes) of an individual cache value.
Definition: Cache.h:89
void SetSize(size_t cacheSize)
Change the size of the cache.
Definition: MapTileCache.h:106
double GetPlateLabelPadding() const
Definition: MapParameter.h:294
void Reset()
Definition: FileWriter.cpp:1411
void clearJobs()
Clear all file download jobs, it removes temporary *.download files.
Definition: FileDownloader.cpp:309
const TileWayData & GetOptimizedWayData() const
Return a read-only reference to the optimized way data.
Definition: DataTileCache.h:350
std::string GetName() const override
Returns the name of the feature.
Definition: LayerFeature.cpp:61
void SetSRTMDirectory(const std::string_view &directory)
Definition: Database.h:121
Node * LocatePoint(const Point *point)
CmdLineParser(const std::string &appName, int argc, char *argv[])
Definition: CmdLineParsing.cpp:329
bool ResolveAdminRegionHierachie(const AdminRegionRef ®ion, std::map< FileOffset, AdminRegionRef > &refs) const
Definition: LocationIndex.cpp:783
std::string character
Definition: MapPainterCairo.h:70
std::vector< DoneCallback > callbacks
Definition: CancelableFuture.h:51
Definition: LabelLayouterHelper.h:177
void PopEntry()
Definition: RouteData.h:125
std::vector< double > emptyDash
Presets, precalculations and similar.
Definition: MapPainter.h:271
Definition: RouteDescription.h:672
LineStyle & SetZIndex(int zIndex)
Definition: Styles.cpp:297
double GetMagLevel() const
Definition: InputHandler.h:218
bool GetRegions(const GeoBox &boundingBox, const Magnification &magnification, std::list< GroundTile > &tiles) const
Definition: WaterIndex.cpp:248
std::string GetName() const
Definition: Styles.h:1145
size_t GetExitCount() const
Definition: RouteDescription.h:230
DBId id
The file offset of the current route node.
Definition: RoutingService.h:223
void SetValue(const T &value)
Definition: CancelableFuture.h:138
virtual Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const
Definition: OnlineTileProviderModel.cpp:24
double GetMaxLon() const
Return the maximum longitude of the GeBox.
Definition: GeoBox.h:232
@ AltLangName
Definition: SearchLocationModel.h:185
void Initialize(FileOffset fileOffset, const Point &point)
Definition: RouteNode.h:161
size_t GetPriority() const
Definition: Styles.h:488
Definition: NetworkFeature.h:30
WriteLock(Latch &latch)
Definition: ReadWriteLock.h:195
Q_INVOKABLE QObject * createOverlayObject(int row) const
Definition: MapObjectInfoModel.cpp:107
Color Decolor() const
Definition: Color.h:164
virtual ~MapPainter()
Definition: MapPainter.cpp:217
Definition: CoordDataFile.h:33
static Distance Min()
returns the smallest finite value of the given type
Definition: Distance.cpp:43
TypeInfo & SetLanes(uint8_t lanes)
Definition: TypeConfig.h:678
uint32_t GetPOIMaxWords() const
Definition: LocationIndex.h:209
@ attrOffset
Definition: Styles.h:91
void Close()
Definition: AreaNodeIndex.cpp:34
const LabelProviderRef & GetLabel() const
Definition: Styles.h:575
std::vector< FileOffset > GetMemberOffsets() const
Definition: Route.cpp:25
int16_t ReadInt16()
Definition: FileScanner.cpp:633
Move GetTurn() const
Definition: RouteDescription.h:308
std::shared_ptr< DistanceUnit > DistanceUnitPtr
Definition: Distance.h:201
virtual void setCurrentIndex(int index)=0
set the track index to play
@ DrawLabels
Definition: MapPainter.h:90
StyleColorAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:196
virtual ~FeatureToDescriptionProcessor()
Definition: DescriptionService.cpp:123
Definition: Database.h:173
bool Empty() const
Definition: TypeInfoSet.h:168
static std::string Base64Encode(const std::vector< char > &in)
Definition: Base64.h:20
QString getAuthor() const
Definition: Voice.h:98
uint8_t GetWidth() const
Definition: WidthFeature.h:49
Definition: WebsiteFeature.h:66
QString getLang() const
Definition: Voice.h:78
Utility class for downloading map db described by AvailableMapsModelMap over http.
Definition: MapDownloader.h:48
Line Log(Level) override
The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to.
Definition: Logger.h:340
bool Open(const std::string &path)
Definition: BasemapDatabase.cpp:53
bool IsLinearInterpolationEnabled() const
Definition: MercatorProjection.h:166
bool HasMultipleExits() const
Definition: RouteDescription.h:235
virtual void DrawLabels(const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterSVG.cpp:774
bool HasSingleLane() const
Definition: LanesFeature.h:58
StyleFilter()
Definition: StyleConfig.cpp:182
FileOffset bitmapOffset
Definition: AreaIndex.h:49
Definition: SearchModule.h:157
virtual osmscout::RefType getObjectType() const
Definition: OverlayObject.h:85
bool IsEqual(const ScanCell &other) const
Definition: Geometry.h:1173
const std::list< DescriptionEntry > & GetEntries() const
Definition: DescriptionService.h:116
bool IsSuccess() const
Definition: MapRenderer.h:74
Definition: sweep_context.h:51
const Color & GetLineColor() const
Definition: Styles.h:153
Definition: StyleDescription.h:477
static const double MinLat
Definition: MercatorProjection.h:59
void DumpStatistics() const
Definition: NumericIndex.h:453
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: MaxSpeedFeature.cpp:164
std::vector< RouteRef > routes
Routes as retrieved from db.
Definition: MapData.h:51
int y
Definition: Geometry.h:1153
QObject route
Definition: NavigationModel.h:46
void SetRenderUnknowns(bool render)
Definition: MapParameter.cpp:225
std::shared_ptr< StringMatcher > StringMatcherRef
Definition: StringMatcher.h:46
int64_t OSMId
Definition: OSMScoutTypes.h:33
void SetCrossingDescription(const LocationCrossingDescriptionRef &description)
Definition: LocationDescriptionService.cpp:129
void updateNext(RouteStep nextRouteInstruction)
static Parser::Exit _p3_u4(Parser *p, byte bb)
Definition: utf8helper.cpp:451
MemoryMonitor()
Definition: MemoryMonitor.cpp:34
void SetView(float, float)
Definition: OpenGLMapData.h:341
void SetLabelValue(int attribute, const LabelProviderRef &value) override
Definition: StyleConfig.h:435
bool operator<(const TileCacheKey &a, const TileCacheKey &b)
Definition: TileCache.cpp:44
size_t GetTargetNodeIndex() const
Definition: RouteData.h:82
const Color & GetTextColor() const
Definition: Styles.h:684
size_t GetPosition() const
Definition: Styles.h:580
FeatureValue * AllocateValue(void *buffer) override
Definition: ChargingStationFeature.cpp:132
bool AreaIsCCW(const std::vector< N > &edges)
Definition: Geometry.h:816
bool isDirectory() const override
Definition: AvailableMapsModel.h:150
void onlineTilesEnabledSignal(bool)
Definition: InputHandler.h:115
double maxAllowedSpeed
Definition: SpeedAgent.h:39
Definition: RoutePostprocessor.h:382
void put(uint32_t zoomLevel, uint32_t x, uint32_t y, const QImage &image, size_t epoch=0)
Definition: TileCache.cpp:189
bool operator!=(const Point &a, const Point &b)
Definition: shapes.h:255
CapStyleEnumAttributeDescriptor(const std::string &name, int attribute)
Definition: Styles.h:236
const FeatureInstance & GetFeature(size_t idx) const
Definition: Route.h:138
Definition: FeeFeature.h:88
QStringList GetTypes() const
Definition: NearPOIModel.h:204
@ bicycle
Definition: AccessRestrictedFeature.h:35
BoundingBoxDataFileRef GetBoundingBoxDataFile() const
Definition: Database.cpp:296
Definition: TurnRestriction.h:34
std::input_iterator_tag iterator_category
Definition: Tiling.h:116
void SetAction(const std::string &action) override
Definition: Progress.cpp:108
constexpr bool debugLabelLayouter
Definition: LabelLayouter.h:42
std::vector< TypeInfoSet > areaTypeSets
Definition: StyleConfig.h:628
void GetAreaBorderStyles(const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection, std::vector< BorderStyleRef > &borderStyles) const
Definition: StyleConfig.cpp:1362
Definition: SidewayFeature.h:95
bool ExistsInFilesystem(const std::string &filename)
Definition: File.cpp:97
void loadStyle(QString stylesheetFilename, std::unordered_map< std::string, bool > stylesheetFlags)
Definition: StyleModule.cpp:49
Definition: ArrivalEstimateAgent.h:29
double GetY() const
Definition: Pixel.h:198
@ cyclewayLaneRight
Definition: SidewayFeature.h:37
bool RenameFile(const std::string &oldFilename, const std::string &newFilename)
Rename a file.
Definition: File.cpp:57
AreaRegionSearchResult LoadAreasInArea(const TypeInfoSet &types, const GeoBox &boundingBox) const
Load areas of given types in the given geo box.
Definition: Database.cpp:1336
GradeFeatureValueReader gradeReader
Definition: RoutingProfile.h:195
virtual bool IsRoundabout(const RouteDescription::Node &node) const =0
bool operator==(const TypeInfoSetConstIterator &other) const
Definition: TypeInfoSet.h:80
DebugDatabase(const DebugDatabaseParameter ¶meter)
Definition: DebugDatabase.cpp:33
std::string text
The label text.
Definition: LabelLayouter.h:127
@ operatorGreater
Definition: Parsing.h:37
virtual ~RoutingService()
Definition: RoutingService.cpp:97
Definition: ClockwiseDirectionFeature.h:30
bool operator==(const OSMTileId &other) const
Definition: Tiling.h:89
void SetWayDescription(const LocationWayDescriptionRef &description)
Definition: LocationDescriptionService.cpp:124
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: OpeningHoursFeature.cpp:76
double GetPatternSize() const
Definition: MapParameter.h:329
unsigned int GetHeight() const
Definition: Styles.h:969
static QString FullTurnCommand(const RouteDescription::DirectionDescriptionRef &directionDescription)
Definition: RouteDescriptionBuilder.cpp:100
@ AuthorRole
Definition: InstalledVoicesModel.h:70
Definition: MapService.h:53
std::chrono::duration< double, std::nano > NanoDouble
Definition: StopClock.cpp:28
void SetOverlayLabelPadding(double padding)
Definition: MapParameter.cpp:154
Definition: CancelableFuture.h:108
TextStyle & SetAutoSize(bool autoSize)
Definition: Styles.cpp:956
const glm::mat4 & GetModel() const
Definition: OpenGLMapData.h:385
virtual Line Log(Level level)=0
The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to.
PostalAreaRef postalArea
Postal area the object is in, if set.
Definition: LocationDescriptionService.h:364
TextStyle & SetLabel(const LabelProviderRef &label)
Definition: Styles.cpp:914
const std::list< DrawPrimitiveRef > & GetPrimitives() const
Definition: Styles.h:1155
void LANES(TypeInfo &typeInfo)
Definition: src/osmscout/ost/Parser.cpp:843
Definition: AreaRouteIndex.h:48
@ PhoneRole
Definition: MapObjectInfoModel.h:56
double trWidth
width after rotation
Definition: LabelLayouter.h:110
codepoint operator[](size_t pos) const
Returns the character at the position pos.
Definition: utf8helper.h:161
virtual ~KeywordMap()=default
std::string GetDebugString() const override
Definition: RouteDescription.cpp:519
static bool IsOverlay(const LabelData &labelData)
Definition: LabelLayouter.h:265
HourDuration GetMaxPenalty() const
Definition: RoutingProfile.h:434
int charPos
Definition: include/osmscout/ost/Scanner.h:50
@ GravelGrade
Definition: RoutingProfile.h:60
void AddAreaBorderStyle(const StyleFilter &filter, BorderPartialStyle &style)
Definition: StyleConfig.cpp:1010
std::shared_ptr< PTRoute > PTRouteRef
Definition: PublicTransport.h:257
void download(uint32_t, uint32_t, uint32_t)
Definition: TiledMapOverlay.cpp:68
AccessRestrictedFeatureValue(uint8_t access)
Definition: AccessRestrictedFeature.h:45
void Reset() override
Reset the state of the breaker.
Definition: CancelableFuture.h:102
std::shared_ptr< Breaker > BreakerRef
Definition: Breaker.h:64
Definition: Magnification.h:142
std::string DurationString(const Duration &duration)
Definition: String.cpp:728
POIRef GetPOI() const
Definition: Location.h:298
bool GetMergeAreas() const
Definition: TypeConfig.h:642
std::string GetPatternName() const
Definition: Styles.h:331
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: FromToFeature.cpp:65
static const std::string LABEL_KEY_CHARGINGSTATION_SOCKET_CAPACITY
Definition: DescriptionService.h:340
std::string UTF8NormForLookup(const std::string &text)
Normalise the given std::string containing a UTF8 character sequence for tolerant comparison.
Definition: String.cpp:627
Definition: AccessFeature.h:30
Q_INVOKABLE QObject * get(int row) const
Definition: NearPOIModel.cpp:132
virtual void clearQueue()=0
clear the playlist
@ MostlySoftGrade
Definition: RoutingProfile.h:62
int GetTextureWidthSum(int index)
Definition: OpenGLMapData.h:324
static StyleDescriptorRef GetDescriptor()
Definition: Styles.cpp:1780
double Normalize()
Convert this point into a unit point. Returns the Length.
Definition: shapes.h:112
std::shared_ptr< SizeCondition > SizeConditionRef
Definition: StyleConfig.h:220
void SetDoubleValue(int attribute, double value) override
Definition: StyleConfig.h:405
DatabaseId GetDatabaseId() const
Definition: RouteDescription.h:562
NameDescriptionRef GetTargetDescription() const
Definition: RouteDescription.h:201
std::string Substr(size_t pos, size_t n=(-1)) const
Returns a std::string object with the substring of n characters of this string, starting at the posit...
Definition: utf8helper.cpp:273
double x
Coordinate of the left, top edge of the text / icon / symbol.
Definition: LabelLayouter.h:152
std::string GetFilename() const
Definition: BoundingBoxDataFile.h:57
double GetAlpha() const
Definition: Styles.h:756
QJSValue getCompare() const
Definition: SearchLocationModel.h:197
Log()
Definition: Logger.cpp:99
void TokenizeString(const std::string &input, std::list< std::string > &tokens)
Definition: String.cpp:380
void SetCondition(const std::string_view &condition)
Definition: FeeFeature.h:66
Custom data structure to efficiently handle a set of TypeInfoRef.
Definition: TypeInfoSet.h:109
void SetValue(const std::string &value)
Definition: MaxStayFeature.h:45
Consumer(ProcessingQueue< E > &inQueue)
Definition: Worker.h:165
Id exclude
excluded node to go, similar to route-node excludes, but used by routing service when initial bearing...
Definition: RoutingService.h:226
virtual void FlushVisualCaches(const std::chrono::milliseconds &idleMs)
Definition: PlaneMapRenderer.cpp:103
void RegisterContourLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const PathLabelData &label, const LabelPath &labelPath) override
Register contour label.
Definition: MapPainterNoOp.cpp:67
static const char *const AREAS_DAT
Definition: AreaDataFile.h:37
std::string ToStdString() const
Returns a std::string object with the data contained in this string.
Definition: utf8helper.cpp:263
LocationDescriptionService::ReverseLookupRef reverseLookupRef
Definition: LookupModule.h:83
StyleUDisplayAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:295
FileOffset GetNextFileOffset() const
Definition: Route.h:88
Definition: LocationEntry.h:46
CmdLineStringArgParser(SetterFunction &&setter)
Definition: CmdLineParsing.cpp:216
CmdLineScanner(int argc, char *argv[])
Definition: CmdLineParsing.cpp:33
double speed
Definition: SpeedAgent.h:31
void Write(const ObjectFileRef &ref)
Definition: FileWriter.cpp:1420
void GetMaxLevelInConditionals(const std::list< ConditionalStyle< S, A > > &conditionals, size_t &maxLevel)
Definition: StyleConfig.cpp:470
Definition: CoverageIndex.h:40
bool Get(IteratorIn begin, IteratorIn end, size_t size, std::vector< RouteNodeRef > &data) const
Definition: RouteNodeDataFile.h:98
QHash< int, QByteArray > roleNames() const override
Definition: AvailableVoicesModel.cpp:273
static void MapPathOnPath(cairo_t *draw, cairo_path_t *srcPath, cairo_path_t *dstPath, double xOffset, double yOffset)
Definition: MapPainterCairo.cpp:240
TileKey GetKey() const
Return the id of the tile.
Definition: DataTileCache.h:294
std::shared_ptr< ShortestPathRoutingProfile > ShortestPathRoutingProfileRef
Definition: RoutingProfile.h:354
TypeInfo(const std::string &name)
Definition: TypeConfig.cpp:77
StyleCriteria(const StyleFilter &other)
Definition: StyleConfig.cpp:242
Scanner(const unsigned char *buf, size_t len)
Definition: map/src/osmscoutmap/oss/Scanner.cpp:157
int32_t ReadInt32Number()
Definition: FileScanner.cpp:1845
OSMSCOUT_CLIENT_QT_API QDateTime TimestampToQDateTime(const osmscout::Timestamp &ts)
Definition: QtStdConverters.cpp:42
void AREAICONSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1577
static const std::string LABEL_KEY_NAME_NAME_ALT
Definition: DescriptionService.h:157
QString name
Definition: AvailableMapsModel.h:43
void positionEstimate(const osmscout::PositionAgent::PositionState state, const osmscout::GeoCoord coord, const std::optional< osmscout::Bearing > bearing)
void Read(FileScanner &scanner)
Read the FeatureValueBuffer from the given FileScanner.
Definition: TypeConfig.cpp:523
virtual void DrawLabels(const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterAgg.cpp:439
GeoBox GetCurrentGeoBox() const
Definition: Geometry.h:1527
void Loop()
Definition: AsyncWorker.cpp:45
bool IsError() const
Definition: Logger.h:395
static const Color DARK_BLUE
Definition: Color.h:65
void DrawGround(const Projection &projection, const MapParameter ¶meter, const FillStyle &style) override
(Optionally) fills the area with the given default color for ground.
Definition: MapPainterQt.cpp:831
void SetPenaltyDifferentType(const Distance &d)
Definition: RoutingProfile.h:429
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:530
bool UpdateCurrentLocation(const GeoCoord &location, double &minDistance)
Definition: Navigation.h:179
static void RegisterQmlTypes(const char *uri="net.sf.libosmscout.map", int versionMajor=1, int versionMinor=0)
Definition: OSMScoutQt.cpp:189
double GetFontSize() const
Definition: MapParameter.h:204
LabelStyle & SetPriority(size_t priority)
Definition: Styles.cpp:772
virtual NodeRef GetJunctionNode(const RouteDescription::Node &node) const =0
bool operator==(const FeatureValue &other) const override
Definition: ConstructionYearFeature.cpp:50
friend SimpleRoutingService
Definition: SimpleRoutingService.h:73
const FeatureValueBuffer & GetFeatureValueBuffer() const
Definition: Way.h:108
QVariantMap speedTable
Definition: QmlRoutingProfile.h:46
void SetTypes(QStringList t)
Definition: NearPOIModel.h:209
const character charmap_d4[]
Definition: utf8helper_charmap.cpp:1370
size_t GetStart() const
Return the index of the first element.
Definition: Transformation.h:435
void addPoint(double lat, double lon)
Definition: OverlayObject.cpp:102
virtual void SetColorValue(int attribute, const Color &value)
Definition: StyleDescription.cpp:38
virtual bool RenderMap(QPainter &painter, const MapViewStruct &request)
Render map defined by request to painter.
Definition: PlaneMapRenderer.cpp:120
bool operator==(const TileIdBox &other) const
Definition: TileId.h:326
bool pending
if pending is false, request is currently processing
Definition: TileCache.h:85
void DrawIcon(const IconStyle *style, const Vertex2D ¢erPos, double width, double height) override
Draw the Icon as defined by the IconStyle at the given pixel coordinate (icon center).
Definition: MapPainterSVG.cpp:858
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: AvailableVoicesModel.cpp:171
size_t GetPos()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:134
double DurationAsSeconds(Duration duration)
Definition: Time.h:33
Definition: LocationInfoModel.h:36
std::string GetName() const override
Returns the name of the feature.
Definition: EleFeature.cpp:111
bool GetCoords(const std::set< OSMId > &ids, CoordDataFile::ResultMap &coordsMap) const
Definition: DebugDatabase.cpp:73
time_t MkTimeUTC(struct tm *timeptr)
https://stackoverflow.com/a/9088549/1632737
Definition: String.cpp:666
static bool SearchForPOIForRegion(LocationIndexRef &locationIndex, const SearchParameter ¶meter, const std::list< std::string > &poiTokens, const AdminRegionSearchVisitor::Result ®ionMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult &result, BreakerRef &breaker)
Definition: LocationService.cpp:1743
void SetEle(int16_t ele)
Definition: EleFeature.h:44
bool operator==(const FeatureValue &other) const override
Definition: PhoneFeature.cpp:47
void SetMagnificationValue(int attribute, const Magnification &value) override
Definition: Styles.cpp:842
bool operator==(const RNode &other) const
Definition: RoutingService.h:268
QDateTime getCreation() const
Definition: AvailableMapsModel.cpp:59
bool toArea(osmscout::AreaRef &area, const osmscout::TypeConfig &typeConfig) const
Definition: OverlayObject.cpp:244
QVariantMap getSpeedTable() const
Definition: QmlRoutingProfile.cpp:93
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: GradeFeature.cpp:70
void ClearSerial()
Definition: Point.h:63
TokenRef Scan()
Definition: src/osmscout/ost/Scanner.cpp:478
std::string GetName() const override
Returns the name of the feature.
Definition: NameFeature.cpp:69
const Color & GetGapColor() const
Definition: Styles.h:158
void POLYGON(Symbol &symbol)
Definition: map/src/osmscoutmap/oss/Parser.cpp:453
Definition: RouteStateAgent.h:61
double GetMapDPI() const
Definition: QmlSettings.cpp:51
TypeInfo & SetOnewayLanes(uint8_t lanes)
Definition: TypeConfig.h:690
RouterParameter()
Definition: RoutingService.cpp:47
double GetUTurnCost() const override
Definition: RoutingProfile.cpp:362
static bool AreaSorter(const MapPainter::AreaData &a, const MapPainter::AreaData &b)
Return if a > b, a should be drawn before b.
Definition: MapPainter.cpp:104
LocationEntry & operator=(const LocationEntry &other)
copy assignment, Qt ownership is not changed
Definition: LocationEntry.cpp:101
AddressListVisitor(size_t limit)
Definition: Location.cpp:49
bool GetWaysDataMMap() const
Definition: Database.cpp:133
RenderModeEnumAttributeDescriptor(const std::string &name, int attribute)
Definition: Styles.h:1327
static QStringList files()
Definition: Voice.cpp:73
AsyncWorker(const std::string &name)
Definition: AsyncWorker.cpp:26
size_t GetTargetNodeIndex() const
The the index of the target node on the path that is the next node on the route.
Definition: RouteDescription.h:765
Definition: Geometry.h:1189
bool HasOptimizations(double magnification) const
Definition: OptimizeAreasLowZoom.cpp:130
@ attrBorderColor
Definition: Styles.h:721
static const std::string LABEL_KEY_PRESENCE_OPENINGHOURS
Definition: DescriptionService.h:363
Definition: LabelLayouter.h:45
const std::vector< ObjectFileRef > & GetObjects() const
Definition: RouteData.h:87
FeatureValue * AllocateValue(void *buffer) override
Definition: SidewayFeature.cpp:89
size_t GetPriority() const
Definition: Styles.h:882
@ attrLabel
Definition: Styles.h:718
void onLocationAdminRegionFinished(const osmscout::GeoCoord)
Definition: SearchLocationModel.cpp:288
void Wait()
Definition: Worker.h:196
Definition: MapPainterSVG.h:43
CmdLineParseResult()
Definition: CmdLineParsing.cpp:79
void SetAction(std::format_string< Args... > format, Args &&...args)
Definition: Progress.h:70
bool Success() const
Definition: AbstractRoutingService.h:133
Definition: StyleDescription.h:157
Lane()=default
turn that we should take
int GetTextureWidth()
Definition: OpenGLMapData.h:312
void GetTypes(const Magnification &magnification, const TypeInfoSet &wayTypes, TypeInfoSet &availableWayTypes) const
Returns the subset of types of wayTypes that can get retrieved from this index.
Definition: OptimizeWaysLowZoom.cpp:248
void SetUIntValue(int attribute, size_t value) override
Definition: Styles.cpp:1193
bool GetGroundTiles(const Projection &projection, std::list< GroundTile > &tiles) const
Return all ground tiles for the given projection data (bounding box and magnification).
Definition: MapService.cpp:1366
Distance GetDistance()
Definition: Navigation.h:159
Distance & operator=(Distance &&d) noexcept
Definition: Distance.h:64
FileOffset GetNextFileOffset() const
Definition: Node.h:55
bool operator>=(const Distance &d) const
Definition: Distance.h:139
std::vector< Edge * > edge_list
The edges this point constitutes an upper ending point.
Definition: shapes.h:57
int GetDisplayLimit() const
Definition: SearchLocationModel.h:257
void setCompare(const QJSValue &fn)
Definition: SearchLocationModel.h:201
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: AdminLevelFeature.cpp:75
bool Success() const
Definition: CmdLineParsing.cpp:92
virtual ~PartialStyleBase()=default
double getDistance() const
Definition: RouteStep.h:147
double GetIconSize() const
Definition: MapParameter.h:309
ScreenPixelRectangle()=default
QString GetFontName() const
Definition: QmlSettings.cpp:111
void onlineTileProviderChanged(const OnlineTileProvider &provider)
Definition: OsmTileDownloader.cpp:58
double cellHeight
Height of cell.
Definition: GroundTile.h:98
bool HasResolvedMembers() const
Definition: Route.h:95
ScreenMask overlayCanvas
Definition: LabelLayouter.h:292
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: EleFeature.cpp:121
const std::list< WayData > & GetWayData() const
Definition: MapPainter.h:507
bool zoom(double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) override
Definition: InputHandler.cpp:334
std::string GetName() const override
Returns the name of the feature.
Definition: FromToFeature.cpp:71
TypeInfo & SetAreaId(TypeId id)
Set the id of this type.
Definition: TypeConfig.cpp:97
Definition: RouteDescriptionBuilder.h:47
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: AddressFeature.cpp:24
std::string GetDescription() const
Definition: RouteDescription.cpp:137
Line & operator<<(int value)
Definition: Logger.h:163
FeatureValue * AllocateValue(void *buffer) override
Definition: OperatorFeature.cpp:81
MapPainterOpenGL(int width, int height, double dpi, const std::string &fontPath, const std::string &shaderDir, const osmscout::MapParameter ¶meter)
Definition: MapPainterOpenGL.cpp:35
std::string GetFeatureName() const
Definition: FeatureReader.h:124
size_t GetIndex() const
Definition: DescriptionService.h:81
void Clear()
Clears the contents of the string and makes it null.
Definition: utf8helper.cpp:141
std::string GetDescription() const
Definition: RouteDescription.cpp:98
virtual bool RenderMap(QPainter &painter, const MapViewStruct &request)=0
Render map defined by request to painter.
@ attrSymbolSpace
Definition: Styles.h:1228
virtual void SetScreen(const QScreen *)
Definition: MapRenderer.cpp:160
std::string GetName() const override
Returns the name of the feature.
Definition: AccessFeature.cpp:80
bool GetOffsets(IteratorIn begin, IteratorIn end, size_t size, std::vector< FileOffset > &offsets) const
Return the file offsets in the data file for the given object ids.
Definition: NumericIndex.h:432
std::string GetPositionalHint(const std::string &positional) const override
Definition: CmdLineParsing.cpp:287
static const char *const NAME_LABEL
Name of the "name" label.
Definition: LanesFeature.h:144
PhoneFeatureValue & operator=(const FeatureValue &other) override
Definition: PhoneFeature.cpp:36
double angleNegSin
Definition: MercatorProjection.h:47
Definition: StyleConfig.h:128
bool MoveLeft(double pixel)
Definition: MercatorProjection.h:156
MapStyleModel()
Definition: MapStyleModel.cpp:30
void lookupFinished(int requestId)
double GetLength() const
Returns the on-screen length of the path from the first to the last element.
Definition: Transformation.h:472
bool ResolveRouteDataJunctions(RouteData &route) override
Definition: SimpleRoutingService.cpp:278
bool IsVisible() const
Definition: Styles.h:850
MultiDBRoutingState()=default
AdminRegionRef adminRegion
Definition: LocationService.h:239
static const uint64_t MAX_NODES
Definition: FileWriter.h:58
QHash< int, QByteArray > roleNames() const override
Definition: OpeningHoursModel.cpp:138
CrossingWaysDescription(size_t exitCount, const NameDescriptionRef &originDescription, const NameDescriptionRef &targetDescription)
Definition: RouteDescription.cpp:192
static const std::string LABEL_KEY_WAY_ACCESSRESTRICTED_FOOT
Definition: DescriptionService.h:254
std::string GetName() const override
Returns the name of the feature.
Definition: RoundaboutFeature.cpp:31
BreakerRef GetBreaker() const
Definition: RoutingService.h:196
QmlVehicle
Definition: QmlRoutingProfile.h:58
std::string StateStr() const
Definition: PositionAgent.cpp:56
RefFeatureValue & operator=(const FeatureValue &other) override
Definition: RefFeature.cpp:34
static const StyleDescriptorRef pathTextStyleDescriptor
Definition: Styles.cpp:1302
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: LayerFeature.cpp:26
void BeforeDrawing(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterCairo.cpp:650
void SetLogger(const std::shared_ptr< Logger > &logger)
Definition: Logger.cpp:103
Read back a stream of sorted ObjectFileRefs as written by the ObjectFileRefStreamWriter.
Definition: FileScanner.h:274
double DistanceSquare(const N &a, const N &b)
Definition: Geometry.h:417
A ProcessingQueue is a special multi-threaded safe implementation of a queue.
Definition: ProcessingQueue.h:55
OffsetRel GetOffsetRel() const
Definition: Styles.h:218
void ClearNeighbor(Triangle *triangle)
bool HasName() const
Definition: RouteDescription.cpp:446
bool Intersects(const GeoBox &boundingBox) const
Returns true if the nodes is in the given bounding box.
Definition: Node.h:83
GeoCoord GetBottomRight() const
south-east corner
Definition: GeoBox.h:274
Id GetId() const
Returns a fast calculable unique id for the coordinate.
Definition: GeoCoord.cpp:32
void SetOnlineTileProviderId(QString id)
Definition: QmlSettings.cpp:71
Q_INVOKABLE void downloadMap(QObject *map, QString dir)
Definition: MapDownloadsModel.cpp:61
std::shared_ptr< PathShieldStyle > PathShieldStyleRef
Definition: Styles.h:807
const character charmap_e2_82[]
Definition: utf8helper_charmap.cpp:2399
bool Open(const std::string &path)
Definition: DebugDatabase.cpp:39
void AfterDrawing(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterSVG.cpp:614
void onPositionEstimate(const PositionAgent::PositionState state, const GeoCoord coord, const std::optional< osmscout::Bearing > bearing)
Definition: NavigationModel.cpp:161
virtual void DrawGround(const Projection &projection, const MapParameter ¶meter, const FillStyle &style)=0
(Optionally) fills the area with the given default color for ground.
RouteNodeDataFile(const std::string &datafile, size_t cacheSize)
Definition: RouteNodeDataFile.cpp:56
Point * GetPoint(const int &index)
double DegToRad(double deg)
Definition: Geometry.h:61
bool ParseStringArgument(int argc, char *argv[], int ¤tIndex, std::string &value)
Definition: CmdLineParsing.cpp:611
double lineWidth
Line width.
Definition: MapPainter.h:120
TagExistsCondition(TagId tag)
Definition: Tag.cpp:72
void PATHSYMBOLSTYLEATTR(PathSymbolPartialStyle &style)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1527
ScopeGuard utility calls its constructor parameter (callable type) in it's destructor (on the end of ...
Definition: ScopeGuard.h:39
@ InProgressRole
Definition: StyleFlagsModel.h:58
Type
Definition: map/include/osmscoutmap/oss/Parser.h:57
std::string GetName() const override
Returns the name of the feature.
Definition: TunnelFeature.cpp:31
LaneTurn GetTurn() const
Definition: RouteDescription.h:660
TokenRef next
Definition: map/include/osmscoutmap/oss/Scanner.h:54
@ TargetDirectoryRole
Definition: MapDownloadsModel.h:62
Definition: TileCache.h:83
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: LocationInfoModel.cpp:99
const char * what() const noexcept override
Definition: Exception.cpp:40
Definition: ChargingStationFeature.h:86
@ AltLangName
Definition: NearPOIModel.h:93
std::map< FileOffset, AreaRef > areas
Definition: DataAgent.h:34
void CalculateUsedTypes(const TypeConfig &typeConfig, const std::list< ConditionalStyle< S, A > > &conditionals, size_t maxLevel, std::vector< TypeInfoSet > &typeSets)
Definition: StyleConfig.cpp:483
ConstructionYearFeatureValue(int startYear, int endYear)
Definition: ConstructionYearFeature.h:39
static const uint32_t MIN_FORMAT_VERSION
Definition: TypeConfig.h:1056
Errors(const Log &log)
Definition: map/src/osmscoutmap/oss/Parser.cpp:2484
int line
Definition: map/include/osmscoutmap/oss/Scanner.h:52
void DrawLabels(const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterCairo.cpp:1108
@ SoftGrade
Definition: RoutingProfile.h:63
const ObjectFileRef & GetStop() const
Definition: PublicTransport.h:82
TypeConfigRef GetTypeConfig() const
Returns the type configuration of the underlying db instance.
Definition: SimpleRoutingService.cpp:373
PositionState
Definition: PositionAgent.h:57
Definition: Distance.h:234
std::shared_ptr< PTRouteDataFile > PTRouteDataFileRef
Definition: PTRouteDataFile.h:51
TileAreaData & GetAreaData()
Return a read-write reference to the area data.
Definition: DataTileCache.h:382
bool IsSolid() const
Definition: Color.h:130
Line & operator<<(const Distance &value)
Definition: Logger.h:216
@ laneDivider
when way has multiple lanes, line is rendered as its divider
TypeId GetNodeId() const
Returns the unique id of this type.
Definition: TypeConfig.h:275
void set(const char *key, int val)
Definition: map/include/osmscoutmap/oss/Scanner.h:135
std::vector< osmscout::Point > points
Definition: LookupModule.h:87
Definition: VoiceInstructionAgent.h:146
void ICONSTYLEATTR(IconPartialStyle &style)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1410
@ ByteSizeRole
Definition: InstalledMapsModel.h:56
bool CanBeArea() const
Definition: TypeConfig.h:387
TypeInfoSet optimizedWayTypes
Definition: MapService.h:109
size_t priority
Priority of the entry.
Definition: LabelLayouter.h:48
Definition: map/include/osmscoutmap/oss/Scanner.h:83
PathShieldStyle & SetSize(double size)
Definition: Styles.cpp:1218
@ RoundaboutExitRole
Definition: RouteStep.h:68
void clearData()
Definition: OpenGLMapData.h:178
CoordBufferRange coordRange
Range of coordinates in transformation buffer.
Definition: MapPainter.h:166
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: EleFeature.cpp:33
QStringList getLaneTurns() const
Definition: NavigationModel.h:227
uint8_t GetMaxSpeed() const
Definition: MaxSpeedFeature.h:49
static const char *const AREA_NODE_IDX
Definition: AreaNodeIndex.h:48
TransBuffer transBuffer
Internal coordinate transformation data structures.
Definition: MapPainter.h:212
QPointF pos
Definition: InputHandler.h:117
bool StringToNumberUnsigned(const std::string &string, N &number, size_t base=10)
Definition: String.h:200
std::function< void(const std::string &)> SetterFunction
Definition: CmdLineParsing.h:151
@ attrStyle
Definition: Styles.h:521
double length
Definition: LabelPath.h:34
void SetBoolValue(int attribute, bool value) override
Definition: Styles.cpp:200
Definition: OverlayObject.h:210
virtual Vehicle GetVehicle() const =0
static const int EoF
Definition: include/osmscout/ost/Scanner.h:68
void SetValue(const std::string &key, double d) override
Definition: QtSettingsStorage.cpp:35
bool StringToNumber(const std::string &string, N &number, size_t base=10)
Definition: String.h:295
@ attrDisplayOffset
Definition: Styles.h:90
void SetBoolValue(int attribute, bool value) override
Definition: Styles.cpp:816
bool operator==(const FeatureValue &other) const override
Definition: DestinationFeature.cpp:45
static MagnificationLevel magStateOver
Definition: Magnification.h:148
const DatabaseParameter & GetParameter() const
Definition: Database.h:384
CmdLineArgParserRef CmdLineUIntOption(Args &&...args)
Definition: CmdLineParsing.h:286
TypeConfigRef typeConfig
Definition: DataFile.h:94
v2df dangerous_sin_pd(v2df x)
Definition: SSEMath.h:183
double GetMaxBorderWidth(const Projection &projection) const
Maximum border width.
Definition: Styles.h:1186
const std::list< StyleError > & GetErrors() const
Definition: StyleConfig.cpp:1720
static double FromMeter(double m)
Definition: Distance.h:228
std::string GetSRTMDirectory() const
Definition: Database.h:141
bool GetSearchForLocation() const
Definition: LocationService.cpp:343
CmdLineArgParserRef CmdLineGeoCoordOption(Args &&...args)
Definition: CmdLineParsing.h:328
TagId GetId() const
Returns the unique id of this tag.
Definition: Tag.h:223
void IMPORTS()
Definition: map/src/osmscoutmap/oss/Parser.cpp:188
#define COCO_WCHAR_MAX
Definition: include/osmscout/ost/Scanner.h:34
double GetOptimizeErrorToleranceMm() const
Definition: MapParameter.h:254
static const std::string LABEL_KEY_WAY_CLOCKWISE
Definition: DescriptionService.h:235
void AfterPreprocessing(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Low level drawing routines that have to be implemented by the concrete drawing engine.
Definition: MapPainterSVG.cpp:432
unsigned long GetRouteDataCacheSize() const
Definition: Database.cpp:108
void WriteOptimized(const TypeConfig &typeConfig, FileWriter &writer) const
Writes the data to the given FileWriter.
Definition: Way.cpp:143
TextLoader(const std::string &path, long defaultSize, double dpi)
Definition: TextLoader.cpp:29
@ DrawWayContourLabels
Definition: MapPainter.h:82
LocationAtPlaceDescriptionRef GetAtPOIDescription() const
Return the location in relation to a close POI.
Definition: LocationDescriptionService.cpp:149
std::list< std::string > SplitString(const std::string &stringList, const std::string &separator, int maxSize=-1)
Definition: String.cpp:303
std::shared_ptr< VoiceManager > VoiceManagerRef
Definition: VoiceManager.h:125
std::shared_ptr< TurnRestriction > TurnRestrictionRef
Definition: TurnRestriction.h:98
virtual void RegisterRegularLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const std::vector< LabelData > &labels, const Vertex2D &position, double objectWidth) override
Register regular label with given text at the given pixel coordinate in a style defined by the given ...
Definition: MapPainterAgg.cpp:408
bool operator<(const MagnificationLevel &other) const
Definition: Magnification.h:88
Message created when we should compute new route.
Definition: RouteStateAgent.h:35
@ ERROR
Definition: Logger.h:56
GeoCoord Add(const Bearing &bearing, const Distance &distance) const
Get coordinate of position + course and distance.
Definition: GeoCoord.cpp:379
BatchMapPainter(size_t expectedCount)
Definition: BatchMapPainter.h:81
size_t GetFeatureMaskBytes() const
Returns the (rounded) number of bytes required for storing the feature mask.
Definition: TypeConfig.h:249
@ sidewalkTrackLeft
Definition: SidewayFeature.h:34
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: LanesFeature.cpp:50
bool GetByBlockSpan(const DataBlockSpan &span, std::vector< ValueType > &data) const
Read data values from the given DataBlockSpan.
Definition: DataFile.h:482
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: BrandFeature.cpp:89
Q_INVOKABLE QObject * mapByPath(QStringList path)
Definition: AvailableMapsModel.cpp:383
TextStyle & SetTextColor(const Color &color)
Definition: Styles.cpp:928
static QHash< int, QByteArray > roleNames(QHash< int, QByteArray > roles)
Definition: RouteStep.cpp:106
MapPainterAgg(const StyleConfigRef &styleConfig)
Definition: MapPainterAgg.cpp:41
static MagnificationLevel magWorld
Definition: Magnification.h:145
@ DrawBaseMapTiles
Draw unknown/sea/land tiles and tiles with "coastlines" from base map.
Definition: MapPainter.h:76
double GetMaxY() const
Definition: ScreenBox.h:97
void maxAllowedSpeed(double maxAllowedSpeedKmPh)
FeatureValue * AllocateValue(void *buffer) override
Definition: LayerFeature.cpp:76
Definition: StyleConfig.h:110
QString getServerDirectory() const
Definition: AvailableMapsModel.cpp:54
virtual bool CanUseForward(const DatabaseId &dbId, Id fromNodeId, const ObjectFileRef &object) const =0
virtual bool IsBridge(const RouteDescription::Node &node) const =0
void startDownloading(const AvailableVoice &item)
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: SidewayFeature.cpp:29
void setPosition(QObject *mapView, const int width, const int height, const int screenX, const int screenY)
Definition: MapObjectInfoModel.cpp:208
bool rotateBy(double angleChange) override
Definition: InputHandler.cpp:657
void CONSTDEF()
Definition: map/src/osmscoutmap/oss/Parser.cpp:672
void run() override
Definition: SearchModule.cpp:87
void Disconnect()
Disconnect from all slots.
Definition: Signal.h:186
void SetFeatureSet(uint8_t featureSet)
Definition: SidewayFeature.h:53
std::vector< double > tunnelDash
Dash array for drawing tunnel border.
Definition: MapPainter.h:272
void WriteBox(const GeoBox &bbox)
Writes GeoBox instance.
Definition: FileWriter.cpp:747
@ attrIconName
Definition: Styles.h:905
virtual void SetBoolValue(int attribute, bool value)
Definition: StyleDescription.cpp:26
Vertex3D(double x, double y)
Definition: Pixel.h:185
Definition: PlaneMapRenderer.h:39
virtual bool IsValid(T *) noexcept
Definition: ObjectPool.h:73
virtual ~NumericIndex()
Definition: NumericIndex.h:135
std::list< CacheEntry > OrderList
Definition: Cache.h:97
The RouteDescriptionPostprocessor does all the heavy lifting of creating the various available Postpr...
Definition: RouteDescriptionPostprocessor.h:47
static uint32_t lat2tiley(double lat, uint32_t z)
Definition: OSMTile.h:74
static MagnificationLevel magBlock
Definition: Magnification.h:159
PlatformType
The platform of a halt can be of one of different types.
Definition: PublicTransport.h:60
void stylesheetFilenameChanged()
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: AddressFeature.cpp:75
int getLaneCount() const
Definition: NavigationModel.h:202
bool operator==(const FeatureValue &other) const override
Definition: NameShortFeature.cpp:45
@ attrWidth
Definition: Styles.h:89
void setMaxPenalty(double)
Definition: QmlRoutingProfile.cpp:193
Definition: OpeningHoursFeature.h:67
static const std::string LABEL_KEY_LOCATION_POSTALCODE
Definition: DescriptionService.h:203
void tileStateChanged(QString dbPath, const osmscout::TileRef tile)
This signal is not called in Job thread context!
TileIdBox Include(const TileId &tileId) const
Definition: TileId.cpp:234
void SetConstrainedEdgeCW(Point &p, bool ce)
constexpr int IsSpace
Definition: utf8helper_charmap.h:29
static bool f(const std::string &string, N &number, size_t base=10)
Definition: String.h:267
Line Warn()
Start logging a line of warning output (there is a potential problem, but the application could handl...
Definition: Logger.cpp:89
void AddWayPathTextStyle(const StyleFilter &filter, PathTextPartialStyle &style)
Definition: StyleConfig.cpp:978
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: NameFeature.cpp:74
static QStringList IndexedAdminRegionNames(const QList< AdminRegionInfoRef > ®ionList, bool useAltNames)
Helper method that returns names of admin region in indexed array.
Definition: LookupModule.cpp:504
DistanceUnitSystem GetDistanceUnits() const
Definition: Locale.h:65
std::shared_ptr< POIAtRouteDescription > POIAtRouteDescriptionRef
Definition: RouteDescription.h:583
LocationEntry * getBBoxAsLocation() const
Definition: OverlayObject.cpp:111
double GetMapDpi() const
Definition: InputHandler.h:219
std::string GetDescription() const override
Definition: Exception.cpp:136
static StyleDescriptorRef GetDescriptor()
Definition: Styles.cpp:1406
double height
Definition: LabelLayouterHelper.h:77
StyleLabelAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:439
void SetPenaltySameType(const Distance &d)
Definition: RoutingProfile.h:419
void DrawIcon(const IconStyle *style, const Vertex2D ¢erPos, double width, double height) override
Draw the Icon as defined by the IconStyle at the given pixel coordinate (icon center).
Definition: MapPainterNoOp.cpp:83
Definition: TiledMapOverlay.h:36
GeoBox GetBoundingBox(const Magnification &magnification) const
Return the bounding box of the region defined by the box.
Definition: Tiling.cpp:98
@ attrOffset
Definition: Styles.h:823
std::string GetName() const override
Returns the name of the label provider as it must get stated in the style sheet.
Definition: LabelProvider.h:142
std::string GetPositionalHint(const std::string &positional) const override
Definition: CmdLineParsing.cpp:138
static StyleDescriptorRef GetDescriptor()
Definition: Styles.cpp:1253
double GetOffset() const
Definition: Styles.h:444
std::shared_ptr< RNode > RNodeRef
Definition: RoutingService.h:279
Parse and transform an UTF8 string.
Definition: utf8helper.h:69
virtual bool IsForwardPath(const ObjectFileRef &object, size_t fromNodeIndex, size_t toNodeIndex) const =0
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: WebsiteFeature.cpp:24
bool operator==(const FeatureFilterData &other) const
Definition: StyleConfig.h:230
Point * p
Definition: shapes.h:125
void Parse()
Definition: map/src/osmscoutmap/oss/Parser.cpp:2420
virtual ~Promise()=default
@ VersionRole
Definition: AvailableMapsModel.h:212
bool hasErrors
Definition: include/osmscout/ost/Parser.h:59
uint64_t ReadUInt64()
Definition: FileScanner.cpp:1045
Bearing GetSphericalBearingFinal(const GeoCoord &a, const GeoCoord &b)
Taken the path from A to B over a sphere return the bearing at the destination point B.
Definition: Geometry.cpp:340
std::shared_ptr< Tile > TileRef
Definition: DataTileCache.h:443
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: RoundaboutFeature.cpp:26
@ Error
Definition: utf8helper.h:70
bool CanRouteCar() const
Definition: AccessFeature.h:179
void CopyAttributes(const PathTextStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:1411
int GetNumOfVertices()
Definition: OpenGLMapData.h:291
QString getMapName() const
Definition: MapDownloader.h:67
Line & operator<<(const char *value)
Definition: Logger.h:135
bool IsOpen() const
Definition: FileWriter.h:67
bool HasCondition() const
Definition: FeeFeature.h:71
bool CanAccessFoot() const
Definition: AccessRestrictedFeature.h:97
void requestLocationDescription(const osmscout::GeoCoord location)
Start retrieving place information based on objects on or near the location.
Definition: LookupModule.cpp:287
unsigned int DecodeNumberSigned(const char *buffer, N &number)
Definition: Number.h:187
bool IsAtPlace() const
'true' if the location is at the place itself (in spite of 'close to...')
Definition: LocationDescriptionService.h:240
void DrawRect(double x, double y, double w, double h) override
Definition: SymbolRendererCairo.cpp:72
std::ostream & operator<<(std::ostream &stream) const
Definition: Pixel.h:89
QStringList getMapPath() const
Definition: MapDownloader.h:72
std::shared_ptr< LanesPostprocessor > LanesPostprocessorRef
Definition: RoutePostprocessor.h:436
int resultLimit
Limit of lookup results.
Definition: NearPOIModel.h:76
#define SRTM1_FILESIZE
Definition: SRTM.cpp:43
GeoBox bbox
Precomputed (cache) bounding box.
Definition: Way.h:58
static const char *const NAME
Name of this feature.
Definition: PhoneFeature.h:75
FeatureValueReader< AddressFeature, AddressFeatureValue > AddressFeatureValueReader
Definition: AddressFeature.h:108
size_t GetWarningObjectCountLimit() const
Definition: MapParameter.h:394
Class that provide abstraction for download job of multiple files in sequence.
Definition: FileDownloader.h:132
bool operator==(const Bearing &o) const
Definition: Bearing.h:109
void DrawIcon(const IconStyle *style, const Vertex2D ¢erPos, double width, double height) override
Draw the Icon as defined by the IconStyle at the given pixel coordinate (icon center).
Definition: MapPainterAgg.cpp:469
double GetLat() const
Definition: InputHandler.h:214
static const uint8_t masterRingId
Definition: Area.h:89
static void DropRedundantPointsFast(TransBuffer &buffer, double optimizeErrorTolerance)
Definition: Transformation.cpp:384
double alpha
Alpha value of the label; 0.0 = fully transparent, 1.0 = solid.
Definition: LabelLayouter.h:70
Definition: AreaIndex.h:43
std::tuple< GeoCoord, bool > ReadConditionalCoord()
Definition: FileScanner.cpp:2220
friend Database
Definition: Database.h:160
std::string GetDescription() const
Definition: StyleError.h:93
std::vector< std::vector< PathTextStyleSelectorList > > PathTextStyleLookupTable
List of selectors.
Definition: StyleConfig.h:527
std::string GetLabel(const Locale &, size_t) const override
Definition: OperatorFeature.h:55
uint8_t GetNodeTypeIdBytes() const
Definition: TypeConfig.h:1199
TypeInfoSet areaTypes
Definition: MapService.h:106
Definition: include/osmscout/ost/Scanner.h:82
bool Load(const std::string &styleFile, ColorPostprocessor colorPostprocessor=nullptr, bool submodule=false, Log &log=osmscout::log)
Load the given *.oss file into the current style config object.
Definition: StyleConfig.cpp:1662
bool HasIcon(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, IconStyle &style) override
Return true, if the icon in the IconStyle is available and can be drawn.
Definition: MapPainterNoOp.cpp:33
@ attrOverlay
Definition: Styles.h:908
ConstructionYearFeature()
Definition: ConstructionYearFeature.cpp:62
ObjectFileRef ref
Definition: LabelLayouter.h:159
static const size_t YEAR_LABEL_INDEX
Index of the 'year' label.
Definition: ConstructionYearFeature.h:96
Errors * errors
Definition: map/include/osmscoutmap/oss/Parser.h:120
const double & operator[](Grade grade) const
Definition: RoutingProfile.h:75
TypeConfigRef typeConfig
Definition: PositionAgent.h:72
ObjectFileRef(FileOffset offset, RefType type)
Definition: ObjectRef.h:161
int64_t ReadInt64Number()
Definition: FileScanner.cpp:1926
static void DropRedundantPointsDouglasPeuckerArea(TransBuffer &buffer, double optimizeErrorTolerance)
Definition: Transformation.cpp:433
Definition: DataTileCache.h:52
QJsonValue getProvider()
Definition: TiledMapOverlay.cpp:201
bool IsOverlay() const
Definition: Styles.h:979
virtual std::string GetCostString(double cost) const =0
Textual representation of cost.
std::function< void(const bool &)> SetterFunction
Definition: CmdLineParsing.h:134
double meterInMM
Number of on screen millimeters for one meter on the ground.
Definition: Projection.h:59
QString openingHours
Definition: IconLookup.h:59
void CopyAttributes(const ShieldStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:1084
NavigationModel()
Definition: NavigationModel.cpp:26
void SetShaderUniforms(GLuint shaderProgram) const
Setup projection shader uniforms.
Definition: OpenGLProjection.h:47
std::string GetStateStr(const Timestamp &now) const
Definition: PositionAgent.cpp:42
static const std::string SUBSECTION_NAME_CHARGINGSTATION_SOCKET
Definition: DescriptionService.h:337
size_t GetMinLevel() const
Definition: StyleConfig.h:283
bool HasFeature(const std::string &featureName) const
Returns true, if the feature with the given name has already been assigned to this type.
Definition: TypeConfig.cpp:226
void SetFeatures(const FeatureValueBuffer &buffer)
Definition: Way.h:196
CmdLineArgParserRef CmdLineFlag(Args &&...args)
Definition: CmdLineParsing.h:244
Bearing operator+(const Bearing &d) const
Definition: Bearing.h:82
std::string GetName() const override
Returns the name of the feature.
Definition: IsInFeature.cpp:59
bool HasFeature(size_t idx) const
Definition: Area.h:125
bool IsValid() const
Definition: RoutingService.h:78
TileRef GetTile(const TileKey &id) const
Return the tile with the given id.
Definition: DataTileCache.cpp:125
const std::string & GetSlot() const
Definition: Styles.h:409
virtual void DrawCircle(double x, double y, double radius)=0
std::string GetLabel(const Locale &, size_t) const override
Definition: RefFeature.h:55
virtual void SetStep(const std::string &step)
Definition: Progress.cpp:43
Definition: ElevationService.h:35
void SetDistance(Distance distance)
Definition: RouteDescription.cpp:559
void Disconnect()
Disconnect from all signals.
Definition: Signal.h:198
bool DescribeLocationByName(const GeoCoord &location, LocationDescription &description, const Distance &lookupDistance=Distance::Of< Meter >(100), double sizeFilter=1.0)
Definition: LocationDescriptionService.cpp:837
bool IsVisible() const
Definition: Styles.h:404
POILookupModule * MakePOILookupModule()
Definition: OSMScoutQt.cpp:420
Q_INVOKABLE void cancel(int row)
Definition: MapDownloadsModel.cpp:140
void SetSearchForPOI(bool searchForPOI)
Definition: LocationService.cpp:358
bool IsValid() const
Definition: RoutingService.h:120
Routing profile.
Definition: QmlRoutingProfile.h:42
Definition: MapPainterAgg.h:54
bool IsValid() const
Return true if latitude is in range <-90,+90> and longitude in range <-180,+180>
Definition: GeoCoord.h:205
void onVoiceStateChanged(const AvailableVoice &voice)
Definition: AvailableVoicesModel.cpp:236
Q_INVOKABLE void remove(const QModelIndex &index)
Definition: AvailableVoicesModel.cpp:260
DestinationFeatureValue & operator=(const FeatureValue &other) override
Definition: DestinationFeature.cpp:34
Definition: WayDataFile.h:34
@ cyclewayTrackLeft
Definition: SidewayFeature.h:38
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: OpeningHoursFeature.cpp:71
size_t xAbs
Absolute x coordinate of the cell in relation to level and cell size.
Definition: GroundTile.h:93
void LoadTextures()
Definition: OpenGLMapData.h:255
static const char *const NAME_LABEL
Name of this feature.
Definition: RefFeature.h:76
static StyleDescriptorRef GetDescriptor()
Definition: Styles.cpp:690
bool GetBoundingBox(GeoBox &boundingBox) const
Definition: Database.cpp:694
virtual double GetCosts(const RouteNode ¤tNode, const std::vector< ObjectVariantData > &objectVariantData, size_t inPathIndex, size_t outPathIndex) const =0
Estimated cost for outgoing path (outPathIndex) from currentNode when currentNode is entered from inP...
int line
Definition: include/osmscout/ost/Scanner.h:52
virtual ~TiledMapRenderer()
Definition: TiledMapRenderer.cpp:85
void AddMask(const ScreenRectMask &mask)
Definition: LabelLayouterHelper.cpp:127
virtual void SetDoubleArrayValue(int attribute, const std::vector< double > &value)
Definition: StyleDescription.cpp:56
void SetBreaker(const BreakerRef &breaker)
Definition: RoutingService.cpp:63
bool IsOuter() const
Definition: Area.h:159
void SetDrawFadings(bool drawFadings)
Definition: MapParameter.cpp:115
void setEnabled(bool b)
Definition: TiledMapOverlay.cpp:236
Definition: OverlayObject.h:189
std::shared_ptr< RoutingProgress > RoutingProgressRef
Definition: RoutingService.h:178
std::string GetRef() const
Definition: RefFeature.h:50
bool CanUseBackward(const Way &way) const override
Definition: RoutingProfile.cpp:322
WeekDay
Day of the week in the Gregorian calendar.
Definition: OpeningHours.h:41
Definition: utf8helper.h:28
void Layout(const Projection &projection, const MapParameter ¶meter)
Definition: LabelLayouter.h:531
void addToQueue(const QUrl &source) override
add a track to the playlist
Definition: VoicePlayer.cpp:37
osmscout::GeoBox boundingBoxInternal() const
Definition: OverlayObject.cpp:150
virtual void OnRoundaboutLeave(const RouteDescription::RoundaboutLeaveDescriptionRef &roundaboutLeaveDescription, const RouteDescription::NameDescriptionRef &nameDescription)
Called if we leave a roundabout entered before.
Definition: RouteDescriptionPostprocessor.cpp:63
void ATTRIBUTE(PartialStyleBase &style, const StyleDescriptor &descriptor)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1677
size_t GetDuplicateCount() const
Definition: NodeUseMap.cpp:80
FileOffset GetPos() const
Returns the current position of the reading cursor in relation to the begining of the file.
Definition: FileScanner.cpp:383
Definition: RouteInstructionAgent.h:30
LocationRef location
The location the address belongs to.
Definition: Location.h:225
void GetAreaFillStyleSelectors(size_t level, const TypeInfoRef &type, std::list< FillStyleSelector > &selectors) const
Definition: StyleConfig.cpp:1569
std::list< NodeRef > poiNodes
List of manually added nodes (not managed or changed by the db)
Definition: MapData.h:52
StyleUDoubleArrayAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:385
void SetPOIOnlyMatch(bool poiOnlyMatch)
Definition: LocationService.cpp:368
static double maxLon()
Definition: OSMTile.h:59
@ attrSize
Definition: Styles.h:645
double fontSize
Definition: QmlSettings.h:60
Magnification & operator++()
Definition: Magnification.h:232
bool LoadMissingTileDataAsync(const AreaSearchParameter ¶meter, const StyleConfig &styleConfig, std::list< TileRef > &tiles) const
Load all missing data for the given tiles based on the given style config.
Definition: MapService.cpp:1133
@ StoppedState
Definition: VoicePlayer.h:40
void SetType(const TypeInfoRef &type)
Definition: Area.h:201
@ LicenseRole
Definition: InstalledVoicesModel.h:69
Definition: IconLookup.h:43
LabelStyle()
Definition: Styles.cpp:765
virtual ~StartStates()=default
std::shared_ptr< PolygonPrimitive > PolygonPrimitiveRef
Definition: Styles.h:1046
Attribute
Definition: Styles.h:818
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: LocationFeature.cpp:81
FeatureValue * AllocateValue(void *buffer) override
Definition: NameShortFeature.cpp:82
void Clear()
Definition: Navigation.h:134
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: PostalCodeFeature.cpp:89
AreaRef area
Definition: PositionAgent.h:74
GeoBox bbox
Definition: DataAgent.h:40
Definition: LabelLayouter.h:229
void positionEstimateInTunnelChanged()
std::shared_ptr< OverlayObject > OverlayObjectRef
Definition: OverlayObject.h:232
Definition: Magnification.h:249
Pixel AsPixel() const
Definition: TileId.h:71
FeatureValue * AllocateValue(void *buffer) override
Definition: NameAltFeature.cpp:82
void Write(FileWriter &writer) const
Writes the FeatureValueBuffer to the given FileWriter.
Definition: TypeConfig.cpp:559
bool operator!=(const GeoBox &other) const
Definition: GeoBox.h:70
std::vector< LaneTurn > GetTurnBackward() const
Definition: LanesFeature.h:87
void iconRequested(const MapViewStruct &view, const QPoint &coord, const std::map< int, OverlayObjectRef > &overlayObjects)
TagErrorReporter()
Definition: TagErrorReporter.cpp:24
Model providing access to currently installed maps on device.
Definition: InstalledMapsModel.h:37
std::string GetFontName() const
Definition: MapParameter.h:199
FileOffset parentRegionOffset
Offset of the parent region index entry.
Definition: Location.h:76
bool IsValidFor(const GeoCoord &coord) const override
Return true if given coordinate is valid for this projection.
Definition: TileProjection.h:84
@ LabelRole
Definition: NearPOIModel.h:85
void AddEnumValue(const std::string &name, int value)
Definition: StyleDescription.h:250
Definition: LocationDescriptionService.h:360
bool Get(const std::set< OSMId > &ids, ResultMap &resultMap) const
Definition: CoordDataFile.cpp:104
Definition: NameFeature.h:30
QString fetchError
Definition: AvailableVoicesModel.h:60
Reference to an OSM object by its type (Node, Way, Relation) and its OSM object id.
Definition: ObjectRef.h:46
void SetIconMode(const IconMode &mode)
Definition: MapParameter.cpp:159
Definition: ObjectVariantDataFile.h:41
void locationDescription(const osmscout::GeoCoord location, const QString database, const osmscout::LocationDescription description, const QList< AdminRegionInfoRef > regions)
RoutePointsResult TransformRouteDataToPoints(const RouteData &data)
Transforms the route into a list of points.
Definition: AbstractRoutingService.cpp:1804
DBThreadRef dbThread
Definition: MapRenderer.h:92
bool HasIndex() const
Definition: DescriptionService.h:77
void STYLEFILTER_MAG(StyleFilter &filter)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1148
size_t fromOriginY
Definition: OpenGLMapData.h:49
Definition: RoutePostprocessor.h:191
@ LonRole
Definition: NearPOIModel.h:89
static bool SearchForLocationForPostalArea(LocationIndexRef &locationIndex, const SearchParameter ¶meter, const std::string &locationPattern, const std::string &addressPattern, const PostalAreaSearchVisitor::Result &postalAreaMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult::MatchQuality postalAreaMatchQuality, LocationSearchResult &result, BreakerRef &breaker)
Definition: LocationService.cpp:1501
Timestamp arrivalEstimate
Definition: ArrivalEstimateAgent.h:31
FeatureLabelReader< NameFeature, NameFeatureValue > NameFeatureLabelReader
Definition: NameFeature.h:98
const FeatureInstance & GetFeature(size_t idx) const
Definition: Way.h:93
virtual uint64_t expectedSize() const =0
BorderStyle & SetGapColor(const Color &color)
Definition: Styles.cpp:648
void operator-=(const Point &v)
Subtract a point from this point.
Definition: shapes.h:92
void SetColorValue(int attribute, const Color &value) override
Definition: Styles.cpp:530
Node * head()
Definition: advancing_front.h:88
NodeDataFileRef GetNodeDataFile() const
Definition: Database.cpp:324
Representation of an (complex/multipolygon) area.
Definition: Area.h:86
QString getName() const
Definition: OverlayObject.h:130
void SetTime(const Timestamp::duration &duration)
Definition: RouteDescription.cpp:570
auto pointToPolygonDist(const GeoCoord &point, const Polygon &polygon)
Definition: PolygonCenter.cpp:67
std::list< Place > GetWays() const
Return the place this information is refering to.
Definition: LocationDescriptionService.h:232
std::shared_ptr< MapRenderer > MapRendererRef
Definition: MapRenderer.h:215
void WriteHeaderEnd()
Definition: HTMLWriter.cpp:209
Definition: RoutingService.h:212
~Token()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:108
bool isValid() const
Definition: AvailableMapsModel.h:89
bool operator==(const DBFileOffset &other) const
Definition: DBFileOffset.h:112
static const size_t IN_METER_LABEL_INDEX
Index of the 'inMeter' label.
Definition: EleFeature.h:76
bool GetWayByOffset(const FileOffset &offset, WayRef &way) const
Definition: Database.cpp:895
Definition: CmdLineParsing.h:131
static unsigned int f(const char *buffer, N &number)
Definition: Number.h:280
bool operator==(const FeatureValue &other) const override
Definition: FromToFeature.cpp:48
void onVoiceChanged(const QString &)
Definition: InstalledVoicesModel.cpp:68
Manager of voices for navigation commands.
Definition: VoiceManager.h:72
const character charmap_cf[]
Definition: utf8helper_charmap.cpp:1035
Read elevation data in hgt format.
Definition: SRTM.h:63
std::vector< WayRef > ways
Ways as retrieved from db.
Definition: MapData.h:50
double costLimitFactor
Definition: RoutingProfile.h:199
void Reset()
Resets the internal values to 0.0.
Definition: MemoryMonitor.cpp:117
static const char *const PTROUTES_DAT
Definition: PTRouteDataFile.h:37
Implementation of MapPainter for Qt.
Definition: MapPainterQt.h:47
std::list< LineStyleSelector > LineStyleSelectorList
Definition: StyleConfig.h:490
LineStyle & SetPriority(int priority)
Definition: Styles.cpp:290
double GetAlpha() const override
Definition: Styles.h:674
virtual bool Close()
Close the index.
Definition: DataFile.h:253
int getVersion() const
Definition: AvailableMapsModel.cpp:64
QString getLicense() const
Definition: Voice.h:151
void SetName(const std::string_view &name)
Definition: BrandFeature.h:45
POIAtRouteDescription(DatabaseId databaseId, const ObjectFileRef &object, const NameDescriptionRef &name, const Distance &distance)
Definition: RouteDescription.cpp:465
Distance GetDistance() const
Return the distance to the location.
Definition: LocationDescriptionService.h:152
bool IsCanceled() const
Definition: CancelableFuture.h:132
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: AddressFeature.h:88
static const char *const MOTORWAY_LEAVE_DESC
Constant for a description of leaving a motorway (MotorwayLeaveDescription)
Definition: RouteDescription.h:80
const TypeInfoRef & operator*() const
Definition: TypeInfoSet.h:90
void AddAreaIconStyle(const StyleFilter &filter, IconPartialStyle &style)
Definition: StyleConfig.cpp:1026
@ InPlaceRole
Definition: LocationInfoModel.h:71
HTMLWriter()
Definition: HTMLWriter.cpp:33
bool operator==(const BorderStyle &other) const
Definition: Styles.cpp:725
DBId currentNode
FileOffset of this route node.
Definition: RoutingService.h:314
static const char *const NODES_IDMAP
Definition: NodeDataFile.h:38
ShieldStyle & SetLabel(const LabelProviderRef &label)
Definition: Styles.cpp:1049
StopClockNano()
Definition: StopClock.cpp:97
const character charmap_e2_b4[]
Definition: utf8helper_charmap.cpp:2466
const GeoCoord from
Definition: RouteStateAgent.h:37
std::string GetDescription() const
Definition: RouteDescription.cpp:403
std::shared_ptr< PositionMessage > PositionMessageRef
Definition: PositionAgent.h:104
TypeInfo & SetIndexAsRegion(bool indexAsRegion)
Set, if an object of this type should be indexed as a region.
Definition: TypeConfig.h:522
void ProcessLabels(std::vector< LabelInstanceType > &labelInstances, std::vector< ContourLabelType > &contourLabelInstances)
Definition: LabelLayouter.h:489
void AddWayPathSymbolStyle(const StyleFilter &filter, PathSymbolPartialStyle &style)
Definition: StyleConfig.cpp:986
Definition: Location.h:220
void Open(const std::string &filename, Mode mode, bool useMmap)
Definition: FileScanner.cpp:100
void Parse()
Definition: src/osmscout/ost/Parser.cpp:870
void CleanupCache()
Cleanup the cache.
Definition: MapTileCache.h:122
void AddDescription(const std::string &languageCode, const std::string &description)
Add a description of the feature for the given language code.
Definition: TypeFeature.cpp:92
const Color & GetBorderColor() const
Definition: Styles.h:694
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: RouteStateAgent.cpp:59
static double tilex2lon(uint32_t x, uint32_t z)
Definition: OSMTile.h:79
FreeTextSearchRunnable(SearchModule *searchModule, DBInstanceRef &db, const QString &searchPattern, int limit, osmscout::BreakerRef &breaker)
Definition: SearchModule.cpp:78
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: AccessFeature.cpp:85
std::chrono::duration< double, std::milli > MilliDouble
Definition: StopClock.cpp:27
#define SRTM1_GRID
Definition: SRTM.cpp:41
bool HasPattern(const MapParameter ¶meter, const FillStyle &style)
Definition: MapPainterCairo.cpp:512
Definition: InputHandler.h:160
TagRegistry()
Definition: Tag.cpp:205
void DrawArea(const Projection &projection, const MapParameter ¶meter, const AreaData &area) override
Draw the given area using the given FillStyle for the area outline.
Definition: MapPainterQt.cpp:760
void SetLevel(const MagnificationLevel &level)
Definition: Magnification.cpp:52
void downloaded(uint32_t zoomLevel, uint32_t x, uint32_t y, QImage image, QByteArray downloadedData)
MapView(const osmscout::GeoCoord ¢er, const Bearing &angle, const osmscout::Magnification &magnification, double mapDpi)
Definition: InputHandler.h:187
@ osmRefNode
Definition: ObjectRef.h:37
virtual void SetProgress(double current, double total, const std::string &label="")
Definition: Progress.cpp:53
const std::list< AreaData > & GetAreaData() const
Definition: MapPainter.h:512
osmscout::GeoBox getBBox() const
Definition: LocationEntry.cpp:230
LabelProviderRef Create(const TypeConfig &typeConfig) const override
Definition: LabelProvider.cpp:96
void set_tail(Node *node)
Definition: advancing_front.h:101
static const StyleDescriptorRef lineStyleDescriptor
Definition: Styles.cpp:113
uint16_t objectVariantIndex
Index into the lookup table, holding object specific routing data.
Definition: RouteNode.h:78
double GetLabelPadding() const
Definition: MapParameter.h:289
Action
Definition: Location.h:98
double angleCos
Definition: MercatorProjection.h:46
std::string GetDebugString() const override
Definition: RouteDescription.cpp:532
virtual void ParametrizeForBicycle(const TypeConfig &typeConfig, double maxSpeed)
Definition: RoutingProfile.cpp:123
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: IsInFeature.cpp:69
#define OSMSCOUT_MAP_CAIRO_API
Definition: MapCairoImportExport.h:45
static bool ScanNumber(const std::string &text, size_t ¤tPos, double &value, size_t maxDigits)
Definition: GeoCoord.cpp:94
GeoCoord GetMaxCoord() const
Return the coordinate with the maximum value for the lat/lon values of the area.
Definition: GeoBox.h:198
Definition: CmdLineParsing.h:73
const std::vector< ObjectVariantData > & GetData() const
Definition: ObjectVariantDataFile.h:66
const std::list< RouteEntry > & Entries() const
Definition: RouteData.h:115
static const char *const NAME_LABEL
Name of the "name" label.
Definition: NameShortFeature.h:76
NodeRegionSearchResult LoadNodesInArea(const TypeInfoSet &types, const GeoBox &boundingBox) const
Load nodes of given types in the given geo box Distance is measured in relation to the center of the ...
Definition: Database.cpp:1210
Id GetSerial(size_t index) const
Definition: Way.h:123
Definition: EleFeature.h:30
std::shared_ptr< TagIsInCondition > TagIsInConditionRef
Definition: Tag.h:198
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: ChargingStationFeature.cpp:26
@ Exception
Definition: StyleError.h:36
bool HasCondition() const
Definition: MaxStayFeature.h:60
FeatureReader(const TypeConfig &typeConfig)
Definition: FeatureReader.h:71
static const char *const NAME
Name of this feature.
Definition: OperatorFeature.h:74
void Debug(std::format_string< Args... > format, Args &&...args)
Definition: Progress.h:76
void setName(const QString &n)
Definition: OverlayObject.h:136
Triangle & NeighborAcross(Point &opoint)
#define CLASS_FINAL
Definition: Compiler.h:26
Definition: RoutePostprocessor.h:427
double GetPixelSize() const
Returns the size of a pixel in meter.
Definition: Projection.h:263
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: StyleFlagsModel.cpp:98
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: ArrivalEstimateAgent.cpp:34
unsigned int EncodeNumberUnsigned(N number, char *buffer)
Definition: Number.h:92
virtual bool IsNodeStartOrEndOfObject(const RouteDescription::Node &node, const ObjectFileRef &object) const =0
@ TimeRole
Definition: AvailableMapsModel.h:211
virtual double GetProposedLabelWidth(const MapParameter ¶meter, double averageCharWidth, double objectWidth, size_t stringLength)
Compute suggested label width for given parameters.
Definition: MapPainter.cpp:471
static const char *const NAME
Name of this feature.
Definition: SidewayFeature.h:116
StartStates()
Definition: map/include/osmscoutmap/oss/Scanner.h:89
Magnification GetMagnification() const
Return the magnification as part of the projection.
Definition: Projection.h:242
DataFile & operator=(const DataFile &)=delete
GeoBox GetBoundingBox(const Magnification &magnification) const
Return the bounding box of the given tile.
Definition: Tiling.cpp:63
QList< MapDownloadJob * > getDownloadJobs() const
Definition: MapDownloader.h:120
friend Database
Definition: Database.h:277
std::shared_ptr< AreaRouteIndex > AreaRouteIndexRef
Definition: AreaRouteIndex.h:69
@ onewayBackward
Definition: AccessFeature.h:41
void onLocationAdminRegions(const osmscout::GeoCoord, QList< AdminRegionInfoRef >)
Definition: LocationInfoModel.cpp:321
Node * prev
Definition: advancing_front.h:47
bool IsOpen() const
Definition: BasemapDatabase.cpp:64
DBId prev
The file offset of the previous route node.
Definition: RoutingService.h:225
void SetShowAltLanguage(bool showAltLanguage)
Definition: QmlSettings.cpp:131
RoutingDatabase()
Definition: RoutingDB.cpp:26
Q_INVOKABLE double getFreeSpace(QString dir)
Definition: MapDownloadsModel.cpp:82
TypeInfoRef typeInfoTileSea
Internal type for ground tiles of type "sea".
Definition: TypeConfig.h:1117
LocationAtPlaceDescriptionRef GetAtNameDescription() const
Return the location in relation to a named object.
Definition: LocationDescriptionService.cpp:139
double m
Definition: src/osmscout/util/SunriseSunset.cpp:61
bool IsEmpty() const
Definition: RouteData.h:99
void finished(QMap< QString, QMap< osmscout::TileKey, osmscout::TileRef >> tiles)
QJsonValue provider
Definition: TiledMapOverlay.h:79
std::vector< FileOffset > childrenOffsets
The list of child region offset.
Definition: Location.h:82
bool Set(const GeoCoord &coord, double angle, const Magnification &magnification, size_t width, size_t height)
Definition: MercatorProjection.h:93
~MemoryMonitor()
Definition: MemoryMonitor.cpp:40
bool HasFeature(size_t idx) const
Definition: Route.h:133
void TAGEQUALSCOND(const std::string &tagName, TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:639
Definition: MapPainterQt.h:254
void FlushCache()
Definition: AreaAreaIndex.cpp:364
~StyleModule() override
Definition: StyleModule.cpp:38
TypeInfoRef type
Definition: MapPainter.h:176
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: DestinationFeature.cpp:24
static const std::string LABEL_KEY_WAY_EMBANKMENT
Definition: DescriptionService.h:231
std::vector< std::vector< LineStyleSelectorList > > LineStyleLookupTable
List of selectors.
Definition: StyleConfig.h:491
Hold a reference to a range of data within a CoordBuffer.
Definition: Transformation.h:383
uint8_t GetLanes() const
Definition: LanesFeature.cpp:107
static const std::string LABEL_KEY_ROUTING_DESTINATION
Definition: DescriptionService.h:281
std::list< Err > errors
Definition: include/osmscout/ost/Parser.h:58
std::shared_ptr< TextStyle > TextStyleRef
Definition: Styles.h:633
void GetWayTypesWithMaxMag(const Magnification &mag, TypeInfoSet &types) const
Definition: StyleConfig.cpp:1075
void FLAGBLOCK(bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:289
BorderStyle & SetSlot(const std::string &slot)
Definition: Styles.cpp:581
std::string GetLabel(const Locale &, size_t) const override
Definition: PhoneFeature.h:54
Definition: StringMatcher.h:30
Buffer * buffer
Definition: map/include/osmscoutmap/oss/Scanner.h:191
ObjectOSMRef(OSMId id, OSMRefType type)
Definition: ObjectRef.h:57
void playerStateChanged(VoicePlayer::PlaybackState state)
Definition: NavigationModule.cpp:320
virtual ~StyleConfig()
Definition: StyleConfig.cpp:321
void startDownload()
Definition: FileDownloader.cpp:91
std::vector< Rule > GetRules() const
Definition: OpeningHours.h:85
MatchQuality
Definition: LocationService.h:230
bool GeoToPixel(const GeoCoord &coord, Vertex2D &pixel) const override
Converts a geo coordinate to a pixel coordinate.
Definition: TileProjection.cpp:153
TypeInfoSetConstIterator & operator++()
Definition: TypeInfoSet.h:59
int32_t GetHeight(size_t x, size_t y) const
Definition: SRTM.h:52
WayRegionSearchResult LoadWaysInArea(const TypeInfoSet &types, const GeoBox &boundingBox) const
Load ways of given types in the given geo box.
Definition: Database.cpp:1259
std::map< osmscout::FileOffset, osmscout::AdminRegionRef > adminRegionMap
Definition: SearchModule.h:55
@ Sequential
Definition: FileScanner.h:66
TextStyle & SetStyle(Style style)
Definition: Styles.cpp:942
static const Color DARK_AQUA
Definition: Color.h:67
void SetIntValue(int attribute, int value) override
Definition: Styles.cpp:864
void setColor(const QString &c)
Definition: OverlayObject.cpp:68
void MAG(Magnification &magnification)
Definition: map/src/osmscoutmap/oss/Parser.cpp:862
void GRADE()
Definition: src/osmscout/ost/Parser.cpp:275
static const StyleDescriptorRef fillStyleDescriptor
Definition: Styles.cpp:443
void DrawSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const Vertex2D &screenPos, double scaleFactor) override
Draw the Symbol as defined by the SymbolStyle at the given pixel coordinate (symbol center).
Definition: MapPainterAgg.cpp:476
StyleSymbolAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:457
std::string text
The label text (type==Text|PathText)
Definition: LabelLayouter.h:49
DynamicFeatureReader(const TypeConfig &typeConfig, const Feature &feature)
Definition: FeatureReader.cpp:24
static const Color LIGHT_GRAY
Definition: Color.h:60
std::string GetDebugString() const override
Definition: RouteDescription.cpp:323
void SetPos(FileOffset pos)
Moves the reading cursor to the given file position.
Definition: FileScanner.cpp:343
bool LoadMissingTileData(const AreaSearchParameter ¶meter, const StyleConfig &styleConfig, std::list< TileRef > &tiles) const
Load all missing data for the given tiles based on the given style config.
Definition: MapService.cpp:1118
void UMAP(double &width)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1264
void SetName(const std::string &name)
Definition: PublicTransport.cpp:85
const BorderStyleRef & GetBorderStyle() const
Definition: Styles.h:1013
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: NameFeature.cpp:79
double GetContourLabelPadding() const
Definition: MapParameter.h:334
osmscout::GeoCoord getCoord() const
Definition: LocationEntry.cpp:225
std::string GetLabel(const Locale &, size_t) const override
Definition: ColorFeature.h:55
std::string GetDebugString() const override
Definition: RouteDescription.cpp:376
const Color & GetFillColor() const
Definition: Styles.h:321
MotorwayJunctionDescription(const NameDescriptionRef &junctionDescription)
Definition: RouteDescription.cpp:381
std::string GetDebugString() const override
Definition: RouteDescription.cpp:93
void SPECIALTYPE(TypeInfo &typeInfo)
Definition: src/osmscout/ost/Parser.cpp:463
Definition: StyleDescription.h:274
Definition: StyleModule.h:37
StyleDoubleAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:349
@ ServerDirectoryRole
Definition: AvailableMapsModel.h:210
std::string GetName() const
Definition: PublicTransport.h:142
bool operator==(const FeatureValue &other) const override
Definition: AdminLevelFeature.cpp:50
IconStyle & SetPosition(size_t position)
Definition: Styles.cpp:1657
Definition: TileCache.h:54
bool HasIcon(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, IconStyle &style) override
Return true, if the icon in the IconStyle is available and can be drawn.
Definition: MapPainterSVG.cpp:622
virtual void NextDescription(const Distance &, std::list< RouteDescription::Node >::const_iterator &, std::list< RouteDescription::Node >::const_iterator)
Definition: Navigation.h:39
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: NameShortFeature.cpp:72
std::list< AreaRegionSearchResultEntry > GetAreaResults() const
Definition: Database.h:279
const character charmap_e1_b9[]
Definition: utf8helper_charmap.cpp:1784
static const int EoF
Definition: map/include/osmscoutmap/oss/Scanner.h:68
Bearing GetBearing() const
Return the bearing you have to go to from the place for 'distance' to reach the location.
Definition: LocationDescriptionService.h:256
static void AddAddressResult(const SearchParameter ¶meter, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult::MatchQuality postalAreaMatchQuality, LocationSearchResult::MatchQuality locationMatchQuality, const AddressSearchVisitor::Result &addressMatch, LocationSearchResult::MatchQuality addressMatchQuality, LocationSearchResult &result)
Definition: LocationService.cpp:1266
bool CanBeWay() const
Definition: TypeConfig.h:372
FileOffset regionOffset
Offset of the region this location is in.
Definition: Location.h:123
GeoCoord GetClosestPoint() const
Definition: Database.h:260
std::string GetDisplayText() const
Definition: TileId.h:340
void FreeValue(size_t idx)
Definition: TypeConfig.cpp:493
std::map< DatabaseId, std::string > GetDatabaseMapping() const
Definition: RouteDescription.cpp:587
TileId GetMin() const
Definition: TileId.h:259
static OSMScoutQt * osmScoutInstance
Definition: OSMScoutQt.cpp:68
PatternMode
Definition: MapParameter.h:52
void Emit(const Args &... args) const
Emit signal.
Definition: Signal.h:145
GeoBox GetBoundingBox() const
Return the bounding box of the tile.
Definition: TileId.cpp:146
uint32_t GetLocationMaxWords() const
Definition: LocationIndex.h:214
double height
Definition: LabelLayouter.h:50
~WriteLock()
Definition: ReadWriteLock.h:197
ProcessingQueue & operator=(const ProcessingQueue &)=delete
bool GetPartialMatch() const
Definition: LocationService.cpp:408
Distance operator+(const Distance &d) const
Definition: Distance.h:104
v2df log_pd(v2df x)
Definition: SSEMath.h:309
static MagnificationLevel magProximity
Definition: Magnification.h:151
bool ParseBoolArgument(int argc, char *argv[], int ¤tIndex, bool &value)
Definition: CmdLineParsing.cpp:587
std::string UTF8Capitalize(const std::string &text)
Definition: utf8helper.cpp:39
TypeInfoRef GetNodeTypeInfo(TypeId id) const
Returns the type definition for the given type id.
Definition: TypeConfig.h:1275
void GetObjectNames(const FeatureValueBuffer &features, QString &typeName, QString &name, QString &altName)
Definition: SearchModule.cpp:499
std::shared_ptr< Address > AddressRef
Definition: Location.h:196
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: ColorFeature.cpp:79
TileRef LookupTile(const TileKey &key) const
Return the given tile.
Definition: MapService.cpp:858
void offlineTileRequest(uint32_t zoomLevel, uint32_t xtile, uint32_t ytile)
Definition: TiledMapRenderer.cpp:268
Definition: StyleDescription.h:193
void Intersection(const TypeInfoSet &otherTypes)
Definition: TypeInfoSet.cpp:110
size_t GetEnd() const
Return the last to be drawn point.
Definition: Transformation.h:107
PTRouteDataFile(size_t cacheSize)
Definition: PTRouteDataFile.cpp:26
Type type
The type of the cell.
Definition: GroundTile.h:92
TileId(uint32_t x, uint32_t y)
Ceate a new tile by passing magnification and tile coordinates.
Definition: TileId.cpp:30
SymbolRendererCairo(cairo_t *draw)
Definition: SymbolRendererCairo.cpp:27
void SetLocation(const GeoCoord &coord)
Definition: RouteDescription.cpp:564
void BeginPrimitive() override
Definition: SymbolRendererCairo.cpp:32
virtual void Initialize()
Definition: PlaneMapRenderer.cpp:315
static const char *const IN_LOCALE_UNIT_LABEL
Name of the "inLocaleUnit" label.
Definition: EleFeature.h:85
bool OutputDebug() const
Definition: Progress.cpp:38
bool GetIndexAsPOI() const
Definition: TypeConfig.h:544
std::string UTF8ToLower(const std::string &text)
Definition: utf8helper.cpp:31
TypeInfo & SetIndexAsLocation(bool indexAsLocation)
Set, if an object of this type should be indexed as a location.
Definition: TypeConfig.h:507
double shieldGridSizeVert
Height of a cell for shield label placement.
Definition: MapPainter.h:277
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: ColorFeature.cpp:74
MapObjectInfoModel()
Definition: MapObjectInfoModel.cpp:31
static MagnificationLevel magCityOver
Definition: Magnification.h:152
virtual void SetSymbolValue(int attribute, const SymbolRef &value)=0
void SetLocale(const Locale &locale)
Definition: MapParameter.cpp:265
Buffer(const unsigned char *buf, size_t len)
Definition: map/src/osmscoutmap/oss/Scanner.cpp:113
void SetNetwork(const std::string_view &network)
Definition: NetworkFeature.h:45
void tapLongTap(const QPoint p)
bool IsDirectory(const std::string &filename)
Definition: File.cpp:107
DirectionDescription(double turnAngle, double curveAngle)
Definition: RouteDescription.cpp:292
int8_t layer
Layer this way is in.
Definition: MapPainter.h:115
GeoCoord position
Definition: PositionAgent.h:44
bool IsComplete() const
Return 'true' if no data at all has been assigned.
Definition: DataTileCache.h:414
Definition: ElevationModule.h:40
bool VisitAdminRegions(AdminRegionVisitor &visitor) const
Call the given visitor for each region in the index (deep first)
Definition: LocationService.cpp:542
static MagnificationLevel magRegion
Definition: Magnification.h:150
bool operator==(const ObjectOSMRef &reference) const
Definition: ObjectRef.h:75
Definition: NearPOIModel.h:42
std::shared_ptr< MotorwayJunctionDescription > MotorwayJunctionDescriptionRef
Definition: RouteDescription.h:476
bool LoadShader(GLuint &shader, GLenum type, const std::string &name, const std::string &shaderSource)
Definition: ShaderUtils.cpp:56
Definition: MapPainterAgg.h:49
static Parser::Exit _p1_u3(Parser *p, byte bb)
Definition: utf8helper.cpp:380
StyleCriteria criteria
Definition: StyleConfig.h:473
bool operator>(const Magnification &other) const
Definition: Magnification.h:227
void SetDoubleValue(int attribute, double value) override
Definition: Styles.cpp:602
static unsigned int f(N number, char *buffer)
Definition: Number.h:126
double y
Definition: Transformation.h:50
LineStyleRef GetOSMSubTileBorderLineStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1534
std::vector< std::vector< IconStyleSelectorList > > IconStyleLookupTable
List of selectors.
Definition: StyleConfig.h:533
bool operator<(const ScanCell &other) const
Definition: Geometry.h:1168
std::string UnitStr() const override
Definition: Distance.h:311
void RegisterRegularLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const std::vector< LabelData > &labels, const Vertex2D &position, double objectWidth) override
Register regular label with given text at the given pixel coordinate in a style defined by the given ...
Definition: MapPainterNoOp.cpp:56
Model providing access to currently installed voices on device.
Definition: InstalledVoicesModel.h:44
StyleAttributeDescriptor(StyleAttributeType type, const std::string &name, int attribute)
Definition: StyleDescription.cpp:86
std::shared_ptr< RoutingDatabase > RoutingDatabaseRef
Definition: RoutingDB.h:103
bool IsVisibleArea(const Projection &projection, const GeoBox &boundingBox, double pixelOffset) const
Useful global helper functions.
Definition: MapPainter.cpp:222
VehiclePosition(const Vehicle &vehicle, const PositionAgent::PositionState &state, const GeoCoord &coord, const std::optional< Bearing > &bearing, const std::optional< GeoCoord > &nextStepCoord, QObject *parent=nullptr)
Definition: VehiclePosition.h:53
OffsetRel
Offset for rendered line, relative to way.
Definition: Styles.h:44
bool replaceExisting
Definition: FileDownloader.h:151
bool SetThreadName(const std::string &name)
Try to set current thread name.
void SetColorValue(int attribute, const Color &value) override
Definition: Styles.cpp:828
void addOverlayObject(int id, const OverlayObjectRef &obj)
Definition: MapRenderer.cpp:177
double getProgress()
Definition: FileDownloader.cpp:390
AreaWayIndexRef GetAreaWayIndex() const
Definition: Database.cpp:500
CancelableFuture & operator=(const CancelableFuture &)=default
double GetG() const
Definition: Color.h:115
Definition: ChargingStationFeature.h:48
Definition: LocationDescriptionService.h:352
bool ReadFile(const std::string &filename, std::vector< char > &content)
Definition: File.cpp:117
QMutex overlayLock
Definition: MapRenderer.h:110
Q_INVOKABLE int indexOf(const QString &style) const
Definition: MapStyleModel.cpp:79
#define OSMSCOUT_MAP_SVG_API
Definition: MapSVGImportExport.h:45
std::optional< GeoCoord > center
"visual" polygon center (pole of inaccessibility).
Definition: Area.h:109
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: RefFeature.h:78
StyleErrorType
Definition: StyleError.h:35
Definition: StyleConfig.h:222
Data structure for holding temporary data about way paths (a way may consist of multiple paths/lines ...
Definition: MapPainter.h:162
Definition: RouteDescription.h:501
Definition: Progress.h:33
void SetMagnificationValue(int attribute, const Magnification &value) override
Definition: StyleConfig.h:399
bool IsOpen() const
Definition: AreaIndex.h:98
static const char *const ROUNDABOUT_LEAVE_DESC
Constant for a description of leaving a roundabout (RoundaboutLeaveDescription)
Definition: RouteDescription.h:74
@ attrZIndex
Definition: Styles.h:96
void touch(const QTouchEvent &event)
Definition: InputHandler.cpp:58
void AddPoint(Point *point)
Add a steiner point.
@ attrDisplayOffset
Definition: Styles.h:371
@ DistanceRole
Definition: SearchLocationModel.h:181
v2df atanh_pd(v2df x)
Definition: SSEMath.h:379
double getMaxAllowedSpeed() const
Definition: NavigationModel.h:197
MaxSpeedFeatureValue & operator=(const FeatureValue &other) override
Definition: MaxSpeedFeature.cpp:36
void operator+=(const Point &v)
Add a point to this point.
Definition: shapes.h:85
TileIdBoxConstIterator & operator++()
Definition: TileId.h:190
~MapPainterAgg() override
Definition: MapPainterAgg.cpp:48
static osmscout::GeoCoord tileVisualCenter(uint32_t zoomLevel, uint32_t xtile, uint32_t ytile)
Definition: OSMTile.cpp:56
void SetNetwork(const std::string &network)
Definition: PublicTransport.cpp:60
@ AuthorRole
Definition: AvailableVoicesModel.h:82
virtual void SetStringValue(int attribute, const std::string &value)
Definition: StyleDescription.cpp:32
FeatureValue * AllocateValue(void *buffer) override
Definition: EleFeature.cpp:126
void offlineMapChangedSignal(bool)
GeoCoord point
intersection point
Definition: Geometry.h:1240
ObjectFileRef GetObjectFileRef() const
Definition: Way.h:73
@ Error
Definition: include/osmscout/ost/Parser.h:45
@ attrSymbol
Definition: Styles.h:904
NameShortFeature()
Definition: NameShortFeature.cpp:56
Definition: OSMScoutQt.h:53
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: GradeFeature.cpp:65
double lambda
Definition: src/osmscout/util/SunriseSunset.cpp:62
@ DescriptionRole
Definition: AvailableMapsModel.h:215
void initialisationFinished(const osmscout::GeoBox &response)
WayDataFile(size_t cacheSize)
Definition: WayDataFile.cpp:27
bool MoveRight(double pixel)
Definition: MercatorProjection.h:161
bool StringToNumberSigned(const std::string &string, N &number, size_t base=10)
Definition: String.h:123
double GetLength() const
Definition: LabelPath.h:57
void set_tail(Point *p1)
Definition: sweep_context.h:174
void SetAreaMinDimensionMM(double areaMinDimensionMM)
Definition: MapParameter.cpp:95
std::shared_ptr< OpenGLTexture > OpenGLTextureRef
Definition: OpenGLMapData.h:67
bool Includes(const P &coord, bool openInterval=true) const
Returns 'true' if coordinate is within the bounding box.
Definition: GeoBox.h:113
void TAGLESSCOND(const std::string &tagName, TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:599
std::string GetPath() const
Definition: BasemapDatabase.cpp:80
Definition: EleFeature.h:63
constexpr uint32_t maxRawCoordValue
Definition: GeoCoord.h:58
Q_INVOKABLE QStringList availableVehicles()
Definition: RoutingModel.h:155
void DrawPath(const Projection &projection, const MapParameter ¶meter, const Color &color, double width, const std::vector< double > &dash, LineStyle::CapStyle startCap, LineStyle::CapStyle endCap, const CoordBufferRange &coordRange) override
Draw simple line with the given style,the given color, the given width and the given untransformed no...
Definition: MapPainterCairo.cpp:1163
void TYPEFEATURE(TypeInfo &typeInfo)
Definition: src/osmscout/ost/Parser.cpp:440
Definition: ChargingStationFeature.h:32
@ MapNameRole
Definition: MapDownloadsModel.h:61
size_t operator()(const osmscout::MagnificationLevel &level) const
Definition: Magnification.h:134
void STRING(std::string &value)
Definition: src/osmscout/ost/Parser.cpp:235
ScreenPixelRectangle(int x, int y, int width, int height)
Definition: LabelLayouterHelper.h:47
bool IsDebugPerformance() const
Definition: RoutingService.cpp:58
GradeFeatureValue(uint8_t grade)
Definition: GradeFeature.h:38
static uint32_t GetDatabaseFileFormatVersion(const std::string &directory)
Methods for loading/storing of type information from/to files.
Definition: TypeConfig.cpp:1206
void FLAGCONDBLOCK(bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:315
virtual Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const
Definition: OnlineTileProviderModel.cpp:49
AdvancingFront * front()
Definition: sweep_context.h:154
void SetLat(double lat)
Definition: NearPOIModel.h:157
bool IsNodeUsedAtLeastTwice(Id id) const
Definition: NodeUseMap.cpp:59
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: InstalledMapsModel.cpp:137
bool HasStyle(const std::vector< std::vector< std::list< StyleSelector< S, A >>>> &styleSelectors, const size_t level)
Definition: StyleConfig.cpp:640
@ TimeIntervalsRole
Definition: OpeningHoursModel.h:53
std::u32string UTF8StringToU32String(const std::string &text)
Definition: String.cpp:588
TypeInfoSet wayTypes
Definition: MapService.h:105
size_t PushCoord(const Vertex2D &coord)
Push coordinate to the buffer.
Definition: Transformation.cpp:251
virtual uint8_t GetMaxSpeed(const RouteDescription::Node &node) const =0
bool CanRouteFootForward() const
Definition: AccessFeature.h:153
TagId GetTagId(const std::string &name) const
Definition: TypeConfig.h:1137
GeoBox GetBoundingBox() const
Definition: BoundingBoxDataFile.h:62
FeatureReader< BridgeFeature > BridgeFeatureReader
Definition: BridgeFeature.h:52
void RegisterSurfaceToGradeMapping(const std::string &surface, size_t grade)
Methods for dealing with mappings for surfaces and surface grades.
Definition: TypeConfig.h:1157
RoutePoints(const std::list< Point > &points)
Definition: AbstractRoutingService.cpp:43
void longTap(const QPoint p)
const double PI_div2
Definition: utils.h:41
RefFeature()
Definition: RefFeature.cpp:56
LocationInfo::Type getType() const
Definition: LocationEntry.cpp:171
RefFeatureValueReader refReader
Value reader for the 'ref' feature.
Definition: MapPainter.h:258
LineStyle & SetDisplayOffset(double value)
Definition: Styles.cpp:255
std::shared_ptr< RoutingProfile > RoutingProfileRef
Definition: RoutingProfile.h:182
@ ByteSizeRole
Definition: AvailableMapsModel.h:213
@ FileRole
Definition: MapStyleModel.h:50
uint64_t id
Definition: LookupModule.h:85
AccessRestrictedFeatureValue & operator=(const FeatureValue &other) override
Definition: AccessRestrictedFeature.cpp:34
double GetOffset() const
Definition: Styles.h:877
std::optional< DatabaseId > GetDatabaseId(const std::string &databasePath) const
Definition: MultiDBRoutingService.cpp:540
QString label
Definition: LocationEntry.h:49
AccessFeatureValueReader accessReader
Definition: RoutingProfile.h:193
size_t GetMemory(const ValueSizer &sizer) const
Definition: Cache.h:280
std::string GetName() const
Definition: StyleDescription.h:119
Temporary stateful buffer for holding results of transformation of polygon from geo coords to display...
Definition: Transformation.h:58
void Cancel()
Definition: CancelableFuture.h:54
@ FastRandom
Definition: FileScanner.h:67
AccessFeatureValue(uint8_t access)
Definition: AccessFeature.h:51
void unlock()
Definition: ReadWriteLock.cpp:189
std::string GetName() const
Definition: PublicTransport.h:218
AccessFeatureValueReader accessReader
Value reader for the 'lanes' feature.
Definition: MapPainter.h:263
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: LayerFeature.cpp:71
size_t GetUInt() const
Definition: StyleConfig.h:154
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: NetworkFeature.cpp:61
void onNetworkReadyRead()
Definition: FileDownloader.cpp:175
Definition: Database.h:271
void widgetResized(const QSizeF &widgetSize) override
Definition: InputHandler.cpp:819
TileNodeData & GetNodeData()
Return a read-write reference to the node data.
Definition: DataTileCache.h:366
void SetPhone(const std::string_view &phone)
Definition: PhoneFeature.h:44
bool IsDebug() const
Definition: Logger.h:380
Point operator-() const
Negate this point.
Definition: shapes.h:77
const codepoint lower
Definition: utf8helper_charmap.h:44
AddressFeature()
Definition: AddressFeature.cpp:57
Definition: Database.h:188
@ attrGapColor
Definition: Styles.h:368
RouteDescriptionRef route
Definition: PositionAgent.h:84
Definition: sweep_context.h:99
static const char *const URL_LABEL
Name of the "url" label.
Definition: WebsiteFeature.h:77
Definition: LabelLayouter.h:85
UTF8String & operator<<(char cc)
A convenience method for writeByte(char)
Definition: utf8helper.h:151
@ streetNamesRole
Definition: RouteStep.h:77
bool IsOpen() const
Definition: AreaNodeIndex.h:105
bool GetRoutesDataMMap() const
Definition: Database.cpp:138
std::shared_ptr< TokenString > TokenStringRef
Definition: LocationService.cpp:677
GeoBox Intersection(const GeoBox &other) const
Create new GeoBox from intersection of this with other If not Intersects, invalid GeoBox is returned.
Definition: GeoBox.cpp:94
bool GetRouteNode(const DBId &id, RouteNodeRef &node) override
Return the route node for the given db offset.
Definition: SimpleRoutingService.cpp:181
const character charmap_f0_90_93[]
Definition: utf8helper_charmap.cpp:2612
uint32_t GetMinY() const
Definition: Tiling.h:214
void elevationProfileAppend(ElevationModule::ElevationPoints points, int requestId)
Helper class to divide a given GeoBox in multiple equally sized parts.
Definition: Geometry.h:1487
std::shared_ptr< IconLookup > IconLookupRef
Definition: IconLookup.h:114
Definition: StyleConfig.h:243
void searchFinished(const QString searchPattern, bool error)
@ RegionRole
Definition: MapObjectInfoModel.h:61
std::optional< std::tuple< Timestamp, Timestamp > > SunriseSunsetRes
Definition: include/osmscout/util/SunriseSunset.h:41
Message to pass to the NavigationEngine each time the calculated route changes.
Definition: Agents.h:84
OSMScoutQtBuilder()
Definition: OSMScoutQt.cpp:70
BoundingBoxDataFile()
Definition: BoundingBoxDataFile.cpp:31
@ OpeningHours
Definition: MapObjectInfoModel.h:65
void SetAtPOIDescription(const LocationAtPlaceDescriptionRef &description)
Definition: LocationDescriptionService.cpp:119
void SetFeatures(const FeatureValueBuffer &buffer)
Definition: Node.cpp:34
void SetProjection(float width, float height)
Definition: OpenGLMapData.h:351
friend Database
Definition: Database.h:201
Definition: RoutingService.h:65
virtual void OnMaxSpeed(const RouteDescription::MaxSpeedDescriptionRef &maxSpeedDescription)
Called everytime we have max speed information for a route segment.
Definition: RouteDescriptionPostprocessor.cpp:97
Definition: QmlSettings.h:50
Definition: StyleConfig.h:352
virtual void addToQueue(const QUrl &source)=0
add a track to the playlist
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: EleFeature.cpp:28
bool HasPattern() const
Definition: Styles.h:326
PathTextStyleRef style
Definition: LabelLayouter.h:51
size_t RawSize() const
Returns the number of bytes of this string.
Definition: utf8helper.h:124
static const char *const WAY_MAXSPEED_DESC
Constant for a description of the maximum speed for the given way.
Definition: RouteDescription.h:86
std::string GetName() const override
Returns the name of the feature.
Definition: NameShortFeature.cpp:67
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: NameAltFeature.cpp:77
Definition: RoutingProfile.h:361
Duration GetDuration() const
Definition: Navigation.h:164
bool operator==(const LaneDescription &o) const
Definition: RouteDescription.cpp:505
bool IsOpen() const
Definition: DebugDatabase.cpp:58
@ attrEndCap
Definition: Styles.h:93
std::shared_ptr< T > TRef
Definition: MapTileCache.h:42
void WAYPATHTEXTSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1437
Definition: SymbolRendererCairo.h:45
int width
Definition: LabelLayouterHelper.h:41
double maxAllowedSpeed
Definition: NavigationModel.h:61
TileIdBoxConstIterator operator++(int)
Definition: TileId.h:204
#define OSMSCOUT_CLIENT_QT_API
Definition: ClientQtImportExport.h:45
QStringList getStreetNames() const
Definition: RouteStep.h:182
virtual void DrawRect(double x, double y, double w, double h)=0
bool done
Definition: FileDownloader.h:142
MapOverlay(QQuickItem *parent=0)
Definition: MapOverlay.cpp:24
void WriteOSMObjectLink(const ObjectOSMRef &object, const std::string &name)
Definition: HTMLWriter.cpp:314
double height
Definition: LabelLayouter.h:124
bool Load(const TypeConfig &typeConfig, const std::string &path)
Load the bounding box data and return, if this operation was successful.
Definition: TypeDistributionDataFile.cpp:55
Definition: TiledRenderingHelper.h:33
std::shared_ptr< RouteDescription > RouteDescriptionRef
Definition: RouteDescription.h:840
StyleConstantWidth(double value, Unit unit)
Definition: StyleConfig.cpp:94
const GeoCoord & GetCoords() const
Definition: Node.h:70
bool operator==(const TextStyle &other) const
Definition: Styles.cpp:1004
static const StyleDescriptorRef pathSymbolStyleDescriptor
Definition: Styles.cpp:1722
static size_t EatWhitespace(const std::string &text, size_t currentPos)
Definition: GeoCoord.cpp:83
void setPhysicalDpi(double physicalDpi)
Definition: InputHandler.h:99
std::string UnitStr() const override
Definition: Distance.h:280
virtual ~WaterIndex()
Definition: WaterIndex.cpp:33
bool IsVisible() const override
Definition: Styles.h:667
FeatureValue * AllocateValue(void *buffer) override
Definition: BrandFeature.cpp:84
~MultiDBRoutingService() override
Definition: MultiDBRoutingService.cpp:56
TypeInfo & SetIgnore(bool ignore)
If set to true, an object of this typoe should be ignored (not exported for renderng,...
Definition: TypeConfig.h:666
bool isDone() const
Definition: FileDownloader.h:187
bool Search(const std::string &query, bool searchPOIs, bool searchLocations, bool searchRegions, bool searchOther, bool transliterate, ResultsMap &results) const
Definition: TextSearchIndex.cpp:108
ScreenBox()=default
The default constructor creates an invalid instance.
bool GetIndexMMap() const
Definition: Database.cpp:148
static bool LabelInstanceSorter(const LabelInstance< NativeGlyph, NativeLabel > &a, const LabelInstance< NativeGlyph, NativeLabel > &b)
Definition: LabelLayouter.h:181
TextStyle & SetEmphasizeColor(const Color &color)
Definition: Styles.cpp:935
CmdLineArgParserRef CmdLineStringOption(Args &&...args)
Definition: CmdLineParsing.h:262
void set(double x_, double y_)
Set this point to some specified coordinates.
Definition: shapes.h:70
@ AddressNumberRole
Definition: MapObjectInfoModel.h:59
double GetX() const
Definition: Pixel.h:193
static bool SearchForPostalAreaForRegion(LocationIndexRef &locationIndex, const SearchParameter ¶meter, const std::string &postalAreaPattern, const std::string &locationPattern, const std::string &addressPattern, const AdminRegionSearchVisitor::Result ®ionMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult &result, BreakerRef &breaker)
Definition: LocationService.cpp:1621
IconLookup(QThread *thread, DBThreadRef dbThread, QString iconDirectory)
Definition: IconLookup.cpp:36
RoutableObjectsMessage(const Timestamp ×tamp, const RoutableObjectsRef &data)
Definition: DataAgent.cpp:75
void SemErr(const char *msg)
Definition: map/src/osmscoutmap/oss/Parser.cpp:62
double GetWidth() const
Definition: StyleConfig.h:179
AccessRestriction signals, if there is some access restriction for a given way and a given vehicle.
Definition: AccessRestrictedFeature.h:129
std::shared_ptr< Route > RouteRef
Definition: Route.h:175
double currentSpeed
Definition: NavigationModel.h:59
std::list< BorderStyleSelector > BorderStyleSelectorList
Definition: StyleConfig.h:502
double GetWidth() const
Returns the width of the bounding box (maxLon-minLon).
Definition: ScreenBox.h:105
~MapObjectInfoModel() override
Definition: MapObjectInfoModel.cpp:60
bool IsRouteMaster() const
Definition: TypeConfig.h:610
Definition: StyleConfig.h:97
Definition: FeeFeature.h:32
bool LoadShaderSource(const std::string &dirPath, const std::string &name, std::string &result)
Definition: ShaderUtils.cpp:35
double GetDPI() const
Return the DPI as part of the projection.
Definition: Projection.h:250
bool CanBatch() const override
Definition: MercatorProjection.h:70
bool IsNameTag(TagId tag, uint32_t &priority) const
Definition: Tag.cpp:288
uint64_t Id
Definition: OSMScoutTypes.h:40
Line & operator<<(long value)
Definition: Logger.h:177
static const std::string SECTION_NAME_ROUTING
Definition: DescriptionService.h:277
std::vector< std::vector< ShieldStyleSelectorList > > ShieldStyleLookupTable
List of selectors.
Definition: StyleConfig.h:515
uint8_t AddObject(const ObjectFileRef &object, uint16_t objectVariantIndex)
Definition: RouteNode.cpp:66
DBId & operator=(const DBId &)=default
TypeInfoRef GetWayTypeInfo(TypeId id) const
Returns the type definition for the given type id.
Definition: TypeConfig.h:1289
Roles
Definition: NearPOIModel.h:84
TransPoint * points
Definition: Transformation.h:67
~MapStyleModel() override
Definition: MapStyleModel.cpp:55
double GetLabelLineFitToWidth() const
Definition: MapParameter.h:284
void onNetworkError(QNetworkReply::NetworkError code)
Definition: FileDownloader.cpp:269
void SetBreaker(BreakerRef &breaker)
Definition: LocationService.cpp:318
static osmscout::GeoCoord tileRelativeCoord(uint32_t zoomLevel, double x, double y)
Definition: OSMTile.cpp:46
bool ParametrizeForCar(const TypeConfig &typeConfig, const std::map< std::string, double > &speedMap, double maxSpeed) override
Setup profile for car, it also setup junction penalty and multiply cost limit and cost limit factor.
Definition: RoutingProfile.h:394
Definition: utf8helper.h:83
Signal< std::thread::id > & ThreadExitSignal()
Signal that is emitted on thread exit.
Definition: Thread.cpp:75
@ onewayForward
Definition: AccessFeature.h:40
bool HasCyclewayTrackRight() const
Definition: SidewayFeature.h:83
@ PathRole
Definition: MapStyleModel.h:51
OSMTileId GetMin() const
Definition: Tiling.h:194
SearchModule * MakeSearchModule()
Definition: OSMScoutQt.cpp:402
~Latch()
Definition: ReadWriteLock.cpp:52
bool PixelToGeo(double x, double y, GeoCoord &coord) const override
Converts a pixel coordinate to a geo coordinate.
Definition: TileProjection.cpp:115
NetworkFeature()
Definition: NetworkFeature.cpp:56
QString getName() const
Definition: Voice.h:146
bool Valid() const
Definition: ObjectRef.h:110
bool operator!=(const FeatureValueBuffer &other) const
Definition: TypeConfig.cpp:612
MaxSpeedDescription(uint8_t speed)
Definition: RouteDescription.cpp:408
double lat
Definition: LocationEntry.h:53
bool GetEntry(const K &key, CacheRef &reference)
Getting the value with the given key from cache.
Definition: Cache.h:165
@ IsTodayRole
Definition: OpeningHoursModel.h:54
double labelSpace
Space between individual labels.
Definition: LabelLayouter.h:92
int GetAttribute() const
Definition: StyleDescription.h:129
@ Symbol
Definition: map/include/osmscoutmap/oss/Parser.h:58
bool GetRouteNodes(const std::set< DBId > &routeNodeIds, std::unordered_map< DBId, RouteNodeRef > &routeNodeMap) override
Definition: SimpleRoutingService.cpp:149
double getDistanceTo() const
Definition: RouteStep.h:157
bool containsRequest(uint32_t zoomLevel, uint32_t x, uint32_t y)
Definition: TileCache.cpp:153
void SetType(const TypeInfoRef &type)
Definition: Node.cpp:24
std::shared_ptr< AreaDataFile > AreaDataFileRef
Definition: AreaDataFile.h:52
CallbackId RegisterTileStateCallback(TileStateCallback callback)
Definition: MapService.cpp:1445
void Write(FileWriter &writer) const
Write the TurnRestriction data to the given FileWriter.
Definition: TurnRestriction.cpp:45
@ error
Signal an error.
Definition: Location.h:106
std::string GetName() const override
Returns the name of the feature.
Definition: BuildingFeature.cpp:31
Node(Point &p, Triangle &t)
Definition: advancing_front.h:55
uint64_t GetCell(size_t idx) const
Return the cells in the interval [GetFirstCell(),GetLastCell()].
Definition: LabelLayouterHelper.cpp:84
void RegisterContourLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const PathLabelData &labelData, const LabelPath &labelPath)
Definition: LabelLayouter.h:743
QString getName() const
Definition: Voice.h:86
bool HasFeature(size_t idx) const
Definition: Node.h:93
static const size_t NUMBER_LABEL_INDEX
Index of the 'number' label.
Definition: FromToFeature.h:106
bool operator!=(const TileKey &other) const
Compare tile ids for inequality.
Definition: TileId.cpp:194
Definition: RouteStateAgent.h:47
Definition: advancing_front.h:42
void SetLinearInterpolationUsage(bool b)
Switch to enable/disable linear interpolation of latitude to pixel computation.
Definition: TileProjection.h:126
Color Alpha(double newAlpha) const
Definition: Color.h:156
Definition: RoutingService.h:312
LayerFeatureValue(int8_t layer)
Definition: LayerFeature.h:38
GeoCoord GetCoord() const
Definition: RouteNode.h:152
virtual void ProcessingLoop()=0
OSMScoutQtBuilder & WithBasemapLookupDirectory(const QString &basemapLookupDirectory)
Definition: OSMScoutQt.h:119
IconStyleRef iconStyle
Icon or symbol style.
Definition: LabelLayouter.h:76
Definition: RoutingService.h:154
void SetOperator(const std::string_view &op)
Definition: OperatorFeature.h:45
TagInfo(TagId id, const std::string &name)
Definition: Tag.cpp:197
Definition: Progress.h:100
std::list< Entry > results
Definition: LocationService.h:255
static Locale ByEnvironmentSafe()
Creates Locale defined by current environment, it is not throwing exception when environment locale i...
Definition: Locale.h:124
Distance & operator+=(const Distance &d)
Definition: Distance.h:75
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: DestinationFeature.cpp:74
Parser(utf8helper::Transform func)
Definition: utf8helper.cpp:491
DBFileOffset GetDBFileOffset() const
Definition: RouteDescription.h:749
LineStyle & SetJoinCap(CapStyle joinCap)
Definition: Styles.cpp:269
bool Close()
Definition: OptimizeAreasLowZoom.cpp:112
void playbackStateChanged(VoicePlayer::PlaybackState state)
bool HasDashes() const
Definition: Styles.h:429
Definition: MapStyleModel.h:35
bool GetPOIOnlyMatch() const
Definition: LocationService.cpp:393
bool valid
projection is valid
Definition: MercatorProjection.h:42
bool operator<(const Entry &other) const
Definition: LocationService.cpp:413
virtual void onShowAltLanguageChanged(bool)
Definition: MapRenderer.cpp:140
double mainSlotWidth
Width of main slot, used for relative positioning.
Definition: MapPainter.h:167
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: BuildingFeature.cpp:26
const std::vector< FeatureRef > & GetFeatures() const
Return all features registered.
Definition: TypeConfig.h:1377
TagIsInCondition(TagId tag)
Definition: Tag.cpp:175
void DrawGround(const Projection &projection, const MapParameter ¶meter, const FillStyle &style) override
(Optionally) fills the area with the given default color for ground.
Definition: MapPainterSVG.cpp:1029
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: LanesFeature.cpp:146
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: FromToFeature.cpp:91
void onJobFinished(QString path)
Definition: FileDownloader.cpp:365
@ IdRole
Definition: MapObjectInfoModel.h:53
void changeView(const MapView &view)
Definition: MapOverlay.cpp:38
bool operator==(const ObjectVariantData &other) const
Definition: RouteNode.cpp:29
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: AvailableVoicesModel.cpp:289
void SetStringValue(int attribute, const std::string &value) override
Definition: StyleConfig.h:387
void downloadedBytes(uint64_t sz)
void AddData(const MapDataRef &d, PainterType &painter)
Definition: BatchMapPainter.h:89
void IFCOND(bool &state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:353
static const std::string LABEL_KEY_WAY_LANES_LANESFORWARD
Definition: DescriptionService.h:238
std::string GetIsIn() const
Definition: IsInFeature.h:50
Definition: AreaIndex.h:40
const std::list< DescriptionRef > & GetDescriptions() const
Return a list of descriptions attached to the current node.
Definition: RouteDescription.h:730
std::shared_ptr< CrossingWaysDescription > CrossingWaysDescriptionRef
Definition: RouteDescription.h:256
bool operator<(const ObjectFileRef &reference) const
Definition: ObjectRef.h:174
ObjectFileRef GetObject() const
Definition: Path.h:51
@ PostalCodeRole
Definition: MapObjectInfoModel.h:60
QString getFetchError() const
Definition: AvailableMapsModel.h:246
std::shared_ptr< StyleAttributeDescriptor > StyleAttributeDescriptorRef
Definition: StyleDescription.h:468
void RegisterSurfaceToGradeMapping(const std::string &surface, size_t grade)
Methods for dealing with mappings for surfaces and surface grades.
Definition: Tag.cpp:322
OptimizeMethod
Definition: Transformation.h:183
DatabaseId GetDatabaseId() const
Definition: RouteDescription.h:744
int GetEnumValue(const std::string &name) const
Definition: StyleDescription.h:257
bool HasSockets() const
Definition: ChargingStationFeature.h:65
bool GetOffset(const N &id, FileOffset &offset) const
Return the file offset in the data file for the given object id.
Definition: NumericIndex.h:342
bool IsSignificant() const
Return true, if the measured time is siginificant, which means, that it has an value of at least one ...
Definition: StopClock.cpp:92
double GetLon() const
Definition: SearchLocationModel.h:231
double GetLat() const
Definition: Point.h:98
QString getDebugString() const
Definition: LocationEntry.cpp:208
void tileDownloaded(uint32_t zoomLevel, uint32_t x, uint32_t y, QImage image, QByteArray downloadedData)
Definition: TiledMapOverlay.cpp:100
void threadFinished()
Definition: OSMScoutQt.cpp:388
void GetTilesForBoundingBox(const Magnification &magnification, const GeoBox &boundingBox, std::list< TileRef > &tiles) const
Return all tile necessary for covering the given boundingbox using the given magnification.
Definition: DataTileCache.cpp:152
Intersection()
Definition: Intersection.cpp:26
bool canceled
Definition: CancelableFuture.h:50
void tileDownloadFailed(uint32_t zoomLevel, uint32_t x, uint32_t y, bool zoomLevelOutOfRange)
Definition: TiledMapOverlay.cpp:110
std::shared_ptr< DataTileCache > TiledDataCacheRef
Definition: DataTileCache.h:549
bool Open(const std::string &path, bool memoryMappedData)
Definition: AreaAreaIndex.cpp:216
void set_head(Point *p1)
Definition: sweep_context.h:164
StyleResolveContext(const TypeConfigRef &typeConfig)
Definition: StyleConfig.cpp:37
ObjectFileRef ref
Definition: LabelLayouter.h:174
QHash< int, QByteArray > roleNames() const override
Definition: NearPOIModel.cpp:115
StyleFlagsModel()
Definition: StyleFlagsModel.cpp:27
V value
Definition: Cache.h:67
EnumNameValueMap enumMap
Definition: StyleDescription.h:237
std::shared_ptr< MapTile > MapTileRef
Definition: MapTileCache.h:237
static const std::string SUBSECTION_NAME_WAY_SIDEWAYS
Definition: DescriptionService.h:224
virtual void SetLabelValue(int attribute, const LabelProviderRef &value)=0
std::string GetLabel(const Locale &, size_t) const override
Definition: BrandFeature.h:55
AreaRouteIndex()
Definition: AreaRouteIndex.cpp:26
std::shared_ptr< Token > TokenRef
Definition: map/include/osmscoutmap/oss/Scanner.h:41
@ ErrorStringRole
Definition: MapDownloadsModel.h:65
#define _PS_CONST(Name)
Definition: SSEMath.h:101
bool operator==(const FeatureValue &other) const override
Definition: SidewayFeature.cpp:45
QString getColor() const
Definition: OverlayObject.h:142
void play() override
start playing from current index
Definition: VoicePlayer.cpp:49
bool IsInArea() const
Definition: Database.h:265
std::vector< osmscout::Point > nodes
Definition: OverlayObject.h:58
void onUpdate(std::list< RouteStep > instructions)
Definition: NavigationModel.cpp:144
bool VisitAddresses(const AdminRegion ®ion, const PostalArea &postalArea, const Location &location, AddressVisitor &visitor) const
Visit all addresses for a given location (in a given AdminRegion)
Definition: LocationIndex.cpp:752
osmscout::GeoCoord center
Definition: InputHandler.h:233
@ attrAutoSize
Definition: Styles.h:523
bool IsPath() const
Definition: TypeConfig.h:417
void SetGrade(uint8_t grade)
Definition: GradeFeature.h:44
Definition: Exception.h:47
static const char *const NAME
Name of this feature.
Definition: AdminLevelFeature.h:82
Distance GetEllipsoidalDistance(double aLon, double aLat, double bLon, double bLat)
Calculating Vincenty's inverse for getting the ellipsoidal distance of two points on earth.
Definition: Geometry.cpp:131
Symbol(const std::string &name, ProjectionMode projectionMode)
Definition: Styles.cpp:1516
bool GetAreaByOffset(const FileOffset &offset, AreaRef &area) const
Definition: Database.cpp:847
ProcessingQueue< E > & outQueue
Definition: Worker.h:116
std::string Destring(const char *str)
Definition: include/osmscout/ost/Parser.h:103
Lane lane
Definition: LaneAgent.h:64
QStringList getPath() const
Definition: AvailableMapsModel.h:79
LabelPath(double minSegmentLength=5)
Definition: LabelPath.cpp:27
~LookupModule()
Definition: LookupModule.cpp:40
const ShieldStyleRef & GetShieldStyle() const
Definition: Styles.h:796
double GetCurveAngle() const
Definition: RouteDescription.h:303
std::string PeakNextArg() const
Definition: CmdLineParsing.cpp:56
double angle
Display rotation angle in radians, canvas clockwise.
Definition: Projection.h:49
TileIdBoxConstIterator(const TileId ¤tTile, const TileId &minTile, const TileId &maxTile)
Definition: TileId.h:178
std::shared_ptr< QmlRoutingProfile > QmlRoutingProfileRef
Definition: QmlRoutingProfile.h:117
void onOfflineMapChanged(bool)
Definition: TiledMapRenderer.cpp:401
void onlineTileProviderChanged(const OnlineTileProvider &)
Definition: TiledMapRenderer.cpp:377
bool HasMaxLevel() const
Definition: StyleConfig.h:303
Definition: RoutingService.h:99
Definition: FeatureReader.h:253
void SetPos(size_t value)
Definition: map/src/osmscoutmap/oss/Scanner.cpp:139
void SetDelunayEdgeCCW(Point &p, bool e)
void MeshClean(Triangle &triangle)
Place GetWay() const
Return the place this information is refering to.
Definition: LocationDescriptionService.h:189
LaneMessage(const Timestamp ×tamp, const Lane &lane)
Definition: LaneAgent.cpp:24
const Distance horizontalAccuracy
Definition: Agents.h:38
Definition: RouteData.h:35
void SetLabelValue(int attribute, const LabelProviderRef &value) override
Definition: Styles.cpp:1342
std::shared_ptr< MultiDBRoutingService > MultiDBRoutingServiceRef
Definition: MultiDBRoutingService.h:171
AddressRef address
The address itself.
Definition: Location.h:226
bool GetAreasByBlockSpans(const std::vector< DataBlockSpan > &spans, std::vector< AreaRef > &areas) const
Definition: Database.cpp:881
void Run(const osmscout::BasemapDatabaseRef &basemapDatabase, const std::list< DBInstanceRef > &allDatabases, ReadLock &&locker) override
Definition: MapRenderer.cpp:272
bool IsVisibleWay(const Projection &projection, const GeoBox &boundingBox, double pixelOffset) const
Definition: MapPainter.cpp:247
Service,to get a structured description of an object on the map (Area, Way or Node).
Definition: DescriptionService.h:412
static const std::string LABEL_KEY_ID_KIND
Definition: DescriptionService.h:417
double getCurrentSpeed() const
Definition: NavigationModel.h:192
std::shared_ptr< NameDescription > NameDescriptionRef
Definition: RouteDescription.h:178
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: MapDownloadsModel.cpp:109
void AddData(const TypeInfoSet &types, const std::vector< O > &data)
Add data to the tile and mark the tile as completed.
Definition: DataTileCache.h:144
std::list< NodeRegionSearchResultEntry > GetNodeResults() const
Definition: Database.h:181
CairoFont font
Definition: MapPainterCairo.h:64
void Stop()
Definition: StopClock.cpp:37
std::string GetSectionKey() const
Definition: DescriptionService.h:69
MapRenderer * MakeMapRenderer(RenderingType type)
Definition: OSMScoutQt.cpp:443
const std::string & GetSlot() const
Definition: Styles.h:1266
void Error(const std::string &text) override
Definition: Progress.cpp:177
bool operator==(const Vertex2D &other) const
Definition: Pixel.h:137
@ WebsiteRole
Definition: LocationInfoModel.h:77
Definition: CancelableFuture.h:46
const char * GetTypeName() const
Definition: ObjectRef.cpp:52
LocationListModel(QObject *parent=nullptr)
Definition: SearchLocationModel.cpp:35
void Write(const TypeConfig &typeConfig, FileWriter &writer) const
Writes the data to the given FileWriter.
Definition: Way.cpp:122
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:215
static StyleDescriptorRef GetDescriptor()
Definition: Styles.cpp:479
void SetNameShort(const std::string_view &nameShort)
Definition: NameShortFeature.h:44
OSMTileIdBoxConstIterator operator++(int)
Definition: Tiling.h:148
std::unordered_map< FileOffset, WayRef > MemberCache
Definition: Route.h:66
@ attrSize
Definition: Styles.h:820
virtual void SetLabelValue(int attribute, const LabelProviderRef &value)
Definition: StyleDescription.cpp:80
SocketType type
Definition: ChargingStationFeature.h:50
static const char *const NAME_LABEL
Name of the "name" label.
Definition: BrandFeature.h:77
void Flush()
Completely flush the cache removing all entries from it.
Definition: Cache.h:264
void CopyAttributes(const TextStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:968
VoiceState
Definition: AvailableVoicesModel.h:88
static const size_t LABEL_INDEX
Index of the 'opening hours' label.
Definition: OpeningHoursFeature.h:80
void SetSymbolValue(int attribute, const SymbolRef &value) override
Definition: StyleConfig.h:417
double As() const
Definition: Distance.h:150
Id GetHash() const
Encode the coordinate value into a number (the number has hash character).
Definition: GeoCoord.h:175
std::shared_ptr< DescriptionService > DescriptionServiceRef
Definition: DescriptionService.h:436
Distance GetPenaltySameType() const
Definition: RoutingProfile.h:414
static const uint8_t usableByFoot
This path can be traveled by foot.
Definition: RouteNode.h:64
static const char *const NAME
Name of this feature.
Definition: BuildingFeature.h:37
void STYLEFILTER_ONEWAY(StyleFilter &filter)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1183
@ distanceRole
Definition: RouteStep.h:72
@ sidecar
special offset for routes, line are stacked next to way, same colors are "collapsed"
bool GetWaysByOffset(const std::set< DBFileOffset > &wayOffsets, std::unordered_map< DBFileOffset, WayRef > &wayMap) override
Definition: SimpleRoutingService.cpp:200
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: MaxStayFeature.cpp:86
void onRoutingProgress(int percent, int requestId)
Definition: RoutingModel.cpp:137
ObjectDescription()
Definition: DescriptionService.cpp:118
bool operator!=(const Distance &d) const
Definition: Distance.h:124
TagId tagArea
Definition: TypeConfig.h:1108
FastestPathRoutingProfile(const TypeConfigRef &typeConfig)
Definition: RoutingProfile.cpp:373
void TYPEKIND(unsigned char &types)
Definition: src/osmscout/ost/Parser.cpp:749
bool isSearching() const
Definition: SearchLocationModel.h:223
virtual size_t GetNodeIndex(const RouteDescription::Node &node, Id nodeId) const =0
void Clear()
Definition: RouteData.cpp:43
@ FirstStep
Definition: MapPainter.h:65
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: RoutingModel.cpp:203
MatchQuality adminRegionMatchQuality
Definition: LocationService.h:240
FeatureFilterData(size_t featureFilterIndex, size_t flagIndex)
Definition: StyleConfig.cpp:191
std::shared_ptr< LocationDescriptionService > LocationDescriptionServiceRef
Definition: LocationDescriptionService.h:441
Definition: WaterIndex.h:41
void SetFill(const FillStyleRef &fillStyle) override
Definition: SymbolRendererQt.cpp:31
static Distance Zero()
Definition: Distance.cpp:33
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: NameAltFeature.cpp:24
Definition: DBLoadJob.h:47
void CopyAttributes(const BorderStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:695
Definition: LanesFeature.h:32
bool CanRoute(Vehicle vehicle) const
If set to 'true', an object of this type can be traveled by the given vehicle by default.
Definition: TypeConfig.h:457
static const char *const NAME
Name of this feature.
Definition: AccessFeature.h:245
bool operator==(const Magnification &other) const
Definition: Magnification.h:202
void Close()
Definition: BasemapDatabase.cpp:69
Some general information regarding the earth.
Definition: Earth.h:34
uint32_t GetNodeCount(const TypeInfo &type) const
Definition: TypeDistributionDataFile.h:75
void WriteInvalidCoord()
Definition: FileWriter.cpp:794
bool IsInitialized() const
Definition: MapPainterOpenGL.h:152
size_t GetIconId() const
Definition: Styles.h:959
@ AddressLocationRole
Definition: LocationInfoModel.h:79
void onLocationAdminRegionFinished(const osmscout::GeoCoord)
Definition: LocationInfoModel.cpp:359
static const std::string LABEL_KEY_WAY_LANES_TURNFORWARD
Definition: DescriptionService.h:240
std::function< void(const TileRef &)> TileStateCallback
Definition: MapService.h:116
void DrawArea(const Projection &projection, const MapParameter ¶meter, const AreaData &area) override
Draw the given area using the given FillStyle for the area outline.
Definition: MapPainterCairo.cpp:1234
ScreenVectorRectangle()=default
std::shared_ptr< TypeInfo > TypeInfoRef
Definition: TypeConfig.h:61
K key
Definition: Cache.h:66
virtual RouteDescription::NameDescriptionRef GetNameDescription(const RouteDescription::Node &node) const =0
void SetPlateLabelPadding(double plateLabelPadding)
Definition: MapParameter.cpp:149
DynamicFeatureLabelReader(const TypeConfig &typeConfig, const std::string &featureName, const std::string &labelName)
Assigns a label to the reader.
Definition: LabelProvider.cpp:105
void WriteNumber(int16_t number)
Write a numeric value to the file using some internal encoding to reduce storage size.
Definition: FileWriter.cpp:604
constexpr int IsModifier
Definition: utf8helper_charmap.h:32
CmdLineArgParserRef CmdLineIntOption(Args &&...args)
Definition: CmdLineParsing.h:280
Definition: LocationService.h:236
Roles
Definition: RouteStep.h:64
@ unknown
Definition: GroundTile.h:49
@ RegionRole
Definition: LocationInfoModel.h:69
void Break() override
Stop the processing.
Definition: Breaker.cpp:24
const char * what() const noexcept override
Definition: Exception.cpp:116
TypeInfo & SetIgnoreSeaLand(bool ignoreSeaLand)
Set, if an object of this type should be ignored for land/sea calculation.
Definition: TypeConfig.h:650
QString getDescription() const
Definition: Voice.h:102
int Peek()
Definition: src/osmscout/ost/Scanner.cpp:127
double distanceDelta
Definition: RouteStep.h:49
std::list< FillStyleSelector > FillStyleSelectorList
Definition: StyleConfig.h:496
std::string GetCondition() const
Definition: FeeFeature.h:76
int y
Definition: LabelLayouterHelper.h:40
std::string GetDescription() const override
Definition: Exception.cpp:50
void rerouteRequest(double fromLat, double fromLon, const QString bearing, double bearingAngle, double toLat, double toLon)
Requesting computation of the new route when wehicle leave current route.
VNode(const DBId ¤tNode, bool currentRestricted, const ObjectFileRef &object, const DBId &previousNode, bool previousRestricted)
Full featured constructor.
Definition: RoutingService.h:356
const character charmap_e1_82[]
Definition: utf8helper_charmap.cpp:1583
virtual void SetBorder(const BorderStyleRef &borderStyle, double screenMmInPixel)=0
Distance distance
Definition: VoiceInstructionAgent.h:148
void SetMaxPenalty(const HourDuration &d)
Definition: RoutingProfile.h:439
PathTextStyleRef GetAreaBorderTextStyle(const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1450
size_t GetWidth(int index)
Returns width of a texture at given index in pixel.
Definition: TextLoader.cpp:175
@ CCW
Definition: utils.h:44
void run() override
Definition: SearchModule.cpp:63
RNode(const DBId &id, const RouteNodeRef &node, const ObjectFileRef &object)
Definition: RoutingService.h:244
void SetOptimizeLowZoomMMap(bool mmap)
Definition: Database.cpp:83
bool operator<=(const Bearing &o) const
Definition: Bearing.h:129
std::string GetName() const override
Returns the name of the feature.
Definition: BridgeFeature.cpp:31
Vertex2D operator-(const Vertex2D &a, const Vertex2D &b)
Definition: Pixel.cpp:37
std::string GetUnitsSeparator() const
Definition: Locale.h:95
void AddPolygon(const std::vector< Point > &polygonsCoords)
Definition: Geometry.cpp:633
CancelableFuture< T > Async(const std::function< T(Breaker &)> &task)
Definition: AsyncWorker.h:74
static MagnificationLevel magStreet
Definition: Magnification.h:160
Definition: TiledMapRenderer.h:41
void positionChange(osmscout::GeoCoord coord, bool horizontalAccuracyValid, double horizontalAccuracy)
bool GetByBlockSpans(IteratorIn begin, IteratorIn end, std::vector< ValueType > &data) const
Read data values from the given DataBlockSpans.
Definition: DataFile.h:537
void setOpeningHours(const QString &openingHours)
Definition: OpeningHoursModel.cpp:91
CapStyle
Definition: Styles.h:78
void SetIntValue(int attribute, int value) override
Definition: Styles.cpp:1848
void WriteNumber(const MagnificationLevel &level)
Definition: FileWriter.h:126
AvailableVoicesModel()
Definition: AvailableVoicesModel.cpp:33
@ DrawHillShading
Definition: MapPainter.h:89
std::string ResultString() const
Definition: StopClock.cpp:123
double getLon() const
Definition: RouteStep.h:137
bool showCoordinates(const osmscout::GeoCoord &coord, const osmscout::Magnification &magnification, const osmscout::Bearing &bearing) override
Definition: InputHandler.cpp:807
bool HasCyclewayLaneLeft() const
Definition: SidewayFeature.h:68
AreaRef GetArea(const DatabaseId &dbId, const ObjectFileRef &areaRef) const
Definition: DataAgent.cpp:52
void onStyleFlagsRequested()
Definition: StyleModule.cpp:56
double width
Definition: LabelLayouter.h:123
const std::unordered_map< std::string, std::string > & GetDescriptions() const
Definition: TypeFeature.h:204
std::string GetOptionHint() const override
Definition: CmdLineParsing.cpp:156
const QList< RouteStep > & routeSteps() const
Definition: QtRouteData.cpp:68
virtual void EndPrimitive()
Definition: SymbolRenderer.h:86
LockHandler(const MapView &view, const QSizeF &widgetSize)
Definition: InputHandler.h:473
static const char *const SUGGESTED_LANES_DESC
Constant for a description of suggested route lanes (SuggestedLaneDescription)
Definition: RouteDescription.h:94
static const std::string LABEL_KEY_PRESENCE_MAXSTAY_CONDITION
Definition: DescriptionService.h:360
long GetHeight() const
Definition: TextLoader.h:66
void SetLabelPadding(double labelPadding)
Definition: MapParameter.cpp:144
QString getGender() const
Definition: Voice.h:141
void SetOperator(const std::string &operatorName)
Definition: PublicTransport.cpp:95
RenderMode
Definition: Styles.h:1219
Definition: TypeConfig.h:1052
bool GetDelunayEdgeCCW(Point &p)
static std::vector< char > Base64Decode(const std::string &in)
Definition: Base64.h:46
Definition: utf8helper_charmap.h:41
QString size
Definition: AvailableMapsModel.h:126
@ footForward
Definition: AccessFeature.h:34
virtual ~CancelableFuture()=default
void ClearFeatureValues()
Clears all feature buffer values.
Definition: TypeConfig.cpp:655
double y
Definition: LabelLayouterHelper.h:75
@ LowMemRandom
Definition: FileScanner.h:68
static const Color YELLOW
Definition: Color.h:55
void AddType(const TypeInfoRef &type, double speed)
Setup same speed for all grades of route type.
Definition: RoutingProfile.cpp:189
virtual size_t GetFeatureBitCount() const
This method returns the number of additional feature bits reserved.
Definition: TypeFeature.h:157
virtual void onFontNameChanged(const QString &)
Definition: MapRenderer.cpp:120
#define OSMSCOUT_MAP_OPENGL_API
Definition: MapOpenGLImportExport.h:45
double getSegDistSq(const GeoCoord &p, const Point &a, const Point &b)
Definition: PolygonCenter.cpp:36
Fee
Definition: FeeFeature.h:35
double GetPhysicalDPI() const
Definition: QmlSettings.cpp:41
static const char *const NAME
Name of this feature.
Definition: BrandFeature.h:74
Progress()
Definition: Progress.cpp:27
std::vector< WayRef > contours
Definition: ElevationService.h:38
void SynErr(int line, int col, int n)
Definition: src/osmscout/ost/Parser.cpp:923
void Error(int line, int col, const char *s)
Definition: src/osmscout/ost/Parser.cpp:1037
Definition: Geometry.h:1467
static const uint8_t typeNode
Condition applies to nodes.
Definition: TypeConfig.h:74
void FEATUREDESCS(Feature &feature)
Definition: src/osmscout/ost/Parser.cpp:330
ingroup Description
Definition: DescriptionService.h:127
bool touch(const QTouchEvent &event) override
Definition: InputHandler.cpp:260
bool operator<(const Point &other) const
While we do not want to compare using operator== we at least want to manage points in containers.
Definition: Point.h:159
SRTMDataRef GetSRTMData(const Projection &projection) const
Definition: MapService.cpp:1416
@ attrTextColor
Definition: Styles.h:719
ObjectFileRefStreamReader(FileScanner &reader)
Definition: FileScanner.cpp:2573
virtual Duration GetTime(DatabaseId dbId, const Area &area, const Distance &deltaDistance) const =0
@ right
Definition: RouteDescription.h:278
void searchResult(const QString searchPattern, const QList< osmscout::LocationEntry >)
void Close()
Definition: DebugDatabase.cpp:63
BorderStyle & SetPriority(int priority)
Definition: Styles.cpp:683
void positionEstimate(osmscout::PositionAgent::PositionState state, double lat, double lon, QString bearing)
Definition: InputHandler.h:301
TargetReachedMessage(const Timestamp ×tamp, const GeoCoord &coord, const GeoCoord &target, const Bearing &targetBearing, const Distance &targetDistance)
Definition: RouteStateAgent.cpp:41
void RegisterFeature(const FeatureRef &feature)
Methods for dealing with features.
Definition: TypeConfig.cpp:823
std::string text
Definition: map/include/osmscoutmap/oss/Parser.h:68
std::shared_ptr< TagCondition > TagConditionRef
Definition: Tag.h:68
std::string GetName() const override
Returns the name of the feature.
Definition: DestinationFeature.cpp:69
size_t bIndex
"b path" point index before intersection
Definition: Geometry.h:1242
const character charmap_c2[]
Definition: utf8helper_charmap.cpp:164
bool IsDebugPerformance() const
Definition: MapParameter.h:384
static TypeInfoRef Read(FileScanner &scanner)
Definition: TypeConfig.cpp:287
OSMId id
Definition: ObjectRef.h:49
AddressRef GetAddress() const
Definition: Location.h:309
static const std::string SUBSECTION_NAME_WAY_ACCESSRESTRICTED
Definition: DescriptionService.h:226
QStringList path
Definition: AvailableMapsModel.h:44
Definition: client-qt/include/osmscoutclientqt/SunriseSunset.h:41
void SetData(const TypeInfoSet &types, std::vector< O > &&data)
Assign data to the tile and mark the tile as completed.
Definition: DataTileCache.h:172
void Read(const TypeConfig &typeConfig, FileScanner &scanner)
Read the node data from the given FileScanner.
Definition: Node.cpp:44
RouteStep & operator=(const RouteStep &other)
Definition: RouteStep.cpp:132
bool HasCyclewayTrackLeft() const
Definition: SidewayFeature.h:78
uint8_t BytesNeededToEncodeNumber(N number)
Definition: Number.h:318
NameShortFeatureValue & operator=(const FeatureValue &other) override
Definition: NameShortFeature.cpp:34
bool operator==(const GeoCoord &other) const
Return true if both coordinates are equals (using == operator)
Definition: GeoCoord.h:271
void Error(int line, int col, const char *s)
Definition: map/src/osmscoutmap/oss/Parser.cpp:2670
static const char *const ROUNDABOUT_ENTER_DESC
Constant for a description of entering a roundabout (RoundaboutEnterDescription)
Definition: RouteDescription.h:72
FeatureValue * AllocateValue(void *buffer) override
Definition: IsInFeature.cpp:74
RouteNodeRef node
The current route node.
Definition: RoutingService.h:224
static StyleDescriptorRef GetDescriptor()
Definition: Styles.cpp:963
int GetLine() const
Definition: StyleError.h:73
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: LocationFeature.cpp:29
Color GetColor() const
Definition: ColorFeature.h:45
TypeInfoRef type
The type of the object.
Definition: RouteNode.h:45
Triangle * triangle
Definition: advancing_front.h:44
const std::list< TypeCondition > & GetConditions() const
Returns the list of conditions for the given type.
Definition: TypeConfig.h:342
ScreenBox Resize(double offset) const
Resize the rectangle in all dimension using the given amount.
Definition: ScreenBox.cpp:66
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: BrandFeature.cpp:79
std::string GetName() const override
Returns the name of the feature.
Definition: MaxSpeedFeature.cpp:63
virtual ~Line()
Definition: Logger.cpp:37
static const char *const NAME
Name of this feature.
Definition: TunnelFeature.h:37
void AddPrimitive(const DrawPrimitiveRef &primitive)
Definition: Styles.cpp:1524
void VisitClippingRings(size_t index, const RingVisitor &visitor) const
Visit possible clippings of ring specified by index.
Definition: Area.cpp:593
void OnCancel(const CancelCallback &callback)
Callback triggered when future is canceled.
Definition: CancelableFuture.h:206
void setLayer(qint8 l)
Definition: OverlayObject.h:124
void activate(const MapIcon &icon)
Definition: IconAnimation.cpp:37
static const Color DARK_FUCHSIA
Definition: Color.h:66
@ attrOffsetRel
Definition: Styles.h:1231
ScreenBox Merge(const ScreenBox &other) const
Definition: ScreenBox.cpp:88
void Write(FileWriter &writer) const
Write data to the given FileWriter.
Definition: RouteNode.cpp:173
This implements a pure C++ Latch providing lock-S (shared) and lock-X (exclusive).
Definition: ReadWriteLock.h:39
bool started
Definition: FileDownloader.h:143
Definition: Distance.h:296
OSMScoutQtBuilder & WithUserAgent(const QString &appName, const QString &appVersion)
Definition: OSMScoutQt.h:182
void SetMaxMM(double maxMM)
Definition: StyleConfig.cpp:126
void RegisterMaxSpeedAlias(const std::string &alias, uint8_t maxSpeed)
Methods for dealing with mappings for surfaces and surface grades.
Definition: Tag.cpp:348
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: NetworkFeature.cpp:76
Vertex2D GetFirst() const
Return the first element on the path.
Definition: Transformation.h:417
std::shared_ptr< Way > WayRef
Definition: Way.h:212
Definition: PositionAgent.h:42
Definition: StringMatcher.h:59
LocationCoordDescriptionRef GetCoordDescription() const
Return the location is geo coordinates.
Definition: LocationDescriptionService.cpp:134
size_t charPos
Definition: map/include/osmscoutmap/oss/Scanner.h:50
std::string GetTokensFromEnd(const std::list< std::string > &tokens, size_t count)
Definition: String.cpp:455
std::shared_ptr< StringMatcherFactory > StringMatcherFactoryRef
Definition: StringMatcher.h:67
Definition: ColorFeature.h:67
FileOffset GetDataOffset() const
Definition: AreaIndex.cpp:32
@ TiledRendering
Definition: OSMScoutQt.h:202
bool IsValid() const
Definition: DBFileOffset.h:107
void clearPendingRequests()
remove all pending requests TODO: in case of multiple map widgets, add some id to avoid removing requ...
Definition: TileCache.cpp:60
MapDownloaderRef GetMapDownloader()
Definition: OSMScoutQt.cpp:357
void AddCondition(const TagConditionRef &condition)
Definition: Tag.cpp:41
bool BoundingBoxToPixel(const GeoBox &boundingBox, ScreenBox &screenBox) const
Converts a valid GeoBox to its on screen pixel coordinates.
Definition: Projection.cpp:28
@ destinationsRole
Definition: RouteStep.h:78
Type GetType() const
Definition: TurnRestriction.h:64
void AddHole(const std::vector< Point * > &polyline)
static const TypeId typeIgnore
Definition: TypeConfig.h:57
bool operator>(const Bearing &o) const
Definition: Bearing.h:124
A single threaded agent.
Definition: Worker.h:43
void SetSymbolValue(int attribute, const SymbolRef &value) override
Definition: Styles.cpp:1836
QString GetUserAgent() const
Definition: OSMScoutQt.cpp:484
void AddCoord(const Vertex2D &coord)
Definition: Styles.cpp:1472
std::vector< PostalArea > postalAreas
Definition: Location.h:81
@ Done
Definition: utf8helper.h:70
@ DescriptionRole
Definition: RouteStep.h:66
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: FeeFeature.cpp:60
FileOffset GetFileOffset() const
Definition: RouteNode.h:142
OsmTileDownloader(QString diskCacheDir, const OnlineTileProvider &provider)
Definition: OsmTileDownloader.cpp:32
GeoCoord coord
Definition: PositionAgent.h:67
QHash< int, QByteArray > roleNames() const override
Definition: InstalledVoicesModel.cpp:155
Position independent representation of layouted label.
Definition: LabelLayouter.h:118
DownloadJob(QNetworkAccessManager *webCtrl, QDir target, bool replaceExisting)
Definition: FileDownloader.cpp:299
void SetBorder(const BorderStyleRef &borderStyle, double screenMmInPixel) override
Definition: SymbolRendererCairo.cpp:43
std::shared_ptr< FastestPathRoutingProfile > FastestPathRoutingProfileRef
Definition: RoutingProfile.h:540
bool currentPosition(bool locationValid, osmscout::GeoCoord currentPosition) override
Definition: InputHandler.cpp:784
QObject view
Definition: MapOverlay.h:37
void setPenaltySameType(double)
Definition: QmlRoutingProfile.cpp:165
void SetShowAltLanguage(bool showAltLanguage)
Definition: MapParameter.cpp:260
CmdLineParseResult Parse(CmdLineScanner &scanner) override
Definition: CmdLineParsing.cpp:292
TimeTickMessage(const Timestamp ×tamp)
Definition: Engine.cpp:34
static const std::string SUBSECTION_NAME_WAY_ACCESS
Definition: DescriptionService.h:225
std::vector< TypeInfoSet > wayTypeSets
way types with defined style by magnification level
Definition: StyleConfig.h:602
Magnification GetMag() const
Definition: StyleConfig.h:136
Timestamp::duration Duration
Definition: Time.h:29
TiledMapOverlay(QQuickItem *parent=0)
Definition: TiledMapOverlay.cpp:133
void clear()
Definition: QtRouteData.cpp:49
std::string GetFrom() const
Definition: PublicTransport.h:162
MapPainterSVG(const StyleConfigRef &styleConfig)
Definition: MapPainterSVG.cpp:39
Definition: IconAnimation.h:36
bool IsValid() const
Definition: Way.h:113
GeoBox GetBoundingBox(const MagnificationLevel &level) const
Return the bounding box of the given tile.
Definition: TileId.cpp:73
Roles
Definition: MapObjectInfoModel.h:50
TypeId GetWayId() const
Returns the unique id of this type.
Definition: TypeConfig.h:284
void SetAccess(uint8_t access)
Definition: AccessRestrictedFeature.h:51
void SetRef(const std::string &ref)
Definition: PublicTransport.cpp:90
@ OnRoute
Definition: PositionAgent.h:60
std::shared_ptr< Location > LocationRef
Definition: Location.h:161
bool GetLabelIndex(const std::string &labelName, size_t &index) const
Returns the index of the label with the given name.
Definition: TypeFeature.cpp:49
std::string GetCostString(double cost) const override
Textual representation of cost.
Definition: RoutingProfile.h:533
bool enabled
Definition: TiledMapOverlay.h:80
Definition: StringMatcher.h:48
Color(double r, double g, double b) noexcept
Definition: Color.h:96
QString searchPattern
Definition: SearchModule.h:52
bool move(const QVector2D &vector) override
Definition: InputHandler.cpp:379
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:150
void SetSearchForLocation(bool searchForLocation)
Definition: LocationService.cpp:353
GeoBox CropTo(const GeoBox &other) const
Create new GeoBox to is cropped to the bounds of the passed geo box.
Definition: GeoBox.cpp:109
A FeatureValueBuffer is instantiated by an object and holds information about the type of the object,...
Definition: TypeConfig.h:729
Node * right_node
Definition: sweep_context.h:102
void MAXSPEEDS()
Definition: src/osmscout/ost/Parser.cpp:171
static const char *const AREAS_IDMAP
Definition: AreaDataFile.h:38
void SetSize(size_t cacheSize)
Change the size of the cache.
Definition: DataTileCache.cpp:50
double GetIconPixelSize() const
Definition: MapParameter.h:314
double cellWidth
Width of cell.
Definition: GroundTile.h:97
static OSMScoutQt & GetInstance()
Definition: OSMScoutQt.cpp:272
bool Insert(size_t pos, codepoint u, utf8helper::Transform func=utf8helper::TransformNop)
Insert the character u at the position pos.
Definition: utf8helper.cpp:178
static const char *const NAME
Name of this feature.
Definition: ClockwiseDirectionFeature.h:37
void Set(Id id)
Definition: NumberSet.cpp:32
MagnificationLevel indexLevel
Definition: AreaIndex.h:46
int index() const override
returns the current index
Definition: VoicePlayer.cpp:57
bool operator==(const FeatureValue &other) const override
Definition: NameAltFeature.cpp:45
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: GradeFeature.cpp:29
bool operator!=(const DataBlockSpan &other) const
Definition: DataFile.h:60
void SetLabelLineFitToWidth(double labelLineFitToWidth)
Definition: MapParameter.cpp:139
double contourLabelOffset
Same value as in MapParameter but converted to pixel.
Definition: MapPainter.h:274
PartialStyle< S, A > style
Definition: StyleConfig.h:452
Definition: PostalCodeFeature.h:66
Definition: OsmTileDownloader.h:41
double GetWidth(const Projection &projection) const
width in pixels for given projection
Definition: Styles.h:1194
bool isEnabled()
Definition: TiledMapOverlay.cpp:231
void SetDestination(const std::string_view &destination)
Definition: DestinationFeature.h:44
void onMaxAllowedSpeed(double maxAllowedSpeed)
Definition: NavigationModel.cpp:209
static bool Parse(const std::string &text, GeoCoord &coord)
Parse a textual representation of a geo coordinate from a string to an GeoCoord instance.
Definition: GeoCoord.cpp:207
bool reemitRequests()
trigger request signal for all pending requests
Definition: TileCache.cpp:145
void operator*=(double a)
Multiply this point by a scalar.
Definition: shapes.h:99
virtual void DrawContourSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const ContourSymbolData &data)=0
Draw the given Symbol on top of the contour of the given path.
const LabelProviderRef & GetLabel() const
Definition: Styles.h:857
bool operator<(const Vertex2D &other) const
Definition: Pixel.h:143
void BindBuffers()
Definition: OpenGLMapData.h:190
LocationEntry(LocationInfo::Type type, const QString &label, const QString &altName, const QString &objectType, const QList< AdminRegionInfoRef > &adminRegionList, const QString database, const osmscout::GeoCoord coord, const osmscout::GeoBox bbox, QObject *parent=nullptr)
Definition: LocationEntry.cpp:30
TagNotCondition(const TagConditionRef &condition)
Definition: Tag.cpp:29
void lock_shared()
Definition: ReadWriteLock.cpp:213
uint32_t GetWayCount(const TypeInfo &type) const
Definition: TypeDistributionDataFile.h:80
virtual void SetMagnificationValue(int attribute, const Magnification &value)
Definition: StyleDescription.cpp:44
void SetIntValue(int attribute, int value) override
Definition: Styles.cpp:177
bool operator!=(const TileId &other) const
Compare tile ids for inequality.
Definition: TileId.h:90
FeatureValue * AllocateValue(void *buffer) override
Definition: LocationFeature.cpp:76
const FileOffset & GetFileOffset() const
Definition: ObjectRef.h:202
bool operator==(const FeatureValue &other) const override
Definition: WebsiteFeature.cpp:45
std::set< A > attributes
Definition: StyleConfig.h:376
DestinationDescription(const std::string &description)
Definition: RouteDescription.cpp:392
size_t GetPatternId() const
Definition: Styles.h:336
Definition: MapPainterAgg.h:44
DestinationFeatureValue(const std::string &destination)
Definition: DestinationFeature.h:38
DatabaseId database
Definition: DBFileOffset.h:40
bool IsInterior()
Definition: shapes.h:311
std::vector< std::string > Keys(const std::string &prefix) override
Definition: QtSettingsStorage.cpp:96
bool Open(const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedData)
Definition: OptimizeAreasLowZoom.cpp:73
RoutingProgressRef GetProgress() const
Definition: RoutingService.h:201
Definition: AdminLevelFeature.h:30
SearchModule * searchModule
Definition: SearchModule.h:48
QString getLang() const
Definition: Voice.h:136
DescriptionRef GetDescription(const char *name) const
Definition: RouteDescription.cpp:546
void SetRenderSea(bool)
Definition: QmlSettings.cpp:107
PathSymbolStyle & SetRenderMode(RenderMode renderMode)
Definition: Styles.cpp:1738
@ AddressLocationRole
Definition: MapObjectInfoModel.h:58
std::shared_ptr< LocationAtPlaceDescription > LocationAtPlaceDescriptionRef
Definition: LocationDescriptionService.h:168
virtual void DrawPath(const Projection &projection, const MapParameter ¶meter, const Color &color, double width, const std::vector< double > &dash, LineStyle::CapStyle startCap, LineStyle::CapStyle endCap, const CoordBufferRange &coordRange)=0
Draw simple line with the given style,the given color, the given width and the given untransformed no...
void AddPoint(const Vertex2D &point)
Definition: LabelPath.cpp:37
void Close() override
Definition: DBLoadJob.cpp:153
int Peek()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:126
virtual ~SearchModule()
Definition: SearchModule.cpp:102
size_t GetIndex() const
return the index of this feature within the list of features of the type.
Definition: TypeFeature.h:272
static std::string GetData2Filename(const std::string &filenamebase)
Definition: RoutingService.cpp:78
bool IsTopOuter() const
Definition: Area.h:153
TypeConfigRef typeConfig
Reference to the type configuration.
Definition: StyleConfig.h:554
std::string GetName() const override
Returns the name of the feature.
Definition: AccessRestrictedFeature.cpp:62
Basin basin
Definition: sweep_context.h:129
bool GetWayByOffset(const DBFileOffset &offset, WayRef &way) override
Definition: SimpleRoutingService.cpp:188
TypeInfo & SetIndex(size_t index)
Set the index of this type.
Definition: TypeConfig.cpp:111
bool CanUseForward(const Way &way) const override
Definition: RoutingProfile.cpp:276
std::string GetOperator() const
Definition: PublicTransport.h:152
bool IsVisible() const
Definition: Styles.h:141
QThread * thread
Definition: MapRenderer.h:90
std::shared_ptr< FeatureValueBuffer > FeatureValueBufferRef
Definition: TypeConfig.h:1039
Definition: RouteDescription.h:546
TypeConfigRef GetTypeConfig(const DatabaseId &dbId) const
Definition: DataAgent.cpp:24
bool IsNode() const
Definition: ObjectRef.h:224
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: OperatorFeature.cpp:24
static constexpr std::chrono::seconds BackOffMax
Maximum back-off time.
Definition: FileDownloader.h:47
void Clear()
Definition: RouteDescription.cpp:592
std::string GetDebugString() const override
Definition: RouteDescription.cpp:387
void onLocationDescriptionFinished(const osmscout::GeoCoord)
Definition: LocationInfoModel.cpp:307
double & operator[](Grade grade)
Definition: RoutingProfile.h:82
bool Open(const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedIndex, bool memoryMappedData)
Definition: DataFile.h:660
@ MapRole
Definition: AvailableMapsModel.h:217
void GetTypes(const Magnification &magnification, const TypeInfoSet &areaTypes, TypeInfoSet &availableAreaTypes) const
Definition: OptimizeAreasLowZoom.cpp:237
static const char *const NAME_LABEL
Name of the "name" label.
Definition: OperatorFeature.h:77
void SetWebsite(const std::string_view &website)
Definition: WebsiteFeature.h:44
std::string GetDescription() const
Definition: RouteDescription.cpp:456
void currentSpeedUpdate(double currentSpeed)
double GetLabelPadding(const LabelData &labelData) const
Definition: LabelLayouter.h:333
const Color & GetBgColor() const
Definition: Styles.h:689
QString description
Definition: AvailableMapsModel.h:45
void PATHTEXTSTYLEATTR(PathTextPartialStyle &style)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1523
static MagnificationLevel magCounty
Definition: Magnification.h:149
Point * PointCCW(const Point &point) const
const GeoCoord to
Definition: RouteStateAgent.h:39
TagId RegisterNameTag(const std::string &tagName, uint32_t priority)
Definition: Tag.cpp:246
ArrivalEstimateMessage(const Timestamp ×tamp, const Timestamp &arrivalEstimate, const Distance &remainingDistance)
Definition: ArrivalEstimateAgent.cpp:24
ZoomGestureHandler(const MapView &view, const QPoint &p, double zoomDistance)
Definition: InputHandler.cpp:492
~OSMScoutQt() override
Definition: OSMScoutQt.cpp:328
Comparator to sort ObjectFileRefs strictly by increasing file offset.
Definition: ObjectRef.h:246
std::unordered_map< std::string, std::vector< ObjectFileRef > > ResultsMap
Definition: TextSearchIndex.h:55
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: NearPOIModel.cpp:106
bool animationInProgress() override
Definition: InputHandler.cpp:661
static const char *const NAME
Name of this feature.
Definition: OpeningHoursFeature.h:74
void Write(const TypeConfig &typeConfig, FileWriter &writer) const
Write the area with all data required in the standard db.
Definition: Area.cpp:402
bool HasOffset() const
Definition: Styles.h:1301
MapTile(const TileKey &key)
Create a new tile with the given id.
Definition: MapTileCache.cpp:27
@ KeyRole
Definition: StyleFlagsModel.h:56
bool successful
Definition: FileDownloader.h:144
std::thread::id GetThreadId() const
Definition: AsyncWorker.h:62
virtual void SetUIntValue(int attribute, size_t value)=0
bool IsOpen() const
Definition: HTMLWriter.h:54
Log & Warn(bool state)
Definition: Logger.h:407
void GROUPS(TypeInfo &typeInfo)
Definition: src/osmscout/ost/Parser.cpp:483
void Close()
Definition: CoverageIndex.cpp:30
void AddDescription(const char *name, const DescriptionRef &description)
Definition: RouteDescription.cpp:575
static const char *const NAME
Name of this feature.
Definition: GradeFeature.h:69
const std::list< Vertex2D > & GetCoords() const
Definition: Styles.h:1038
const std::vector< ContourLabelType > & ContourLabels() const
Definition: LabelLayouter.h:887
@ ShortDayRole
Definition: OpeningHoursModel.h:52
Definition: SymbolRenderer.h:33
DBRenderJob(osmscout::MercatorProjection renderProjection, QMap< QString, QMap< osmscout::TileKey, osmscout::TileRef >> tiles, osmscout::MapParameter *drawParameter, QPainter *p, std::vector< OverlayObjectRef > overlayObjects, StyleConfigRef emptyStyleConfig, bool drawCanvasBackground=true, bool renderBasemap=true, bool renderDatabases=true)
Definition: MapRenderer.cpp:250
DBInstanceRef db
Definition: SearchModule.h:49
std::shared_ptr< IconStyle > IconStyleRef
Definition: Styles.h:990
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: MaxSpeedFeature.cpp:31
Definition: RouteDescriptionBuilder.h:43
TokenRef Scan()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:503
static const char *const DIRECTION_DESC
Constant for a description of drive direction (DirectionDescription)
Definition: RouteDescription.h:68
EdgeEvent()
Definition: sweep_context.h:124
bool GetObjectDetails(const osmscout::ObjectFileRef &object, const std::string &searchKey, QString &typeName, QString &name, QString &altName, osmscout::GeoCoord &coordinates, osmscout::GeoBox &bbox)
Definition: SearchModule.cpp:412
bool operator==(const Distance &d) const
Definition: Distance.h:119
QHash< int, QByteArray > roleNames() const override
Definition: SearchLocationModel.cpp:431
double GetDisplayOffset() const
Definition: Styles.h:1296
std::shared_ptr< NameChangedDescription > NameChangedDescriptionRef
Definition: RouteDescription.h:207
static bool CrossesElevationLine(int32_t ele, int32_t height1, int32_t height2)
Definition: MapPainter.cpp:2567
static const std::string LABEL_KEY_NAME_TYPE
Definition: DescriptionService.h:155
ScreenBox GetBoundingBox() const override
Definition: Styles.cpp:1491
const std::vector< std::string > & GetLocationIgnoreTokens() const
Definition: LocationIndex.h:196
virtual bool IsMotorway(const RouteDescription::Node &node) const =0
std::string GetNetwork() const
Definition: NetworkFeature.h:50
MatchQuality locationMatchQuality
Definition: LocationService.h:244
osmscout::RefType getObjectType() const override
Definition: OverlayObject.h:202
void onObjectsLoaded(const LocationEntry &entry, const QList< LookupModule::ObjectInfo > &objects)
Definition: MapObjectInfoModel.cpp:266
std::string UTF8StringToLocaleString(const std::string &text)
Definition: String.cpp:612
TypeInfoSetConstIterator end() const
Definition: TypeInfoSet.h:186
RefType
Definition: ObjectRef.h:138
bool operator==(const FeatureValue &other) const override
Definition: OperatorFeature.cpp:45
void SetDebugPerformance(bool debug)
Definition: RoutingService.cpp:53
Definition: VehiclePosition.h:40
bool operator!=(const BorderStyle &other) const
Definition: Styles.cpp:754
void WriteDocumentEnd()
Definition: HTMLWriter.cpp:361
Definition: StyleDescription.h:364
SocketType
Definition: ChargingStationFeature.h:35
const FeatureInstance & GetFeature(size_t idx) const
Return the feature at the given index.
Definition: TypeConfig.h:225
osmscout::GeoCoord GetCenter() const
Returns the visual center of the map.
Definition: MapPainterOpenGL.cpp:1074
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: ClockwiseDirectionFeature.cpp:36
void setPenaltyDifferentType(double)
Definition: QmlRoutingProfile.cpp:179
void Clear()
Definition: NodeUseMap.cpp:85
std::string GetDisplayText() const
Return a short human readable description of the tile id.
Definition: TileId.cpp:158
double GetFontHeight(const Projection &projection, const MapParameter ¶meter, double fontSize) override
Returns the height of the font.
Definition: MapPainterNoOp.cpp:41
UTF8String & Transform(utf8helper::Transform)
Apply transformation to the string.
Definition: utf8helper.cpp:239
@ attrShieldSpace
Definition: Styles.h:722
Definition: InputHandler.h:374
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: SearchLocationModel.cpp:422
int GetLastRow() const
Return final index of row (y+height-1 of rectangle)
Definition: LabelLayouterHelper.h:145
bool isLockedToPosition() override
Definition: InputHandler.cpp:811
void SortLabels()
Definition: LabelLayouter.h:322
size_t labelCount
Number of labels rendered.
Definition: LabelLayouter.h:90
bool Open(RoutingProfileBuilder routingProfileBuilder)
Definition: MultiDBRoutingService.cpp:61
bool IsWarn() const
Definition: Logger.h:390
FeatureValue * AllocateValue(void *buffer) override
Definition: PostalCodeFeature.cpp:84
AvailableMapsModelItem(const AvailableMapsModelItem &o)
Definition: AvailableMapsModel.h:59
static const std::string LABEL_KEY_WAY_SIDEWAYS_CYCLETRACK
Definition: DescriptionService.h:246
void GotoBegin()
Moves the writing cursor to the start of the file (offset 0)
Definition: FileWriter.cpp:175
bool CanUse(const RoutingProfile &profile, DatabaseId database, const RouteNode &routeNode, size_t pathIndex) override
Definition: SimpleRoutingService.cpp:84
RouteInstructionsMessage(const Timestamp ×tamp, const std::list< RouteInstruction > &instructions)
Definition: RouteInstructionAgent.h:35
bool IsArea() const
Definition: ObjectRef.h:234
void SetupValues()
Evaluate speed for all grades.
Definition: RoutingProfile.h:93
GeoBox bbox
Definition: Route.h:69
TypeInfo & SetIsPath(bool isPath)
If set to 'true', a node can be of this type.
Definition: TypeConfig.h:410
static MagnificationLevel magSuburb
Definition: Magnification.h:154
uint32_t codepoint
Definition: utf8helper_charmap.h:37
StyleConfig & SetWayPrio(const TypeInfoRef &type, size_t prio)
Definition: StyleConfig.cpp:941
Direction
Definition: Geometry.h:1490
bool operator==(const FeatureValue &other) const override
Definition: GradeFeature.cpp:45
bool IsFinished() const
Definition: DBLoadJob.cpp:171
double remainingDistance
Definition: NavigationModel.h:56
void SetLocationOnlyMatch(bool locationOnlyMatch)
Definition: LocationService.cpp:373
virtual int index() const =0
returns the current index
void WriteText(const std::string &text)
Definition: HTMLWriter.cpp:235
static const char * FILE_TYPES_DAT
Definition: TypeConfig.h:1055
std::string GetName() const override
Returns the name of the feature.
Definition: ChargingStationFeature.cpp:117
void SetJunctionPenalty(bool b)
Definition: RoutingProfile.h:409
static const char *const MOTORWAY_ENTER_DESC
Constant for a description of entering a motorway (MotorwayEnterDescription)
Definition: RouteDescription.h:76
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: MaxStayFeature.cpp:60
void SetMapProjection(const OpenGLProjection &mapProjection)
Definition: OpenGLMapData.h:368
std::string text
The label text (type==Text|PathText)
Definition: LabelLayouter.h:74
uint32_t GetMaxY() const
Definition: TileId.h:291
void tick()
Definition: client-qt/src/osmscoutclientqt/SunriseSunset.cpp:34
const FillStyleRef & GetFillStyle() const
Definition: Styles.h:1008
Definition: LabelLayouter.h:56
OSMRefType
Definition: ObjectRef.h:34
SearchRunnable(SearchModule *searchModule, DBInstanceRef &db, const QString &searchPattern, int limit, osmscout::BreakerRef &breaker)
Definition: SearchModule.cpp:32
double GetFontSize() const
Definition: QmlSettings.cpp:119
StyleErrorType GetType() const
Definition: StyleError.h:51
void SetIconPixelSize(double size)
Definition: MapParameter.cpp:169
bool vehiclePosition(const VehiclePosition &vehiclePosition, bool autoRotateMap) override
Definition: InputHandler.cpp:828
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: NameShortFeature.cpp:24
double GetSidecarMaxDistanceMM() const
Definition: MapParameter.h:229
void SetLayoutOverlap(uint32_t overlap)
Definition: LabelLayouter.h:249
IconMode GetIconMode() const
Definition: MapParameter.h:304
void AddNewTexture(OpenGLTextureRef texture)
Definition: OpenGLMapData.h:303
int16_t GetEle() const
Definition: EleFeature.h:49
std::shared_ptr< StyleConfig > StyleConfigRef
Definition: StyleConfig.h:859
std::string AsString() const
Definition: Distance.cpp:25
IconStyleRef GetAreaIconStyle(const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1440
osmscout::ScreenVectorRectangle GlyphBoundingBox(const CairoNativeGlyph &glyph) const
Definition: MapPainterCairo.cpp:849
QString ref
Definition: IconLookup.h:55
std::vector< TypeInfoSet > nodeTypeSets
Definition: StyleConfig.h:582
int queueCount() const override
returns the track count in the playlist
Definition: VoicePlayer.cpp:41
Line Info()
Start logging a line of informational output.
Definition: Logger.cpp:84
@ lonRole
Definition: RouteStep.h:71
void downloadJobsChanged()
void ReportTag(const ObjectOSMRef &object, const TagMap &tags, const std::string &error) override
Definition: TagErrorReporter.cpp:32
Definition: StyleConfig.h:146
bool GetAutoSize() const
Definition: Styles.h:605
double GetOffset() const
Definition: Styles.h:1306
Definition: RouteDescription.h:638
Definition: ConstructionYearFeature.h:82
bool Convert(const std::string &name, Magnification &magnification)
Definition: Magnification.cpp:97
const double lonConversionFactor
Definition: GeoCoord.cpp:30
friend Database
Definition: Database.h:248
@ LocationObjectRole
Definition: NearPOIModel.h:92
void accessCache(std::function< void(TileCache &)> fn)
Acquire tileCacheMutex and provide reference to onlineTileCache.
Definition: TiledMapOverlay.cpp:93
NumericIndex(const std::string &filename, size_t cacheSize)
Definition: NumericIndex.h:126
MultitouchHandler(const MapView &view)
Definition: InputHandler.cpp:667
PathTextStyleRef GetWayPathTextStyle(const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1307
size_t GetNodeUsedCount() const
Definition: NodeUseMap.cpp:75
bool LoadContent(const std::string &filename, const std::string &content, ColorPostprocessor colorPostprocessor=nullptr, bool submodule=false, Log &log=osmscout::log)
Methods for loading a concrete OSS style sheet.
Definition: StyleConfig.cpp:1603
OpeningHoursFeature()
Definition: OpeningHoursFeature.cpp:56
std::shared_ptr< RoutableObjectsMessage > RoutableObjectsMessageRef
Definition: DataAgent.h:68
RoutingProfileRef MakeInstance(TypeConfigRef typeConfig) const
Definition: QmlRoutingProfile.cpp:293
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: OperatorFeature.cpp:29
@ attrSymbol
Definition: Styles.h:1225
bool CanRoute() const
Definition: AccessFeature.h:67
static const Color TEAL
Definition: Color.h:57
double bDistanceSquare
distance^2 between "b path" point and intersection
Definition: Geometry.h:1246
std::string GetLabel(const Locale &locale, size_t labelIndex) const override
Definition: EleFeature.cpp:49
bool Open(const DatabaseRef &database)
Definition: RoutingDB.cpp:38
bool IsSet(Id id) const
Definition: NumberSet.cpp:51
LocationCrossingDescription(const GeoCoord &crossing, const std::list< Place > &ways)
Definition: LocationDescriptionService.cpp:82
virtual ~PlaneMapRenderer()
Definition: PlaneMapRenderer.cpp:77
bool GetFeature(const std::string &name, size_t &index) const
Return the feature with the given name.
Definition: TypeConfig.cpp:234
void clearQueue() override
clear the playlist
Definition: VoicePlayer.cpp:33
Definition: BasemapDatabase.h:63
void DrawArea(const Projection &projection, const MapParameter ¶meter, const AreaData &area) override
Draw the given area using the given FillStyle for the area outline.
Definition: MapPainterAgg.cpp:648
QThread * makeThread(QString name)
Create new background thread with given name.
Definition: OSMScoutQt.cpp:375
bool operator<=(const Magnification &other) const
Definition: Magnification.h:217
void databaseListChanged(QList< QDir > databaseDirectories)
static Distance Of(double value)
Definition: Distance.h:178
void DrawLabels(const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterNoOp.cpp:76
bool operator!=(const DBFileOffset &other) const
Definition: DBFileOffset.h:117
Definition: LabelProvider.h:38
std::shared_ptr< LocationIndex > LocationIndexRef
Definition: LocationIndex.h:273
bool IsVisible() const
Definition: Styles.h:315
uint8_t GetMaxSpeed() const
Definition: RouteDescription.h:511
@ AltLangName
Definition: LocationInfoModel.h:82
bool VisitPOIs(const AdminRegion ®ion, POIVisitor &visitor, bool recursive=true) const
Visit all POIs within the given admin region.
Definition: LocationIndex.cpp:661
void CONSTANT(StyleConstantRef &constant)
Definition: map/src/osmscoutmap/oss/Parser.cpp:2404
void WriteCoord(const GeoCoord &coord)
Writes GeoCoord instance.
Definition: FileWriter.cpp:756
unsigned int GetWidth() const
Definition: Styles.h:964
static size_t GetHexValue(char digit)
Definition: Color.cpp:68
NodeDataFile(size_t cacheSize)
Definition: NodeDataFile.cpp:27
Definition: CmdLineParsing.h:165
Definition: MapParameter.h:41
std::string GetLabel(const Locale &, size_t) const override
Definition: WebsiteFeature.h:54
std::string GetDirectory(const std::string &file)
Definition: File.cpp:71
bool CanBeRelation() const
Definition: TypeConfig.h:402
Definition: RouteDescription.h:589
void reload()
Definition: AvailableVoicesModel.cpp:67
AdminLevelFeatureValue(uint8_t adminLevel, const std::string &isIn)
Definition: AdminLevelFeature.h:39
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: SearchLocationModel.cpp:371
void unlock()
Definition: ReadWriteLock.h:224
TypeInfoRef typeInfoOSMTileBorder
Internal type for OSM tile borders.
Definition: TypeConfig.h:1121
void SetOptimizeErrorToleranceMm(double errorToleranceMm)
Definition: MapParameter.cpp:110
bool CanRoute() const
Definition: TypeConfig.h:449
const RouteDescription::Node & GetCurrentNode() const
Definition: Navigation.h:174
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: AccessFeature.cpp:29
Distance GetSphericalDistance(const GeoCoord &a, const GeoCoord &b)
Calculating basic cost for the A* algorithm based on the spherical distance of two points on earth.
Definition: Geometry.cpp:107
Definition: RouteNode.h:42
Definition: PhoneFeature.h:30
const character charmap_e1_83[]
Definition: utf8helper_charmap.cpp:1650
const GeoCoord target
Definition: RouteStateAgent.h:50
const std::vector< double > & GetDash() const
Definition: Styles.h:203
size_t GetStart() const
Return the inex of the first to be drawn point.
Definition: Transformation.h:98
@ attrLabel
Definition: Styles.h:819
Definition: RouteDescription.h:54
GeoCoord GetMinCoord() const
Return the coordinate with the minimum value for the lat/lon values of the area.
Definition: GeoBox.h:190
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: AccessRestrictedFeature.cpp:24
const std::list< StyleError > & GetWarnings() const
Definition: StyleConfig.cpp:1725
DestinationFeature()
Definition: DestinationFeature.cpp:56
size_t operator()(const osmscout::DBId &id) const
Definition: DBFileOffset.h:141
void Invalidate()
Definition: ObjectRef.h:92
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: MaxStayFeature.cpp:71
#define INVALID_COORD
Definition: SearchLocationModel.cpp:33
virtual void SetFill(const FillStyleRef &fillStyle)=0
static double FromMeter(double m)
Definition: Distance.h:321
TypeInfo & SetRouteId(TypeId id)
Set the id of this type.
Definition: TypeConfig.cpp:104
bool IsValid() const override
Definition: TileProjection.h:79
@ VersionRole
Definition: InstalledMapsModel.h:58
ScreenMask labelCanvas
Definition: LabelLayouter.h:291
Id GetFrontId() const
Definition: Way.h:133
Definition: StyleDescription.h:436
std::map< FileOffset, WayRef > ways
Definition: DataAgent.h:33
virtual size_t GetValueAlignment() const
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: TypeFeature.h:135
FileOffset GetFileOffset() const
Definition: Node.h:50
Human representation of route step commands.
Definition: RouteStep.h:42
FromToFeatureValue(const std::string_view &from, const std::string_view &to)
Definition: FromToFeature.h:40
void VisitRings(const RingVisitor &visitor) const
Visit rings in breadth-first manner.
Definition: Area.cpp:568
int kind
Definition: map/include/osmscoutmap/oss/Scanner.h:48
QList< Voice > getInstalledVoices() const
Definition: VoiceManager.h:105
std::string GetDestinationForward() const
Definition: LanesFeature.h:92
std::string GetDescription(const std::string &languageCode) const
Returns the description for the given language code.
Definition: TypeFeature.cpp:107
void SetScannerBehindT()
Definition: src/osmscout/ost/Scanner.cpp:488
Timestamp lastUpdate
Definition: PositionAgent.h:43
Definition: StyleConfig.h:321
Definition: RouteDescription.h:185
Definition: SymbolRendererQt.h:36
Definition: SimpleRoutingService.h:63
virtual void SetAction(const std::string &action)
Definition: Progress.cpp:48
void Add(const TypeInfoSet &types)
Definition: TypeInfoSet.cpp:79
void GetBoundingBox(const InputIt first, const InputIt last, GeoBox &boundingBox)
Definition: Geometry.h:103
Definition: ReadWriteLock.h:180
TypeInfoRef type
Definition: AreaIndex.h:45
bool GetCenter(GeoCoord ¢er) const
Definition: Way.cpp:31
TileIdBox(const Magnification &magnification, const GeoBox &boundingBox)
Definition: TileId.h:250
virtual void SetDoubleValue(int attribute, double value)
Definition: StyleDescription.cpp:50
VoiceManagerRef GetVoiceManager()
Definition: OSMScoutQt.cpp:366
void SetRouteLabelSeparator(const std::string &separator)
Definition: MapParameter.cpp:194
bool DescribeLocationByAddress(const GeoCoord &location, LocationDescription &description, const Distance &lookupDistance=Distance::Of< Meter >(100), double sizeFilter=1.0)
Definition: LocationDescriptionService.cpp:967
void SetRouteDataCacheSize(unsigned long size)
Definition: Database.cpp:53
FileOffset GetCellOffset(size_t x, size_t y) const
Definition: AreaIndex.cpp:37
Definition: RouteDescription.h:136
void SetAreaDataCacheSize(unsigned long size)
Definition: Database.cpp:48
size_t GetExitCount() const
Definition: RouteDescription.h:370
bool operator!=(const Color &other) const
Definition: Color.h:180
uint64_t getBytesDownloaded() const
Definition: FileDownloader.cpp:201
TileId operator->() const
Definition: TileId.h:228
Data structure for holding temporary data route labels.
Definition: MapPainter.h:193
Duration timestampDelta
Estimate time from previous route step.
Definition: RouteStep.h:89
bool pivotBy(double angleChange) override
Definition: InputHandler.cpp:472
virtual ~SRTM()
Definition: SRTM.cpp:52
bool GetCenter(GeoCoord ¢er) const
Definition: Area.cpp:56
virtual bool IsBackwardPath(const ObjectFileRef &object, size_t fromNodeIndex, size_t toNodeIndex) const =0
const character charmap_d1[]
Definition: utf8helper_charmap.cpp:1169
SweepContext(const std::vector< Point * > &polyline)
Constructor.
void update(std::list< RouteStep > instructions)
bool CanRoute(Vehicle vehicle) const
Definition: AccessFeature.h:72
Vehicle getVehicle() const
Definition: QmlRoutingProfile.cpp:60
void SetPatternMode(const PatternMode &mode)
Definition: MapParameter.cpp:179
static const std::string LABEL_KEY_WAY_BRIDGE
Definition: DescriptionService.h:228
WayRegionSearchResult LoadWaysInRadius(const GeoCoord &location, const TypeInfoSet &types, Distance maxDistance=Distance::Of< Meter >(100)) const
Load ways of given types with maximum distance to the given coordinate.
Definition: Database.cpp:1021
std::vector< Path > paths
List of paths that can in principle be used from this node.
Definition: RouteNode.h:139
Definition: Location.h:203
bool operator==(const FeatureValue &other) const override
Definition: IsInFeature.cpp:45
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: FeeFeature.cpp:83
ObjectFileRef GetPathObject() const
Definition: RouteData.h:77
@ attrOffsetRel
Definition: Styles.h:97
std::vector< Segment > segments
Definition: Route.h:68
Point GetPoint() const
Definition: RouteNode.h:157
@ Outdated
Definition: PositionAgent.h:39
std::wstring LocaleStringToWString(const std::string &text)
Definition: String.cpp:539
Q_INVOKABLE int count() const
Definition: OnlineTileProviderModel.cpp:58
constexpr const char * Base64Chars
Definition: Base64.h:18
virtual void Warning(const std::string &text)
Definition: Progress.cpp:91
Logger::Line Warn()
Definition: Logger.cpp:127
bool IsIdentical(const Point &other) const
Compare this and the other point for identity.
Definition: Point.h:117
bool Load(const std::string &path)
Definition: TextSearchIndex.cpp:26
SRTMRef GetSRTMIndex() const
Definition: Database.cpp:616
void Set(const OSMId &id, const OSMRefType &type)
Definition: ObjectRef.h:85
const FeatureValueBuffer & GetFeatureValueBuffer() const
Definition: Area.h:142
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: RoundaboutFeature.cpp:36
void SetDrawWaysWithFixedWidth(bool drawWaysWithFixedWidth)
Definition: MapParameter.cpp:120
static char GetHexChar(size_t value)
Definition: Color.cpp:59
Definition: Distance.h:265
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: LocationFeature.cpp:54
QList< AdminRegionInfoRef > adminRegionList
Definition: LookupModule.h:84
QMutex lock
Definition: OverlayObject.h:64
void start()
Definition: VoiceManager.cpp:50
const character charmap_e1_bf[]
Definition: utf8helper_charmap.cpp:2186
Point()
Default constructor does nothing (for performance).
Definition: shapes.h:50
uint16_t TagId
Definition: Tag.h:39
Orientation
Definition: utils.h:44
FeatureValueBuffer & operator=(const FeatureValueBuffer &other)
Definition: TypeConfig.cpp:378
Definition: RoutePostprocessor.h:159
const LabelProviderRef & GetLabel() const
Definition: Styles.h:771
Latch()
Definition: ReadWriteLock.cpp:44
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: MapObjectInfoModel.cpp:135
Log & Debug(bool state)
Definition: Logger.h:373
std::future< bool > getFuture()
Definition: SearchModule.cpp:47
@ attrGapColor
Definition: Styles.h:86
void WriteBodyEnd()
Definition: HTMLWriter.cpp:348
FileOffset GetPos()
Returns the current position of the writing cursor in relation to the begining of the file.
Definition: FileWriter.cpp:110
OSMTileIdBoxConstIterator & operator++()
Definition: Tiling.h:136
DescriptionEntry(const std::string §ionKey, const std::string &labelKey, const std::string &value)
Definition: DescriptionService.cpp:77
bool deleteVoice()
Definition: Voice.cpp:49
ShieldStyle()
Definition: Styles.cpp:1041
FeatureValueReader< DestinationFeature, DestinationFeatureValue > DestinationFeatureValueReader
Definition: DestinationFeature.h:101
bool ReverseLookupObject(const ObjectFileRef &object, std::list< ReverseLookupResult > &result) const
Lookup one object.
Definition: LocationDescriptionService.cpp:816
void onTimeout()
Definition: FileDownloader.cpp:290
RoundaboutLeaveDescription(size_t exitCount, bool clockwise)
Definition: RouteDescription.cpp:328
const std::vector< ObjectFileRef > & GetObjects() const
Definition: Intersection.h:55
double value
Definition: advancing_front.h:49
void Include(const GeoBox &other)
Resize the bounding box to include the original bounding box and the given bounding box.
Definition: GeoBox.cpp:55
Definition: NameAltFeature.h:67
void onJobFailed(QString errorMessage)
Definition: MapDownloader.cpp:157
Definition: SpeedAgent.h:29
void onArrivalEstimate(QDateTime arrivalEstimate, osmscout::Distance remainingDistance)
Definition: NavigationModel.cpp:196
void SetColorValue(int attribute, const Color &value) override
Definition: StyleConfig.h:393
TileId GetId() const
Definition: TileId.h:144
void SetRenderHillShading(bool render)
Definition: MapParameter.cpp:235
static const std::string LABEL_KEY_CHARGINGSTATION_SOCKET_OUTPUT
Definition: DescriptionService.h:341
std::vector< Variant > variants
Definition: PublicTransport.h:199
Utility class for downloading voice described by AvailableVoice over http.
Definition: VoiceManager.h:38
void RegisterContourLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const PathLabelData &label, const LabelPath &labelPath) override
Register contour label.
Definition: MapPainterCairo.cpp:1095
CmdLineFlagArgParser(SetterFunction &&setter)
Definition: CmdLineParsing.cpp:127
void onlineTileProviderSignal(OnlineTileProvider provider)
const double & GetWidth() const
Definition: Styles.h:1071
Definition: OpeningHoursModel.h:39
OffsetRel GetOffsetRel() const
Definition: Styles.h:1311
std::shared_ptr< CoverageIndex > CoverageIndexRef
Definition: CoverageIndex.h:75
QString getFetchError()
Definition: AvailableVoicesModel.h:109
@ sharpRight
Definition: RouteDescription.h:279
ingroup Description
Definition: DescriptionService.h:332
bool IsRelevant() const
Definition: Point.h:78
QString units
metrics or imperial
Definition: QmlSettings.h:63
bool operator!=(const StyleCriteria &other) const
Definition: StyleConfig.cpp:256
void Set(double x, double y)
Definition: Pixel.h:223
bool CanRouteBackward() const
Definition: AccessFeature.h:127
osmscout::Magnification GetMagnification() const
Definition: MapPainterOpenGL.cpp:1089
const character charmap_e1_bc[]
Definition: utf8helper_charmap.cpp:1985
@ vehicleCar
Definition: OSMScoutTypes.h:58
bool restartDownload()
Restart download if download retries are not used up.
Definition: FileDownloader.cpp:250
This agent prepares voice messages for concatenation voice synthesis.
Definition: VoiceInstructionAgent.h:117
bool IsLoaded() const
Definition: BoundingBoxDataFile.h:52
void Set(double x, double y, double z)
Definition: Pixel.h:231
std::shared_ptr< NavigationAgent > NavigationAgentRef
Definition: Engine.h:86
std::vector< Element > elements
Definition: LabelLayouter.h:162
int limit
Definition: SearchModule.h:53
void AddRoutePathTextStyle(const StyleFilter &filter, PathTextPartialStyle &style)
Definition: StyleConfig.cpp:1059
std::string vehicleStr(osmscout::Vehicle vehicle)
Definition: Router.cpp:147
std::string GetDestinationBackward() const
Definition: LanesFeature.h:97
OverlayWay * getRouteWay()
Definition: RoutingModel.h:179
void DrawGround(const Projection &projection, const MapParameter ¶meter, const FillStyle &style) override
(Optionally) fills the area with the given default color for ground.
Definition: MapPainterCairo.cpp:1280
@ LatRole
Definition: SearchLocationModel.h:179
Definition: ArrivalEstimateAgent.h:39
Definition: InputHandler.h:349
void IMPORTS()
Definition: src/osmscout/ost/Parser.cpp:164
TileId GetCenter() const
Definition: TileId.h:270
Definition: BearingAgent.h:30
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: AccessFeature.cpp:100
SearchLocationsRunnable(SearchModule *searchModule, DBInstanceRef &db, const QString &searchPattern, int limit, osmscout::BreakerRef &breaker, AdminRegionInfoRef &defaultRegion)
Definition: SearchModule.cpp:52
void SetDefaultAdminRegion(const AdminRegionRef &adminRegion)
Definition: LocationService.cpp:308
OpeningHours(std::vector< Rule > rules)
Definition: OpeningHours.cpp:28
Distance horizontalAccuracy
Definition: PositionAgent.h:45
static int _u_size(codepoint u)
Definition: utf8helper.cpp:114
double iconWidth
Definition: LabelLayouter.h:77
bool IsActive() const
Returns if the cache is active (maxSize > 0)
Definition: Cache.h:150
void clear()
Definition: RoutingModel.cpp:147
PathShieldStyle & SetShieldSpace(double shieldSpace)
Definition: Styles.cpp:1246
QHash< int, QByteArray > roleNames() const override
Definition: StyleFlagsModel.cpp:87
std::string GetDebugString() const override
Definition: RouteDescription.cpp:476
bool HasDescription(const char *name) const
Definition: RouteDescription.cpp:537
ObjectFileRef object
Reference to the object.
Definition: RouteNode.h:77
QJSValue getEquals() const
Definition: SearchLocationModel.h:205
double GetMinLat() const
Return the minimum latitude of the GeBox.
Definition: GeoBox.h:208
uint8_t BytesNeededToAddressFileData(const std::string &filename)
Definition: File.cpp:90
Roles
Definition: SearchLocationModel.h:175
PositionState state
Definition: PositionAgent.h:66
bool GetRenderUnknowns() const
Definition: MapParameter.h:369
void SetResultLimit(int limit)
Definition: SearchLocationModel.h:253
BinaryOperator
Enumeration of possible binary operators as used by the various parsers.
Definition: Parsing.h:32
virtual ~LabelPath()
Definition: LabelPath.cpp:33
char * coco_string_create(const char *value)
Definition: src/osmscout/ost/Scanner.cpp:52
std::string UTF8StringToLower(const std::string &text)
Convert the given std::string containing a UTF8 character sequence to lower case using the translatio...
Definition: String.cpp:622
bool MoveDown(double pixel)
Definition: MercatorProjection.h:151
Q_INVOKABLE void select(const QModelIndex &index)
Definition: InstalledVoicesModel.cpp:116
static constexpr int MinLatitude
Definition: GeoCoord.h:80
@ NameRole
Definition: InstalledVoicesModel.h:65
double GetB() const
Definition: Color.h:120
virtual size_t GetValueSize() const
A feature, if set for an object, can hold a value.
Definition: TypeFeature.h:144
Q_INVOKABLE QString getName(int row) const
Definition: OnlineTileProviderModel.cpp:68
Definition: TypeInfoSet.h:32
QString getSizeHuman() const
Definition: AvailableMapsModel.cpp:49
static const char *const FILE_AREASOPT_DAT
Definition: OptimizeAreasLowZoom.h:46
double penaltySameType
Definition: QmlRoutingProfile.h:50
@ operatorNotEqual
Definition: Parsing.h:38
bool Visit(const AdminRegion &adminRegion, const PostalArea &postalArea, const Location &location, const Address &address) override
Definition: Location.cpp:56
void Close()
Definition: HTMLWriter.cpp:67
NavigationEngine(std::initializer_list< NavigationAgentRef > agents)
Definition: Engine.cpp:39
FillStyle()
Definition: Styles.cpp:445
@ laneBackwardThroughLeft
static const Color BLUE
Definition: Color.h:46
@ attrPriority
Definition: Styles.h:824
virtual void onDatabaseLoaded(osmscout::GeoBox boundingBox)
Definition: PlaneMapRenderer.cpp:88
std::shared_ptr< MotorwayEnterDescription > MotorwayEnterDescriptionRef
Definition: RouteDescription.h:403
Line & operator<<(const std::string_view &value)
Definition: Logger.h:128
double GetCosts(const RouteNode ¤tNode, const std::vector< ObjectVariantData > &objectVariantData, size_t inPathIndex, size_t outPathIndex) const override
Estimated cost for outgoing path (outPathIndex) from currentNode when currentNode is entered from inP...
Definition: RoutingProfile.h:444
static const std::string LABEL_KEY_WAY_LANES_DESTINATIONBACKWARD
Definition: DescriptionService.h:243
~ElevationModule() override
Definition: ElevationModule.cpp:33
AdvancingFront(Node &head, Node &tail)
void SetUIntValue(int attribute, size_t value) override
Definition: Styles.cpp:875
size_t position
Relative position of the label.
Definition: LabelLayouter.h:68
Signal and Slot is tool for connecting source of events and its consumers.
Definition: Signal.h:46
Duration GetDurationFromStart() const
Definition: Navigation.h:154
WidthFeatureValue & operator=(const FeatureValue &other) override
Definition: WidthFeature.cpp:36
ElevationModule(QThread *thread, DBThreadRef dbThread)
Definition: ElevationModule.cpp:27
ingroup Description
Definition: DescriptionService.h:274
std::string GetDisplayText() const
Return a string representation of the coordinate value in a human readable format.
Definition: GeoCoord.cpp:51
bool try_lock_shared()
Definition: ReadWriteLock.cpp:293
Representation of a color with red, green and blue value (RGB) and a alpha channel.
Definition: Color.h:38
bool VisitAdminRegionPOIs(const AdminRegion ®ion, POIVisitor &visitor) const
Visit the POIs at the given region and all its sub regions.
Definition: LocationService.cpp:611
std::chrono::steady_clock clock
Definition: TileCache.h:74
uint32_t GetUInt(const std::string &key, uint32_t defaultValue=0) override
Definition: QtSettingsStorage.cpp:70
QString altLangName
Definition: LookupModule.h:78
void SetData(const TypeInfoSet &types, const std::vector< O > &data)
Assign data to the tile and mark the tile as completed.
Definition: DataTileCache.h:158
Model for searching objects in osmscout databases by pattern written by human.
Definition: SearchLocationModel.h:45
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: NameAltFeature.cpp:87
Definition: NetworkFeature.h:67
TypeConfigRef GetTypeConfig() const
Definition: DebugDatabase.cpp:68
Definition: AreaWayIndex.h:47
Color color
Line color.
Definition: MapPainter.h:117
void targetReached(const osmscout::Bearing targetBearing, const osmscout::Distance targetDistance)
bool GetOptimizeLowZoom() const
Definition: TypeConfig.h:559
bool isReplaceExisting() const
Definition: FileDownloader.h:207
Mercator projection that tries to render the resulting map in the same physical size on all devices.
Definition: MercatorProjection.h:39
Vehicle GetVehicle() const override
Definition: RoutingProfile.h:245
OSMScoutQtBuilder & AddOnlineTileProviders(const QString &onlineTileProviders)
Definition: OSMScoutQt.h:95
std::string GetName() const
Definition: BrandFeature.h:50
std::shared_ptr< Description > GetRouteDescription(const char *name) const
Definition: PositionAgent.h:91
RouteDescriptionResult()
Definition: AbstractRoutingService.cpp:59
double trHeight
height after rotation
Definition: LabelLayouter.h:111
Definition: map/include/osmscoutmap/oss/Parser.h:54
void SetValue(const std::string_view &value)
Definition: OpeningHoursFeature.h:50
void STYLEFILTER_FEATURE_ENTRY(StyleFilter &filter, TypeInfoSet &types)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1196
~MapPainterOpenGL()
Definition: MapPainterOpenGL.cpp:126
Distance GetDistance() const
Return the distance to the location.
Definition: LocationDescriptionService.h:248
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: OperatorFeature.cpp:61
void Warning(std::format_string< Args... > format, Args &&...args)
Definition: Progress.h:88
@ Error
Definition: StyleError.h:36
std::shared_ptr< PostalArea > PostalAreaRef
Definition: Location.h:50
Definition: AccessRestrictedFeature.h:30
void STYLEDEF(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1025
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: MaxSpeedFeature.cpp:26
ingroup Description
Definition: DescriptionService.h:353
TypeInfoSetConstIterator(const std::vector< value_type >::const_iterator &iterCurrent, const std::vector< value_type >::const_iterator &iterEnd)
Definition: TypeInfoSet.h:46
Definition: Progress.h:107
static const std::string LABEL_KEY_LOCATION_ADMINLEVEL_ISIN
Definition: DescriptionService.h:206
std::string GetName() const
Definition: ObjectRef.cpp:47
bool IsCircular() const
Definition: Way.h:117
FeatureReader< ClockwiseDirectionFeature > ClockwiseDirectionFeatureReader
Definition: ClockwiseDirectionFeature.h:52
QHash< int, QByteArray > roleNames() const override
Definition: MapObjectInfoModel.cpp:84
TypeData()
Definition: AreaIndex.cpp:42
@ straightOn
Definition: RouteDescription.h:276
ingroup Description
Definition: DescriptionService.h:103
OpenGLMapData & operator=(const OpenGLMapData &)=delete
void SetPatternId(size_t id) const
Definition: Styles.cpp:460
CmdLineStringListArgParser(AppendFunction &&appender)
Definition: CmdLineParsing.cpp:245
Definition: CancelableFuture.h:69
Pixel(uint32_t x, uint32_t y)
Definition: Pixel.h:56
const character charmap_cc[]
Definition: utf8helper_charmap.cpp:834
constexpr int IsControl
Definition: utf8helper_charmap.h:31
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: NameFeature.h:77
TypeInfo & SetRoute()
An object is handled as route.
Definition: TypeConfig.h:598
const agg::glyph_cache * aggGlyph
Definition: MapPainterAgg.h:52
bool HasWayPathShieldStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1343
friend PTRoute
Definition: PublicTransport.h:90
LocationInfoModel()
Definition: LocationInfoModel.cpp:34
const std::string & GetText() const
Definition: StyleError.h:83
bool AreaIsValid(std::vector< N > &outerPoints, std::vector< std::vector< N > > &innerPoints)
Definition: Geometry.h:859
std::vector< SegmentGeoBox > segments
Precomputed (cache) segment bounding boxes for optimisation.
Definition: Area.h:107
static const char *const NODES_DAT
Definition: NodeDataFile.h:37
std::string GetRouteLabelSeparator() const
Definition: MapParameter.h:339
static const ScreenBox EMPTY
Definition: ScreenBox.h:44
int get(const char *key, int defaultVal)
Definition: map/include/osmscoutmap/oss/Scanner.h:140
virtual void InvalidateVisualCache()=0
Class to allows transformation of geometric primitives form geo coordinate to display coordinates usi...
Definition: Transformation.h:180
double GetY() const
Definition: Pixel.h:132
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: LaneAgent.cpp:60
FileScanner scanner
Scanner instance for reading this file.
Definition: AreaIndex.h:70
void Clear()
Clears all references to all other triangles and points.
bool operator==(const MapView &a, const MapView &b)
Definition: InputHandler.h:239
OverlayWay * getRouteWayPassed() const
Definition: NavigationModel.cpp:105
bool IsOpen() const
Definition: Database.cpp:222
void styleFlagsChanged(QMap< QString, bool >)
StyleUIntAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:421
MapTileCache(size_t cacheSize)
Create a new tile cache with the given cache size.
Definition: MapTileCache.h:96
Vertex2D * buffer
Definition: Transformation.h:343
QString getDescription() const
Definition: Voice.h:161
QString openingHours
Definition: OpeningHoursModel.h:42
double AsMeter() const
Definition: Distance.h:70
virtual void OnMotorwayLeave(const RouteDescription::MotorwayLeaveDescriptionRef &motorwayLeaveDescription, const RouteDescription::MotorwayJunctionDescriptionRef &motorwayJunctionDescription, const RouteDescription::DirectionDescriptionRef &directionDescription, const RouteDescription::NameDescriptionRef &nameDescription, const RouteDescription::DestinationDescriptionRef &destinationDescription)
Called if we are on a motorway an leave it to a non-motorway way.
Definition: RouteDescriptionPostprocessor.cpp:83
bool Open(const std::string &path, bool memoryMappedData)
Definition: WaterIndex.cpp:38
double iconHeight
Definition: LabelLayouter.h:78
static const char *const NAME
Name of this feature.
Definition: EmbankmentFeature.h:37
double GetA() const
Definition: Color.h:125
PathTextStyle & SetSize(double size)
Definition: Styles.cpp:1371
@ distanceToRole
Definition: RouteStep.h:74
void onFinished()
Definition: FileDownloader.cpp:140
QString getStyle() const
Definition: MapStyleModel.cpp:63
std::string GetTokensFromStart(const std::list< std::string > &tokens, size_t count)
Definition: String.cpp:433
static uint32_t CalculateCellLevel(const osmscout::GeoBox &boundingBox)
Definition: DescriptionService.cpp:58
double AngleAtLengthDeg(double offset) const
Definition: LabelPath.cpp:98
POIRef poi
Definition: LocationService.h:245
int GetStartWidth(int index)
Returns the sum width of a texture at given index in pixel.
Definition: TextLoader.cpp:166
const character charmap_c6[]
Definition: utf8helper_charmap.cpp:432
std::unique_ptr< FileScanner, std::function< void(FileScanner *)> > Ptr
Definition: ObjectPool.h:50
ValueType
Definition: map/include/osmscoutmap/oss/Parser.h:127
OSMRefType type
Definition: ObjectRef.h:50
FeatureValue * AllocateValue(void *buffer) override
Definition: ColorFeature.cpp:84
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: FromToFeature.cpp:76
@ LocationObjectRole
Definition: SearchLocationModel.h:183
bool CanRouteFootBackward() const
Definition: AccessFeature.h:158
Definition: NameFeature.h:67
std::string UTF8StringToUpper(const std::string &text)
Convert the given std::string containing a UTF8 character sequence to upper case using translation ta...
Definition: String.cpp:617
void DrawSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &style, const Vertex2D &screenPos, double scaleFactor) override
Draw the Symbol as defined by the SymbolStyle at the given pixel coordinate (symbol center).
Definition: MapPainterSVG.cpp:790
std::array< double, 5 > speed
speed for each grade, indexed by grade-1.
Definition: RoutingProfile.h:73
std::list< TextStyleSelector > TextStyleSelectorList
Definition: StyleConfig.h:508
@ ObjectRole
Definition: MapObjectInfoModel.h:55
double DistanceTo(const Vertex2D &other) const
Definition: Pixel.h:148
const double & GetRadius() const
Definition: Styles.h:1107
FeatureValue * GetFeatureValue(const FeatureValueBuffer &buffer, const std::string &featureName) const
Definition: DescriptionService.cpp:128
virtual void OnPathNameChange(const RouteDescription::NameChangedDescriptionRef &nameChangedDescription)
Called anytime the way we are on changes its name.
Definition: RouteDescriptionPostprocessor.cpp:92
virtual ~FutureBreaker()=default
OSMId GetTo() const
Definition: TurnRestriction.h:84
static const char *const NAME
Name of this feature.
Definition: AccessRestrictedFeature.h:139
void BORDERSTYLEATTR(BorderPartialStyle &style)
Definition: map/src/osmscoutmap/oss/Parser.cpp:543
FillStyleRef GetSeaFillStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1478
FeeFeatureValue & operator=(const FeatureValue &other) override
Definition: FeeFeature.cpp:38
static const std::string SECTION_NAME_PRESENCE
Definition: DescriptionService.h:356
@ attrPriority
Definition: Styles.h:716
void DumpStatistics(const char *cacheName, const ValueSizer &sizer)
Dump some cache statistics to std::cout.
Definition: Cache.h:302
void SetIsIn(const std::string_view &isIn)
Definition: AdminLevelFeature.h:52
@ FootVehicle
Definition: QmlRoutingProfile.h:60
void rerouteRequest(const osmscout::GeoCoord from, const std::optional< osmscout::Bearing > initialBearing, const osmscout::GeoCoord to)
bool IsMultipolygon() const
Definition: TypeConfig.h:605
const std::unordered_map< std::string, std::string > & GetDescriptions() const
Definition: TypeConfig.h:715
double maxSpeed
Definition: QmlRoutingProfile.h:45
bool GetAreasByOffset(const OffsetsCol &offsets, DataCol &areas) const
Definition: Database.h:430
Definition: RouteDescription.h:213
std::shared_ptr< StartDescription > StartDescriptionRef
Definition: RouteDescription.h:130
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: PostalCodeFeature.cpp:74
bool operator==(const FeatureValue &other) const override
Definition: RefFeature.cpp:45
PostalAreaRef postalArea
The postal area.
Definition: Location.h:224
Definition: Location.h:63
~InstalledVoicesModel() override
Definition: InstalledVoicesModel.cpp:44
@ osmRefWay
Definition: ObjectRef.h:38
bool Intersects(const ScreenPixelRectangle &other) const
Returns true , if the area of the rectangles intersect.
Definition: LabelLayouterHelper.h:62
std::optional< std::pair< std::string, std::string > > SplitStringToPair(const std::string &str, const std::string &separator)
Split string by separator to two parts.
Definition: String.cpp:351
void AddTileDataToMapData(std::list< TileRef > &route, MapData &data) const
Convert the data hold by the given tiles to the given MapData class instance.
Definition: MapService.cpp:1178
void iconFound(QPoint lookupCoord, MapIcon icon)
GeoBox GetBoundingBox() const
Definition: Route.h:118
std::shared_ptr< TypeConfig > TypeConfigRef
Definition: TypeConfig.h:1399
OSMTileId operator->() const
Definition: Tiling.h:172
Definition: StyleConfig.h:194
PlaybackState playbackState() const
returns the current state of playback
Definition: VoicePlayer.cpp:61
void cancelDownload(const AvailableVoice &item)
Definition: VoiceManager.cpp:240
@ AddressNumberRole
Definition: LocationInfoModel.h:80
Definition: DataFile.h:45
virtual void InvalidateVisualCache()
Definition: PlaneMapRenderer.cpp:93
std::string GetLabel(const Locale &, size_t) const override
Definition: AddressFeature.h:61
void Write(const TypeConfig &typeConfig, FileWriter &writer) const
Write the node data to the given FileWriter.
Definition: Node.cpp:64
virtual void paint(QPainter *painter)
Definition: TiledMapOverlay.cpp:166
~MapPainterCairo() override
Definition: MapPainterCairo.cpp:268
virtual void OnPOIAtRoute(const RouteDescription::POIAtRouteDescriptionRef &poiAtRouteDescription)
Called everytime we have a POI at the route.
Definition: RouteDescriptionPostprocessor.cpp:102
Color ReadColor()
Definition: FileScanner.cpp:1461
bool isDirectory() const override
Definition: AvailableMapsModel.h:112
Slot(const std::function< void(const Args &...)> &callback)
Construct slot with callback function.
Definition: Signal.h:134
StyleConfigRef styleConfig
Reference to the style configuration to be used.
Definition: MapPainter.h:250
double GetX() const
Definition: Pixel.h:127
Definition: RouteDescription.h:103
bool VisitAdminRegions(AdminRegionVisitor &visitor) const
Visit all admin regions.
Definition: LocationIndex.cpp:576
TileIdBoxConstIterator begin() const
Definition: TileId.h:311
bool CanRouteBicycle() const
Definition: TypeConfig.h:477
Definition: RoutePostprocessor.h:204
double GetOffset() const
Definition: Styles.h:183
std::byte ReadByte()
Definition: FileScanner.cpp:570
bool IsLaneOffset(OffsetRel rel)
Definition: Styles.cpp:27
void UINT8(uint8_t &value)
Definition: src/osmscout/ost/Parser.cpp:858
bool GetIgnore() const
Definition: TypeConfig.h:673
VoiceInstructionMessage(const Timestamp ×tamp, std::vector< VoiceSample > &&message)
Definition: VoiceInstructionAgent.h:101
std::shared_ptr< MapDownloader > MapDownloaderRef
Definition: MapDownloader.h:128
Distance GetDistance() const
Definition: Database.h:167
void maxAllowedSpeedUpdate(double maxAllowedSpeed)
void SetTo(const std::string_view &to)
Definition: FromToFeature.h:63
bool HasJunctionPenalty() const
Definition: RoutingProfile.h:404
double GetHeight() const
Returns the height of the bounding box (maxLat-minLat).
Definition: GeoBox.h:248
size_t GetMaxSize() const
Returns the maximum size of the cache.
Definition: Cache.h:256
std::vector< int32_t > heights
Definition: SRTM.h:50
virtual void OnStart(const RouteDescription::StartDescriptionRef &startDescription, const RouteDescription::TypeNameDescriptionRef &typeNameDescription, const RouteDescription::NameDescriptionRef &nameDescription)
Called one for the start node.
Definition: RouteDescriptionPostprocessor.cpp:36
std::shared_ptr< OptimizeWaysLowZoom > OptimizeWaysLowZoomRef
Definition: OptimizeWaysLowZoom.h:112
TypeInfoRef typeInfoTileUnknown
Internal type for ground tiles of type "unknown".
Definition: TypeConfig.h:1119
MagnificationLevel & operator++()
Definition: Magnification.h:57
virtual void SetIntValue(int attribute, int value)
Definition: StyleDescription.cpp:68
@ footBackward
Definition: AccessFeature.h:35
void onlineTileRequest(uint32_t zoomLevel, uint32_t xtile, uint32_t ytile)
Definition: TiledMapRenderer.cpp:239
void ResetPeek()
Definition: src/osmscout/ost/Scanner.cpp:510
void Info(const std::string &text) override
Definition: Progress.cpp:167
Message with estimated position.
Definition: PositionAgent.h:82
std::shared_ptr< Area > AreaRef
Definition: Area.h:359
uint32_t GetWidth() const
Definition: TileId.h:296
std::string GetDisplayText() const
Return a short human readable description of the tile id.
Definition: TileId.cpp:41
uint64_t downloadedBytes
Definition: FileDownloader.h:147
Reference to an libosmscout internal object by its type (area, way, node) and by its file offset with...
Definition: ObjectRef.h:150
void SetStep(const std::string &step) override
Definition: Progress.cpp:101
const character charmap_ce[]
Definition: utf8helper_charmap.cpp:968
double GetMaxX() const
Definition: ScreenBox.h:92
std::shared_ptr< AreaWayIndex > AreaWayIndexRef
Definition: AreaWayIndex.h:68
double GetDistanceInLonDegrees(const Distance &d, double latitude=0)
Definition: Geometry.cpp:374
Access
Definition: AccessRestrictedFeature.h:33
std::string GetName() const override
Returns the name of the feature.
Definition: PostalCodeFeature.cpp:69
@ left
Definition: RouteDescription.h:274
void SetRenderContourLines(bool render)
Definition: MapParameter.cpp:230
void AddEntry(const DescriptionEntry &entry)
Definition: DescriptionService.h:111
bool operator!=(const Bearing &o) const
Definition: Bearing.h:114
size_t GetPriority() const
Definition: Styles.h:938
void onRouteRequest(LocationEntryRef start, LocationEntryRef target, QmlRoutingProfileRef profile, int requestId, osmscout::BreakerRef breaker, std::optional< osmscout::Bearing > bearing)
Start Route computation.
Definition: Router.cpp:258
Move GetCurve() const
Definition: RouteDescription.h:313
bool endIsClosed
The end of the way is closed, it does not lead to another way or area.
Definition: MapPainter.h:123
static const char *const NAME
Name of this feature.
Definition: FromToFeature.h:100
std::vector< SegmentGeoBox > segmentsBoxes
Definition: OverlayObject.h:59
double GetCosts(const Area &, const Distance &distance) const override
Estimated cost for specific area with given distance.
Definition: RoutingProfile.h:331
TypeInfoRef GetType() const
Definition: Way.h:78
std::shared_ptr< NodeDataFile > NodeDataFileRef
Definition: NodeDataFile.h:52
void SetViewport(const ScreenVectorRectangle &v)
Definition: LabelLayouter.h:243
@ NameRole
Definition: AvailableMapsModel.h:207
const OSMRefType & GetType() const
Definition: ObjectRef.h:103
Definition: TextLoader.h:34
bool GetRenderHillShading() const
Definition: MapParameter.h:379
bool IsValid() const
Definition: DBFileOffset.h:59
const GeoCoord coord
Definition: RouteStateAgent.h:49
size_t height
Height of image.
Definition: Projection.h:53
LocationRef location
Location data, if set.
Definition: LocationDescriptionService.h:366
double GetMinY() const
Definition: ScreenBox.h:87
void RegisterLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const Vertex2D &point, const std::vector< LabelData > &data, double objectWidth=10.0)
Definition: LabelLayouter.h:718
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: AddressFeature.cpp:63
Definition: RoutingService.h:186
void MAGCONSTDEF()
Definition: map/src/osmscoutmap/oss/Parser.cpp:708
bool waitForReleasingResources(unsigned long mSleep, unsigned long maxCount) const
Wait for releasing of dbThread shared pointer from other threads and terminating all created service ...
Definition: OSMScoutQt.cpp:332
Definition: MultiDBRoutingService.h:39
void error(int requestId)
std::string GetCostString(const RoutingProfile &profile, DatabaseId database, double cost) const override
Definition: SimpleRoutingService.cpp:142
osmscout::BreakerRef breaker
Definition: SearchModule.h:54
void lock()
Definition: ReadWriteLock.h:154
std::function< void(const bool &)> SetterFunction
Definition: CmdLineParsing.h:99
std::vector< Point > nodes
Note that ring nodes, bbox and segments fields are public for simple manipulation.
Definition: Area.h:106
MapView(QObject *parent, const osmscout::GeoCoord ¢er, const Bearing &angle, const osmscout::Magnification &magnification, double mapDpi)
Definition: InputHandler.h:174
StyleFilter & AddFeature(size_t featureFilterIndex, size_t flagIndex)
Definition: StyleConfig.cpp:234
void SetRenderSeaLand(bool render)
Definition: MapParameter.cpp:220
static uint32_t GetLibraryFileFormatVersion()
Definition: Database.cpp:199
StyleIntAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:403
const std::list< NameDescriptionRef > & GetDescriptions() const
Definition: RouteDescription.h:250
bool CanAccess(VehicleMask vehicleMask) const
Definition: AccessRestrictedFeature.h:81
void TAGISINCOND(const std::string &tagName, TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:719
std::string UnitStr() const override
Definition: Distance.h:249
@ rightOutline
right side of the way
EleFeatureValue(int16_t ele)
Definition: EleFeature.h:38
bool searching
True if searching is in progress.
Definition: SearchLocationModel.h:57
QString getDirectory() const
Definition: Voice.h:94
void GetWayLineStyles(const FeatureValueBuffer &buffer, const Projection &projection, std::vector< LineStyleRef > &lineStyles) const
Definition: StyleConfig.cpp:1221
ColorFeatureValue(const Color &color)
Definition: ColorFeature.h:39
size_t operator()(const VNode &node) const
Definition: RoutingService.h:377
QString database
Definition: LocationInfoModel.h:37
QString getAltName() const
Definition: LocationEntry.cpp:220
static const char *const NODE_START_DESC
Constant for a description of the start node (StartDescription)
Definition: RouteDescription.h:58
void SetColor(const Color &color)
Definition: PublicTransport.cpp:75
void IDENT(std::string &value)
Definition: src/osmscout/ost/Parser.cpp:324
void SetIsIn(const std::string_view &isIn)
Definition: IsInFeature.h:45
virtual Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: OnlineTileProviderModel.h:102
std::shared_ptr< SimpleRoutingService > SimpleRoutingServiceRef
Definition: SimpleRoutingService.h:261
Basin()
Definition: sweep_context.h:106
bool CanRouteBicycleBackward() const
Definition: AccessFeature.h:174
StyleFilter & SetMaxLevel(size_t level)
Definition: StyleConfig.cpp:213
ProjectionMode
Definition: Styles.h:1126
bool Open(const std::string &path, bool memoryMapedData)
Definition: CoordDataFile.cpp:46
Magnification GetScaleAndFadeMag() const
Definition: Styles.h:600
TagBoolCondition(Type type)
Definition: Tag.cpp:35
static double FromMeter(double m)
Definition: Distance.h:290
bool operator<=(const Distance &d) const
Definition: Distance.h:144
virtual RouteDescription::LaneDescription GetLanes(const DatabaseId &dbId, const WayRef &way, bool forward) const
Definition: RoutePostprocessor.cpp:37
FileOffset ref
Definition: MapPainter.h:164
TypeInfo & SetWayId(TypeId id)
Set the id of this type.
Definition: TypeConfig.cpp:90
virtual bool IsOpen() const
Return true, if index is currently opened.
Definition: DataFile.h:242
Tree model with maps available by configured providers (see Settings::GetMapProviders).
Definition: AvailableMapsModel.h:188
virtual GeoCoord GetCoordinates(const RouteDescription::Node &node, size_t nodeIndex) const =0
MapDownloadsModel(QObject *parent=Q_NULLPTR)
Definition: MapDownloadsModel.cpp:26
Point * head()
Definition: sweep_context.h:169
std::chrono::steady_clock::duration GetDuration() const
Definition: StopClock.cpp:47
DatabaseId GetDatabaseId() const
Definition: RoutingService.h:93
Definition: GeoCoord.h:71
void SetStringValue(int attribute, const std::string &value) override
Definition: Styles.cpp:518
int GetRelationOfPointToArea(const N &point, const std::vector< M > &nodes)
Definition: Geometry.h:524
Definition: DataFile.h:601
QString type
Definition: LocationEntry.h:51
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: NameShortFeature.cpp:77
void Set(int x, int y)
Definition: Geometry.h:1157
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: SidewayFeature.cpp:94
TypeInfo & SetSpecialType(SpecialType specialType)
Definition: TypeConfig.h:564
bool showAltLanguage
Definition: MapRenderer.h:107
bool HasIcon(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, IconStyle &style) override
Return true, if the icon in the IconStyle is available and can be drawn.
Definition: MapPainterAgg.cpp:212
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: OpeningHoursFeature.cpp:86
bool Intersects(const ScreenVectorRectangle &other) const
Definition: LabelLayouterHelper.h:100
static const std::string LABEL_KEY_COMMERCIAL_NETWORK
Definition: DescriptionService.h:300
bool isSearching() const
Definition: NearPOIModel.h:147
void start(const QString &serverBasePath, const QStringList &files)
Definition: FileDownloader.cpp:317
Definition: Geometry.h:1448
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: ChargingStationFeature.cpp:37
AdminLevelFeatureValue & operator=(const FeatureValue &other) override
Definition: AdminLevelFeature.cpp:38
GeoCoord GetCoord() const
Definition: RouteStep.h:127
Unit GetUnit() const
Definition: StyleConfig.h:184
bool operator==(const FillStyle &other) const
Definition: Styles.cpp:503
StyleModule * MakeStyleModule()
Definition: OSMScoutQt.cpp:411
TypeInfoSet nodeTypes
Definition: MapService.h:104
std::string GetName() const override
Returns the name of the feature.
Definition: LanesFeature.cpp:136
void SetScannerBehindT()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:512
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: FromToFeature.cpp:81
TypeInfoRef GetType() const
Definition: TypeConfig.h:791
void SetMinPx(double minPx)
Definition: StyleConfig.cpp:120
Variant of FeatureReader that is not type set and thus can easier get used in cases where runtime dyn...
Definition: FeatureReader.h:114
QDateTime sunrise
Definition: client-qt/include/osmscoutclientqt/SunriseSunset.h:47
void PATHSHIELDSTYLEATTR(PathShieldPartialStyle &style)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1531
void SetMaxPx(double maxPx)
Definition: StyleConfig.cpp:132
@ attrWidth
Definition: Styles.h:369
double GetSidecarMinDistanceMM() const
Definition: MapParameter.h:239
bool operator==(const Entry &other) const
Definition: LocationService.cpp:462
std::shared_ptr< RouteDataFile > RouteDataFileRef
Definition: RouteDataFile.h:51
Q_INVOKABLE QString onlineProviderCopyright()
Definition: QmlSettings.cpp:76
v2df atanh_sin_pd(v2df x)
Definition: SSEMath.h:401
bool Success() const
Definition: AbstractRoutingService.h:154
void TransformWay(const C &nodes, TransBuffer &buffer, const Projection &projection, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance, TransPolygon::OutputConstraint constraint=TransPolygon::noConstraint)
Transform form geo to screen coordinates and (optionally) optimize the passed way with the given coor...
Definition: Transformation.h:267
bool isRequestQueueEmpty() const
Definition: TileCache.cpp:74
Duration GetTime2(const Obj &obj, const Distance &distance) const
Definition: RoutingProfile.h:207
CmdLineParseResult Parse(CmdLineScanner &scanner) override
Definition: CmdLineParsing.cpp:195
static std::list< TokenStringRef > GenerateSearchPatterns(const std::list< std::string > &tokens, const std::unordered_set< std::string > &patternExclusions, size_t maxWords)
Definition: LocationService.cpp:1129
std::string GetLocation() const
Definition: LocationFeature.h:50
int suggestedTo
suggested lanes (from), inclusive
Definition: LaneAgent.h:43
Definition: WidthFeature.h:61
uint8_t GetOnewayLanes() const
Definition: TypeConfig.h:697
SettingsRef GetSettings() const
Definition: OSMScoutQt.cpp:347
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: AddressFeature.cpp:80
Definition: RouteDescription.h:325
FeeFeatureValue(Fee fee)
Definition: FeeFeature.h:50
Definition: PTRouteDataFile.h:34
void routeFailed(QString reason)
virtual void ReadTypeData(const TypeConfigRef &typeConfig, TypeData &data)=0
OSMScoutQtBuilder & AddVoiceProviders(const QString &voiceProviders)
Definition: OSMScoutQt.h:107
LocationIndexRef GetLocationIndex() const
Definition: Database.cpp:560
bool IsEOF() const
Definition: FileScanner.cpp:300
double maxPenalty
Definition: QmlRoutingProfile.h:54
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: OpeningHoursFeature.cpp:61
void Reset()
Definition: Transformation.cpp:246
StyleStringAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:178
bool operator==(const TypeInfoSet &other) const
Definition: TypeInfoSet.cpp:139
void AddAreaTextStyle(const StyleFilter &filter, TextPartialStyle &style)
Definition: StyleConfig.cpp:1018
void BOOL(bool &value)
Definition: map/src/osmscoutmap/oss/Parser.cpp:384
void Stop()
Definition: StopClock.cpp:104
virtual void SetIntValue(int attribute, int value)=0
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: AccessRestrictedFeature.cpp:29
double mapDpi
Definition: InputHandler.h:169
bool operator==(const FeatureValue &other) const override
Definition: EleFeature.cpp:78
Q_INVOKABLE QString suggestedDirectory(QObject *map, QString rootDirectory="")
Definition: MapDownloadsModel.cpp:35
double meterInPixel
Number of on screen pixel for one meter on the ground.
Definition: Projection.h:58
Definition: RouteDescription.h:117
const Color & GetTextColor() const
Definition: Styles.h:585
TypeInfoRef typeInfoCoastline
Internal type for coastlines.
Definition: TypeConfig.h:1120
double Value(const class Distance &d) const override
Definition: Distance.h:275
Line Error()
Start logging a line of error output.
Definition: Logger.cpp:94
virtual ~InstalledMapsModel()
Definition: InstalledMapsModel.cpp:38
int Read()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:148
ingroup Description
Definition: DescriptionService.h:172
int getSuggestedLaneFrom() const
Definition: NavigationModel.h:212
void WriteListEnd()
Definition: HTMLWriter.cpp:287
static const std::string LABEL_KEY_ROUTING_TO
Definition: DescriptionService.h:280
Definition: StyleDescription.h:231
StyleFilter & SetOneway(bool oneway)
Definition: StyleConfig.cpp:220
std::string GetName() const override
Returns the name of the feature.
Definition: AdminLevelFeature.cpp:65
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: RefFeature.cpp:29
std::string GetTo() const
Definition: PublicTransport.h:167
void routeCanceled(int requestId)
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: AdminLevelFeature.cpp:32
void RegisterRegularLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const std::vector< LabelData > &labels, const Vertex2D &position, double objectWidth) override
Register regular label with given text at the given pixel coordinate in a style defined by the given ...
Definition: MapPainterQt.cpp:872
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: LocationFeature.cpp:71
size_t GetLabelLineMinCharCount() const
Definition: MapParameter.h:269
OSMTileIdBox(const OSMTileId &a, const OSMTileId &b)
Definition: Tiling.cpp:78
double x
Definition: Transformation.h:49
Definition: Exception.h:57
bool CanAccessBicycle() const
Definition: AccessRestrictedFeature.h:102
void unitsSignal(QString)
void setCurrentIndex(int index) override
set the track index to play
Definition: VoicePlayer.cpp:45
TypeInfoRef RegisterType(const TypeInfoRef &typeInfo)
Methods for dealing with types.
Definition: TypeConfig.cpp:849
static const std::string LABEL_KEY_WAY_ACCESS_FOOT
Definition: DescriptionService.h:250
Hasher that can be used in std::unordered_map with TileId as a key.
Definition: TileId.h:119
bool touch(const QTouchEvent &event) override
Definition: InputHandler.cpp:609
bool toWay(osmscout::WayRef &way, const osmscout::TypeConfig &typeConfig) const
Definition: OverlayObject.cpp:209
int GetEndYear() const
Definition: ConstructionYearFeature.h:61
static int UPDATED_DATA_RENDERING_TIMEOUT
Definition: PlaneMapRenderer.cpp:38
int GetUtcOffset()
returns the utc timezone offset (e.g.
Definition: String.cpp:641
std::string GetName() const override
Returns the name of the feature.
Definition: PhoneFeature.cpp:70
Magnification magnification
Current magnification.
Definition: Projection.h:50
StringMatcher::Result Match(const std::string &text) const override
Definition: StringMatcher.cpp:61
std::chrono::duration< double, std::ratio< 3600 > > HourDuration
Definition: Time.h:31
MapPainter(const StyleConfigRef &styleConfig)
Definition: MapPainter.cpp:155
DistanceUnitSystem
Definition: Distance.h:35
uint32_t GetCount() const
Definition: TileId.h:306
NavigationMessage(const Timestamp ×tamp)
Definition: Engine.cpp:24
bool GetConstrainedEdgeCCW(Point &p)
bool GetRenderSea() const
Definition: QmlSettings.cpp:103
void GetNodeTextStyles(const FeatureValueBuffer &buffer, const Projection &projection, std::vector< TextStyleRef > &textStyles) const
Definition: StyleConfig.cpp:1173
bool operator==(const FeatureValueBuffer &other) const
Definition: TypeConfig.cpp:585
QML list model with currently downloaded maps.
Definition: MapDownloadsModel.h:42
bool CanUseBackward(const RoutingProfile &profile, const DatabaseId &database, const WayRef &way) override
Definition: SimpleRoutingService.cpp:99
const Timestamp timestamp
Definition: Engine.h:50
Distance GetDistance() const
Definition: Database.h:255
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: NameShortFeature.cpp:29
@ OpeningHours
Definition: LocationInfoModel.h:83
bool Intersects(const GeoBox &boundingBox) const
Returns true if the bounding box of the object intersects the given bounding box.
Definition: Way.h:181
@ DrawAreaBorderLabels
Definition: MapPainter.h:84
void HandleTileStatusChanged(QString dbPath, const osmscout::TileRef tile)
Definition: PlaneMapRenderer.cpp:452
void SetIconSize(double size)
Definition: MapParameter.cpp:164
bool operator==(const ScreenBox &other) const
Compare two values.
Definition: ScreenBox.cpp:39
std::vector< SpeedVariant > speeds
maximum vehicle speed on route type and its grade
Definition: RoutingProfile.h:200
Distance distanceTo
Estimate distance to this step (used with navigation)
Definition: RouteStep.h:87
Roles
Definition: OpeningHoursModel.h:50
void WAYORDER()
Definition: map/src/osmscoutmap/oss/Parser.cpp:201
@ operatorGreaterEqual
Definition: Parsing.h:36
double x
Definition: LabelLayouterHelper.h:74
Attribute
Definition: Styles.h:643
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: ClockwiseDirectionFeature.cpp:26
std::string ByteSizeToString(FileOffset size, const Locale &locale=Locale::ByEnvironmentSafe())
Definition: String.cpp:233
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: WebsiteFeature.cpp:29
uint64_t expectedSize() const override
Definition: VoiceManager.h:52
void SetUnitsSeparator(const std::string &separator)
Definition: Locale.h:100
BorderStyle & SetColor(const Color &color)
Definition: Styles.cpp:641
A Intersection is a node, where multiple routeable ways or areas meet.
Definition: Intersection.h:41
Definition: StyleDescription.h:382
void SemWarning(const char *msg)
Definition: map/src/osmscoutmap/oss/Parser.cpp:74
@ LonRole
Definition: MapObjectInfoModel.h:63
@ osmRefNone
Definition: ObjectRef.h:36
void DrawLabels(const Projection &projection, const MapParameter ¶meter, const MapData &data) override
Definition: MapPainterQt.cpp:900
void Warning(int line, int col, const char *s)
Definition: src/osmscout/ost/Parser.cpp:1052
bool IsRelation() const
Definition: ObjectRef.h:130
static const std::string LABEL_KEY_WAY_WIDTH
Definition: DescriptionService.h:234
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: WidthFeature.cpp:31
static const char *const TEXT_LOC_DAT
Definition: TextSearchIndex.h:42
LocationRef location
Definition: LocationService.h:243
~TextLoader()
Definition: TextLoader.cpp:191
size_t size
Definition: OpenGLMapData.h:46
double latOffset
Absolute and untransformed screen position of lat coordinate.
Definition: MercatorProjection.h:44
Definition: MultiDBRoutingState.h:41
void SetSize(int width, int height)
Definition: MapPainterOpenGL.cpp:1054
static MagnificationLevel magHouse
Definition: Magnification.h:161
void Read(char *buffer, size_t bytes)
Definition: FileScanner.cpp:455
v2df sin_pd(v2df x)
Definition: SSEMath.h:131
friend class OSMScoutQtBuilder
Definition: OSMScoutQt.h:240
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: BrandFeature.cpp:29
bool Get(Id id, RouteNodeRef &node) const
Definition: RouteNodeDataFile.cpp:175
bool operator<(const Vertex3D &other) const
Definition: Pixel.h:247
bool operator==(const TileIdBoxConstIterator &other) const
Definition: TileId.h:213
Color GetColor() const
Definition: StyleConfig.h:118
TransPolygon::OptimizeMethod GetOptimizeWayNodes() const
Definition: MapParameter.h:244
MapService(const DatabaseRef &database)
Definition: MapService.cpp:89
std::shared_ptr< InstructionPostprocessor > InstructionPostprocessorRef
Definition: RoutePostprocessor.h:376
void AREAFILLSYMSTYLE(FillPartialStyle &fillStyle)
Definition: map/src/osmscoutmap/oss/Parser.cpp:518
void Close()
Close the routing service.
Definition: SimpleRoutingService.cpp:360
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: AvailableVoicesModel.cpp:188
void showAltLanguageSignal(bool)
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: FeeFeature.cpp:32
@ LonRole
Definition: SearchLocationModel.h:180
Type type
Definition: map/include/osmscoutmap/oss/Parser.h:65
Definition: Geometry.h:1150
bool GetNodeIndexByNodeId(Id id, size_t &index) const
Definition: Way.cpp:55
OSMId GetVia() const
Definition: TurnRestriction.h:79
TextStyle & SetSize(double size) override
Definition: Styles.cpp:907
FeatureValueReader(const TypeConfig &typeConfig)
Definition: FeatureReader.h:187
Definition: PhoneFeature.h:66
std::string GetThousandsSeparator() const
Definition: Locale.h:85
@ attrPriority
Definition: Styles.h:515
bool HasError() const
Definition: FileWriter.h:72
Navigation(OutputDescription< NodeDescriptionTmpl > *outputDescr)
outputDescr pointer is not owned, it should not be destroyed before Navigation, caller is responsible...
Definition: Navigation.h:111
const Color & GetBgColor() const
Definition: Styles.h:781
void MapTriangleToNodes(Triangle &t)
Try to map a node to all sides of this triangle that don't have a neighbor.
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: OperatorFeature.cpp:76
NameFeatureValue(const std::string &name)
Definition: NameFeature.h:39
double offset
Definition: LabelPath.h:33
OperatorFeatureValue & operator=(const FeatureValue &other) override
Definition: OperatorFeature.cpp:34
void OnTranslation(int startPointX, int startPointY, int endPointX, int endPointY)
Translates the map to the given direction.
Definition: MapPainterOpenGL.cpp:1063
FeatureValueReader< WidthFeature, WidthFeatureValue > WidthFeatureValueReader
Definition: WidthFeature.h:87
std::string AppendFileToDir(const std::string &dir, const std::string &file)
Definition: File.cpp:83
bool isValid() const
Definition: Voice.h:107
std::string GetShortDescription() const
Definition: StyleError.h:88
bool VisitAdminRegionLocations(const AdminRegion ®ion, const PostalArea &postalArea, LocationVisitor &visitor) const
Visit the location at the given region and all its sub regions.
Definition: LocationService.cpp:587
Distance operator/(double factor) const
Definition: Distance.h:114
ObjectFileRef object
Object that represents the address.
Definition: Location.h:193
Definition: LookupModule.h:73
void WriteListEntryStart()
Definition: HTMLWriter.cpp:261
virtual void SetDoubleValue(int attribute, double value)=0
Holds a rectangular bit mask.
Definition: LabelLayouterHelper.h:117
bool isSuccessful() const
Definition: FileDownloader.h:192
QString getDownloadingFile()
Definition: FileDownloader.cpp:402
bool GetPreferColorFeature() const
Definition: Styles.h:163
void STYLEFILTER(StyleFilter &filter)
Definition: map/src/osmscoutmap/oss/Parser.cpp:999
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: PhoneFeature.cpp:90
RoutePositionResult GetRoutableNode(const DatabaseId &dbId, const std::vector< ObjectFileRef > &refs)
Return first usable routable node from given object references.
Definition: MultiDBRoutingService.cpp:118
double GetMaxDistance() const
Definition: NearPOIModel.h:178
static Parser::Exit _p1_u4(Parser *p, byte bb)
Definition: utf8helper.cpp:427
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: NameFeature.cpp:24
std::string GetTypeName() const
Definition: StyleError.h:56
Distance GetCurrentMaxDistance() const
Definition: AbstractRoutingService.h:78
void onSearchResult(const QString searchPattern, const QList< LocationEntry >)
Definition: SearchLocationModel.cpp:89
StyleAttributeType
Definition: StyleDescription.h:78
void AddPositional(const CmdLineArgParserRef &parser, const std::string &argumentName, const std::string &helpString)
Definition: CmdLineParsing.cpp:427
bool IsOpen() const
Definition: AreaAreaIndex.h:137
IconMode
Definition: MapParameter.h:44
static unsigned int f(N number, char *buffer)
Definition: Number.h:117
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: AccessRestrictedFeature.cpp:67
std::shared_ptr< SuggestedLaneDescription > SuggestedLaneDescriptionRef
Definition: RouteDescription.h:666
OSMScoutQtBuilder & WithTileCacheSizes(size_t onlineTileCacheSize, size_t offlineTileCacheSize)
Definition: OSMScoutQt.h:175
void SetMagnification(const osmscout::Magnification &magnification)
Definition: MapPainterOpenGL.cpp:1094
IconAnimation()
Definition: IconAnimation.cpp:28
bool state
Definition: map/include/osmscoutmap/oss/Parser.h:125
bool animationInProgress() override
Definition: InputHandler.cpp:329
bool IsInternal() const
Return true, if this is a internal type, else false.
Definition: TypeConfig.h:316
@ visitChildren
Visit child regions.
Definition: Location.h:102
static Bearing Degrees(double degrees)
Definition: Bearing.h:144
#define DECLARE_COEFFS(name)
Definition: SSEMath.h:36
@ BearingRole
Definition: SearchLocationModel.h:182
IconStyle & SetIconId(size_t id)
Definition: Styles.cpp:1636
double RadToDeg(double rad)
Definition: Geometry.h:71
bool operator==(const ObjectFileRef &reference) const
Definition: ObjectRef.h:179
bool renderSea
Definition: MapRenderer.h:102
void GetOffsets(const TypeData &typeData, const GeoBox &boundingBox, std::unordered_set< FileOffset > &offsets) const
Definition: AreaIndex.cpp:121
void setJunctionPenalty(bool)
Definition: QmlRoutingProfile.cpp:151
bool operator==(const Color &other) const
Definition: Color.h:175
static const size_t NUMBER_LABEL_INDEX
Index of the 'number' label.
Definition: PhoneFeature.h:81
@ GenderRole
Definition: AvailableVoicesModel.h:79
void AddConstant(const std::string &name, const StyleConstantRef &variable)
Definition: StyleConfig.cpp:444
static QString FormatMotorwayJunctionName(const RouteDescription::NameDescription &nameDescription)
Definition: RouteDescriptionBuilder.cpp:175
const Point & GetFront() const
Definition: Way.h:143
void tapAndDrag(const QPoint p)
virtual bool CanUseBackward(const DatabaseId &dbId, Id fromNodeId, const ObjectFileRef &object) const =0
size_t aIndex
"a path" point index before intersection
Definition: Geometry.h:1241
Fee GetValue() const
Definition: FeeFeature.h:61
PathTextStyle & SetTextColor(const Color &color)
Definition: Styles.cpp:1378
virtual ~VoiceDownloadJob()
Definition: VoiceManager.cpp:41
Definition: InputHandler.h:409
StopClock()
Definition: StopClock.cpp:30
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: MaxSpeedFeature.cpp:73
static const char *const NAME
Name of this feature.
Definition: IsInFeature.h:69
bool Empty() const
Definition: utf8helper.h:112
std::shared_ptr< Symbol > SymbolRef
Definition: StyleDescription.h:37
std::shared_ptr< BoundingBoxDataFile > BoundingBoxDataFileRef
Definition: BoundingBoxDataFile.h:68
static const std::string LABEL_KEY_WAY_MAXSPEED
Definition: DescriptionService.h:232
const std::vector< Socket > & GetSockets() const
Definition: ChargingStationFeature.h:70
osmscout::GeoBox box
Definition: OverlayObject.h:60
bool GetOffsets(const GeoBox &boundingBox, const TypeInfoSet &requestedTypes, std::vector< FileOffset > &offsets, TypeInfoSet &loadedTypes) const
Definition: AreaNodeIndex.cpp:311
void downloaded(const AvailableVoice &item)
std::optional< T > PopTask()
Move one data entry out of the queue (FIFO semantics).
Definition: ProcessingQueue.h:156
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: ChargingStationFeature.cpp:122
virtual void Write(FileWriter &writer)=0
Write the FeatureValue to disk.
bool GetOffset(I id, FileOffset &offset) const
Definition: DataFile.h:710
The address feature stores the house number of an (normally) node or area.
Definition: AddressFeature.h:36
bool operator==(const FeatureValue &other) const override
Definition: NameFeature.cpp:46
void routeRequest(LocationEntryRef start, LocationEntryRef target, QmlRoutingProfileRef profile, int requestId, osmscout::BreakerRef breaker, std::optional< osmscout::Bearing > bearing)
StyleError(StyleErrorType type, int line, int column, const std::string &text)
Definition: StyleError.h:40
@ attrScale
Definition: Styles.h:1227
uint8_t GetAreaTypeIdBytes() const
Definition: TypeConfig.h:1230
void GetSegmentBoundingBox(const std::vector< N > &path, size_t from, size_t to, GeoBox &boundingBox)
Helper for FindPathIntersections.
Definition: Geometry.h:1256
std::shared_ptr< Feature > FeatureRef
Definition: TypeFeature.h:219
std::string Trim(const std::string &str, char trimmedChar=' ')
Trim trimmedChar from begin and end of str.
Definition: String.cpp:753
void AddSocket(const Socket &socket)
Definition: ChargingStationFeature.h:61
Node * next
Definition: advancing_front.h:46
static QStringList SplitDestinations(const std::string &destinations)
Definition: RouteDescriptionBuilder.cpp:198
Log log
Definition: LoggerImpl.h:95
LocationAtPlaceDescriptionRef GetAtAddressDescription() const
Return the location in relation to a close address.
Definition: LocationDescriptionService.cpp:144
void SetPatternPaths(const std::list< std::string > &paths)
Definition: MapParameter.cpp:85
constexpr int IsDiacritic
Definition: utf8helper_charmap.h:33
uint64_t ReadUInt64Number()
Definition: FileScanner.cpp:2111
std::vector< VoiceSample > message
Definition: VoiceInstructionAgent.h:99
MessageType type
Definition: VoiceInstructionAgent.h:147
int x
Definition: LabelLayouterHelper.h:39
double shieldLabelPadding
Definition: LabelLayouter.h:283
bool operator==(const FeatureValue &other) const override
Definition: ColorFeature.cpp:47
~SimpleRoutingService() override
Definition: SimpleRoutingService.cpp:61
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: SidewayFeature.cpp:79
GeoBox()=default
The default constructor creates an invalid instance.
static const char *const NAME
Name of this feature.
Definition: PostalCodeFeature.h:74
void Invalidate()
Invalidate the bounding Box.
Definition: GeoBox.h:78
double Det(double x1, double y1, double x2, double y2)
Definition: Geometry.h:964
GeoCoord GetLocation() const
Location (latitude,longitude) of the node.
Definition: RouteDescription.h:789
const std::string & GetFrom() const
Definition: FromToFeature.h:48
bool DescribeLocationByCrossing(const GeoCoord &location, LocationDescription &description, const Distance &lookupDistance=Distance::Of< Meter >(100))
Returns crossings (of roads that can be driven by cars and which have a name feature)
Definition: LocationDescriptionService.cpp:1165
virtual void Destroy(T *o) noexcept
Definition: ObjectPool.h:68
std::string GetName() const override
Returns the name of the feature.
Definition: LocationFeature.cpp:61
static const std::string LABEL_KEY_WAY_GRADE
Definition: DescriptionService.h:233
virtual LabelStyle & SetSize(double size)
Definition: Styles.cpp:779
GeoCoord GetTopLeftCoord(const Magnification &magnification) const
Return the top left coordinate of the tile.
Definition: TileId.cpp:55
size_t Pow(size_t a, size_t b)
Definition: Geometry.cpp:36
@ LatRole
Definition: MapObjectInfoModel.h:62
InstalledVoicesModel()
Definition: InstalledVoicesModel.cpp:28
Distance GetDistance() const
Definition: SimpleRoutingService.h:80
bool draw
Definition: Transformation.h:48
bool Set(const OSMTileId &tile, const Magnification &magnification, size_t width, size_t height)
Definition: TileProjection.h:90
void SetStyleSheetFile(const QString file)
Definition: QmlSettings.cpp:98
unsigned char * data
Definition: OpenGLMapData.h:47
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: MapObjectInfoModel.cpp:75
std::shared_ptr< SRTMData > SRTMDataRef
Definition: SRTM.h:58
CmdLineArgParserRef CmdLineBoolOption(Args &&...args)
Definition: CmdLineParsing.h:256
bool operator==(const FeatureValue &other) const override
Definition: BrandFeature.cpp:46
Definition: RoutePostprocessor.h:175
bool toNode(osmscout::NodeRef &node, const osmscout::TypeConfig &typeConfig) const
Definition: OverlayObject.cpp:282
unsigned char types
Bitset of types the condition can be applied to.
Definition: TypeConfig.h:96
bool IsEmpty() const
Return true, if the TransBuffer holds data (length==0)
Definition: Transformation.h:80
const RouteData & GetRoute() const
Definition: AbstractRoutingService.h:88
virtual void BeforeRoute()
Call once before evaluation the the RouteDescription starts.
Definition: RouteDescriptionPostprocessor.cpp:31
void SIZECONDITION(SizeConditionRef &condition)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1212
Definition: MapObjectInfoModel.h:43
Bearing GetBearing() const
Return the bearing you have to go to from the place for 'distance' to reach the location.
Definition: LocationDescriptionService.h:160
std::list< PathTextStyleSelector > PathTextStyleSelectorList
Definition: StyleConfig.h:526
@ Postrender
Implementation specific final step.
Definition: MapPainter.h:91
const FeatureInstance & GetFeature(size_t idx) const
Definition: Area.h:132
bool GetDigitValue(char digit, size_t &result)
Definition: String.cpp:118
~LocationListModel() override
Definition: SearchLocationModel.cpp:71
bool GetFlagByName(const std::string &name) const
Returns the value of the given flag identified by the name of the flag.
Definition: StyleConfig.cpp:412
LaneDescription(bool oneway, uint8_t laneCount, const std::vector< LaneTurn > &laneTurns)
Definition: RouteDescription.cpp:481
bool GetBoundingBox(double &xmin, double &ymin, double &xmax, double &ymax) const
Return the bounding box of the to be drawn display coordinates.
Definition: Transformation.cpp:71
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:950
static QString ShortTurnCommand(const RouteDescription::DirectionDescriptionRef &directionDescription)
Definition: RouteDescriptionBuilder.cpp:74
bool ContainsNode(const Id id) const
Definition: RoutingDB.h:92
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: NameShortFeature.h:79
std::shared_ptr< AreaNodeIndex > AreaNodeIndexRef
Definition: AreaNodeIndex.h:121
@ LatRole
Definition: NearPOIModel.h:88
void SetAtAddressDescription(const LocationAtPlaceDescriptionRef &description)
Definition: LocationDescriptionService.cpp:114
Definition: AbstractRoutingService.h:114
double maxDistance
Maximal distance of searched objects.
Definition: NearPOIModel.h:71
static const char *const NAME
Name of this feature.
Definition: NameFeature.h:71
static const std::string SECTION_NAME_GENERAL
Definition: DescriptionService.h:153
NameFeatureValue & operator=(const FeatureValue &other) override
Definition: NameFeature.cpp:35
Errors()
Definition: src/osmscout/ost/Parser.cpp:917
uint8_t GetLaneCount() const
Definition: RouteDescription.h:615
@ attrPriority
Definition: Styles.h:644
bool roundaboutClockwise
when type is "leave-roundabout" or "enter-roundabout", this property indicate direction of roundabout
Definition: RouteStep.h:58
static const double MaxLon
Definition: MercatorProjection.h:60
WidthFeatureValueReader widthReader
Value reader for the 'width' feature.
Definition: MapPainter.h:260
void SetAtNameDescription(const LocationAtPlaceDescriptionRef &description)
Definition: LocationDescriptionService.cpp:109
const character charmap_c7[]
Definition: utf8helper_charmap.cpp:499
static const Color BLACK
Definition: Color.h:41
std::shared_ptr< MotorwayChangeDescription > MotorwayChangeDescriptionRef
Definition: RouteDescription.h:432
int GetTextureHeight()
Definition: OpenGLMapData.h:316
TileRouteData & GetRouteData()
Return a read-write reference to the area data.
Definition: DataTileCache.h:390
void RegisterFillStyleProcessor(size_t typeIndex, const FillStyleProcessorRef &processor)
Definition: MapParameter.cpp:275
static void PathPointTransformer(double &x, double &y, cairo_path_t *path, const double *pathSegmentLengths)
Project a point X,Y onto a parameterized path.
Definition: MapPainterCairo.cpp:104
Definition: ConstructionYearFeature.h:30
double GetDisplayOffset() const
Definition: Styles.h:872
Distribution()
Definition: TypeDistributionDataFile.cpp:32
void Read(FileScanner &scanner)
Read data from the given FileScanner.
Definition: RouteNode.cpp:98
std::optional< T > value
Definition: CancelableFuture.h:49
virtual bool HasValue() const
Returns 'true' if the feature has an value object.
Definition: TypeFeature.h:165
Definition: MaxSpeedFeature.h:61
Definition: Geometry.h:1438
Definition: VoicePlayer.h:35
std::string GetLabel(const Locale &, size_t) const override
Definition: DestinationFeature.h:54
bool IsCovered(const Pixel &tile) const
Definition: CoverageIndex.cpp:85
void FEATURE()
Definition: src/osmscout/ost/Parser.cpp:301
bool DescribeLocationByWay(const GeoCoord &location, LocationDescription &description, const Distance &lookupDistance=Distance::Of< Meter >(100))
Returns ways (roads that can be driven by cars and which have a name feature)
Definition: LocationDescriptionService.cpp:1301
virtual void SetSymbolValue(int attribute, const SymbolRef &value)
Definition: StyleDescription.cpp:62
FeatureValue * AllocateValue(void *buffer) override
Definition: OpeningHoursFeature.cpp:81
static const std::string LABEL_KEY_NAME_NAME_CONSTRUCTIONYEAR
Definition: DescriptionService.h:160
std::string ToHexString() const
Definition: Color.cpp:82
double GetCostLimit(const RoutingProfile &profile, DatabaseId database, const Distance &targetDistance) override
Definition: SimpleRoutingService.cpp:135
void Swap(std::vector< LabelInstanceType > &labelInstances, std::vector< ContourLabelType > &contourLabelInstances)
Definition: LabelLayouter.h:315
A Coordinate for a point in a ground tile path.
Definition: GroundTile.h:58
void onTileStateChanged(QString dbPath, const osmscout::TileRef tile)
Definition: DBLoadJob.cpp:119
Definition: NodeDataFile.h:34
std::function< void()> CancelCallback
Definition: CancelableFuture.h:44
static const double extentMeter
Definition: Earth.h:39
FileOffset way
Definition: Route.h:59
void WriteListEntryEnd()
Definition: HTMLWriter.cpp:274
const ALIGN16_BEG double SINECOEFF_SSE[] ALIGN16_END
Definition: SSEMath.h:97
std::map< DatabaseId, std::string > GetDatabaseMapping() const override
Definition: SimpleRoutingService.cpp:452
size_t width
Definition: OpenGLMapData.h:44
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: LanesFeature.cpp:26
bool coast
Definition: GroundTile.h:64
bool GetAddressOnlyMatch() const
Definition: LocationService.cpp:403
static bool RenderTiles(QPainter &painter, const MapViewStruct &request, QList< TileCache * > &layerCaches, const QColor &unknownColor, double overlap=-1, const QColor &gridColor=QColor::fromRgbF(0.8, 0.8, 0.8))
Definition: TiledRenderingHelper.cpp:33
void TAGNOTEQUALSCOND(const std::string &tagName, TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:659
void onLookupFinished(int requestId)
Definition: NearPOIModel.cpp:148
bool operator==(const Point &a, const Point &b)
Definition: shapes.h:250
Router(QThread *thread, SettingsRef settings, DBThreadRef dbThread)
Definition: Router.cpp:32
const character charmap_f0_9e_a4[]
Definition: utf8helper_charmap.cpp:2691
void OptimizeArea(TransBuffer &buffer, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance, TransPolygon::OutputConstraint constraint)
Optimize a already transformed area.
Definition: Transformation.cpp:624
@ Continue
Definition: utf8helper.h:70
bool showCoordinates(const osmscout::GeoCoord &coord, const osmscout::Magnification &magnification, const osmscout::Bearing &bearing) override
Definition: InputHandler.cpp:586
const character charmap_e2_80[]
Definition: utf8helper_charmap.cpp:2265
void tileDownloaded(uint32_t zoomLevel, uint32_t x, uint32_t y)
Definition: TiledMapOverlay.cpp:196
void SetConstrainedEdgeCCW(Point &p, bool ce)
static const uint8_t outerRingId
Definition: Area.h:90
std::shared_ptr< WaterIndex > WaterIndexRef
Definition: WaterIndex.h:107
bool Process(const PostprocessorContext &context, RouteDescription &description) override
Definition: RoutePostprocessor.cpp:589
std::list< WayRegionSearchResultEntry > GetWayResults() const
Definition: Database.h:227
void SetRenderBackground(bool render)
Definition: MapParameter.cpp:215
OverlayNode(QObject *parent=Q_NULLPTR)
Definition: OverlayObject.cpp:270
static Parser::Exit _p2_u4(Parser *p, byte bb)
Definition: utf8helper.cpp:440
Definition: LayerFeature.h:61
virtual void RegisterContourLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const PathLabelData &label, const LabelPath &labelPath) override
Register contour label.
Definition: MapPainterSVG.cpp:737
MoveHandler(const MapView &view)
Definition: InputHandler.cpp:254
WebsiteFeature()
Definition: WebsiteFeature.cpp:56
QString phone
Definition: IconLookup.h:57
FromToFeatureValue & operator=(const FeatureValue &other) override
Definition: FromToFeature.cpp:36
Definition: RouteInstructionAgent.h:52
virtual std::vector< DatabaseRef > GetDatabases() const =0
Get low level database objects (indexed by DatabaseId)
osmscout::Magnification magnification
Definition: InputHandler.h:235
@ Initialize
Setup internal state of renderer for executing next steps with current projection and parameters.
Definition: MapPainter.h:66
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: AvailableMapsModel.cpp:273
void targetReached(QString targetBearing, double targetDistance)
void DrawPath(const Projection &projection, const MapParameter ¶meter, const Color &color, double width, const std::vector< double > &dash, LineStyle::CapStyle startCap, LineStyle::CapStyle endCap, const CoordBufferRange &coordRange) override
Draw simple line with the given style,the given color, the given width and the given untransformed no...
Definition: MapPainterSVG.cpp:867
PathSymbolStyle & SetSymbolSpace(double space)
Definition: Styles.cpp:1752
MatchQuality postalAreaMatchQuality
Definition: LocationService.h:242
bool HasFlag(const std::string &name) const
Returns 'true', if the given flag exists, else 'false'.
Definition: StyleConfig.cpp:402
double Min() const
Definition: RoutingProfile.h:105
Definition: AbstractRoutingService.h:123
void SetLabelLayouterOverlap(double labelLayouterOverlap)
Definition: MapParameter.cpp:199
Node * left_node
Definition: sweep_context.h:100
std::string Destring(const char *str)
Definition: map/include/osmscoutmap/oss/Parser.h:137
double AsRadians() const
Bearing in radians, normalised to [0..2*M_PI)
Definition: Bearing.h:64
FeatureValue * AllocateValue(void *buffer) override
Definition: NetworkFeature.cpp:81
Definition: NavigationModule.h:56
std::map< DatabaseId, RoutableDBObjects > dbMap
Definition: DataAgent.h:39
Definition: LocationDescriptionService.h:212
osmscout::GeoBox overlayObjectsBox() const
Definition: MapRenderer.cpp:218
static const char *const NAME
Name of this feature.
Definition: LayerFeature.h:68
@ Available
Definition: AvailableVoicesModel.h:89
Definition: MapTileCache.h:209
bool oneway
Definition: LaneAgent.h:37
Definition: map/include/osmscoutmap/oss/Scanner.h:45
Access
Definition: AccessFeature.h:33
void SetFrom(const std::string &from)
Definition: PublicTransport.cpp:65
void SetCacheSize(size_t cacheSize)
Set the size of the tile data cache.
Definition: MapService.cpp:123
QString objectType
Definition: LookupModule.h:76
Line & operator<<(unsigned long long value)
Definition: Logger.h:198
std::string GetPositionalHint(const std::string &positional) const override
Definition: CmdLineParsing.cpp:190
bool isDay() const
Definition: client-qt/src/osmscoutclientqt/SunriseSunset.cpp:113
double GetWidth() const
Definition: Styles.h:424
ReadLock & operator=(ReadLock &&rl) noexcept
Definition: ReadWriteLock.h:145
size_t GetCurrentSize() const
Definition: DataTileCache.h:519
virtual bool IsMiniRoundabout(const RouteDescription::Node &node) const =0
void Start()
Definition: Worker.h:95
static const std::string LABEL_KEY_CHARGINGSTATION_SOCKET_TYPE
Definition: DescriptionService.h:339
Definition: TagErrorReporter.h:45
Q_INVOKABLE void setFlag(const QString &key, bool value)
Definition: StyleFlagsModel.cpp:115
uint32_t GetLevel() const
Definition: TileId.h:139
std::shared_ptr< MotorwayLeaveDescription > MotorwayLeaveDescriptionRef
Definition: RouteDescription.h:454
const FeatureInstance & GetFeature(size_t idx) const
Definition: Node.h:98
size_t height
Definition: OpenGLMapData.h:45
bool HasSidewalkTrackLeft() const
Definition: SidewayFeature.h:58
Definition: map/include/osmscoutmap/oss/Scanner.h:60
bool Finished()
Return true, if the queue is stopped and empty, else false.
Definition: ProcessingQueue.h:199
void Close()
Closes the file.
Definition: FileScanner.cpp:264
Definition: RouteDescription.h:482
Point * OppositePoint(Triangle &t, Point &p)
FeatureValue * AllocateValue(void *buffer) override
Definition: FeeFeature.cpp:88
@ PathRole
Definition: InstalledMapsModel.h:53
Definition: MapRenderer.h:43
bool ready
Definition: LocationInfoModel.h:47
double AsDegrees() const
Bearing in degrees, normalised to [0..360)
Definition: Bearing.h:72
@ TypeRole
Definition: SearchLocationModel.h:177
bool GetRenderContourLines() const
Definition: MapParameter.h:374
Definition: RoutingProfile.h:126
~IconLookup() override
Definition: IconLookup.cpp:55
~NavigationModule() override
Definition: NavigationModule.cpp:46
std::shared_ptr< DirectionDescription > DirectionDescriptionRef
Definition: RouteDescription.h:319
ShortestPathRoutingProfile(const TypeConfigRef &typeConfig)
Definition: RoutingProfile.cpp:367
GpsPositionState GetState(const Timestamp &now) const
Definition: PositionAgent.cpp:30
double GetLon() const
Definition: Point.h:103
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: NavigationModel.cpp:282
double fontSize
Definition: MapRenderer.h:105
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: FromToFeature.cpp:24
Definition: OverlayObject.h:168
double iconPadding
Definition: LabelLayouter.h:281
DataLoader(const std::list< DBInstanceRef > &databases)
Definition: ElevationModule.cpp:43
void Run(const osmscout::BasemapDatabaseRef &basemapDatabase, const std::list< DBInstanceRef > &databases, ReadLock &&locker) override
Definition: DBLoadJob.cpp:56
bool HasOptimizations(double magnification) const
Definition: OptimizeWaysLowZoom.cpp:136
const character charmap_e1_b8[]
Definition: utf8helper_charmap.cpp:1717
size_t GetLength() const
Return the number of to be drawn points.
Definition: Transformation.h:89
double fontSize
Font size to be used.
Definition: LabelLayouter.h:126
void TAGEXISTSCOND(TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:592
void AREABORDERSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1596
static const std::string LABEL_KEY_LOCATION_ADMINLEVEL_LEVEL
Definition: DescriptionService.h:205
NetworkFeatureValue & operator=(const FeatureValue &other) override
Definition: NetworkFeature.cpp:34
friend AggLabelLayouter
Definition: MapPainterAgg.h:61
void SetDataMMap(bool mmap)
Definition: BasemapDatabase.cpp:27
double y
Definition: shapes.h:47
std::vector< Stop > stops
Definition: PublicTransport.h:138
void DrawWay(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const WayData &data) override
Definition: MapPainterSVG.cpp:945
TransPolygon::OptimizeMethod GetOptimizeAreaNodes() const
Definition: MapParameter.h:249
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: SidewayFeature.cpp:65
void requestRegionLookup(const osmscout::GeoCoord location)
Start retrieving list of place admin regions.
Definition: LookupModule.cpp:385
void GetRouteLineStyles(const FeatureValueBuffer &buffer, const Projection &projection, std::vector< LineStyleRef > &lineStyles) const
Definition: StyleConfig.cpp:1255
static const std::string SECTION_NAME_ID
Definition: DescriptionService.h:415
Node * search()
Definition: advancing_front.h:106
bool IsMaster() const
Definition: Area.h:147
void SetColorValue(int attribute, const Color &value) override
Definition: Styles.cpp:132
int count
when route is oneway
Definition: LaneAgent.h:38
void DrawContourSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const ContourSymbolData &data) override
Draw the given Symbol on top of the contour of the given path.
Definition: MapPainterQt.cpp:572
void UseProgram()
Definition: OpenGLMapData.h:283
@ cyclewayLaneLeft
Definition: SidewayFeature.h:36
StreamLogger(std::ostream &infoStream, std::ostream &errorStream)
Definition: LoggerImpl.cpp:97
uint32_t ReadUInt32Number()
Definition: FileScanner.cpp:2058
Q_INVOKABLE QModelIndex parent(const QModelIndex &index) const override
Definition: AvailableMapsModel.cpp:247
virtual ~MapRenderer()
Definition: MapRenderer.cpp:85
std::string GetWebsite() const
Definition: WebsiteFeature.h:49
UTF8String()
Contructs empty UTF8String object with transformation nop.
Definition: utf8helper.cpp:125
Definition: RoutingDB.h:42
bool IsSimple() const
Definition: Area.h:282
bool IsSame(const Point &other) const
Compare this and the other point for "sameness".
Definition: Point.h:132
void SetDebugPerformance(bool debug)
Definition: MapParameter.cpp:245
ReadLock(ReadLock &&rl) noexcept
Definition: ReadWriteLock.h:143
Definition: DataAgent.h:37
bool IsVisible() const
Definition: Styles.h:1261
const GeoCoord & GetCoord(size_t index) const
Definition: Way.h:158
TargetPostprocessor(const std::string &targetDescription)
Definition: RoutePostprocessor.cpp:116
ObjectFileRef GetObjectFileRef() const
Definition: Node.h:60
static const uint32_t FILE_FORMAT_VERSION
Definition: TypeConfig.h:1044
TypeInfoRef GetAreaTypeInfo(TypeId id) const
Returns the type definition for the given type id.
Definition: TypeConfig.h:1303
void SetLimit(size_t limit)
Definition: LocationService.cpp:313
const SizeConditionRef & GetSizeCondition() const
Definition: StyleConfig.h:308
std::shared_ptr< LookupModule > LookupModuleRef
Definition: LookupModule.h:280
void routeFailed(QString reason, int requestId)
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: NameFeature.cpp:89
StopType GetType() const
Definition: PublicTransport.h:77
Mercator projection as used by the OpenStreetMap tile rendering code.
Definition: TileProjection.h:37
Log & Info(bool state)
Definition: Logger.h:400
static const std::string SECTION_NAME_LOCATION
Definition: DescriptionService.h:197
std::string GetFilename() const
Definition: CoordDataFile.h:59
static const char *const NAME
Name of this feature.
Definition: BridgeFeature.h:37
std::function< bool(size_t i, const Ring &, const TypeInfoRef &)> RingVisitor
Definition: Area.h:234
ProcessingQueue< E2 > & outQueue
Definition: Worker.h:139
std::vector< PainterType > painters
Definition: BatchMapPainter.h:45
std::string GetName() const override
Returns the name of the feature.
Definition: RefFeature.cpp:67
TypeInfo & SetIndexAsPOI(bool indexAsPOI)
Set, if an object of this type should be indexed as a POI.
Definition: TypeConfig.h:537
Definition: LoggerImpl.h:37
std::shared_ptr< AdminRegion > AdminRegionRef
Definition: Location.h:88
PostalCodeFeatureValue & operator=(const FeatureValue &other) override
Definition: PostalCodeFeature.cpp:36
TypeInfo & AddFeature(const FeatureRef &feature)
Add a feature to this type.
Definition: TypeConfig.cpp:161
~OsmTileDownloader() override
Definition: OsmTileDownloader.cpp:55
Definition: ScreenBox.h:37
Definition: OpenGLMapData.h:42
OpenGLTextureRef CreateTexture()
Creates one texture from the character textures.
Definition: TextLoader.cpp:109
int point_count()
Definition: sweep_context.h:159
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: IsInFeature.cpp:24
PlaybackState
Definition: VoicePlayer.h:39
Definition: AddressFeature.h:73
Id id
Definition: DBFileOffset.h:41
VoiceProvider getProvider() const
Definition: Voice.h:73
@ Uninitialised
Definition: PositionAgent.h:58
int64_t AsMillis(const std::chrono::duration< T > &duration)
Definition: FileDownloader.cpp:38
constexpr int None
Definition: utf8helper_charmap.h:28
size_t width
Width of image.
Definition: Projection.h:52
@ LowAccuracy
Definition: PositionAgent.h:38
void AddUniform(const char *uniformName, float value)
Definition: OpenGLMapData.h:363
DayTime from
Definition: OpeningHours.h:62
bool operator==(const FeatureValue &other) const override
Definition: NetworkFeature.cpp:45
LocationService(const DatabaseRef &database)
LocationService constructor.
Definition: LocationService.cpp:528
SettingsRef settings
Definition: MapRenderer.h:91
bool GetRenderSeaLand() const
Definition: MapParameter.h:364
void locationAdminRegionFinished(const osmscout::GeoCoord location)
bool IsOpen() const
Definition: CoverageIndex.h:64
double GetSize() const
Definition: Styles.h:862
TypeInfoRef GetNodeType(const TagMap &tagMap) const
Return a node type (or an invalid reference if no type got detected) based on the given map of tag an...
Definition: TypeConfig.cpp:1020
void SetFill(const FillStyleRef &fillStyle) override
Definition: SymbolRendererCairo.cpp:38
@ BicycleVehicle
Definition: QmlRoutingProfile.h:61
bool focusOutEvent(QFocusEvent *event) override
Definition: InputHandler.cpp:815
bool CanRoute(VehicleMask vehicleMask) const
Definition: AccessFeature.h:87
Mode
Definition: FileScanner.h:64
std::string NumberToString(long value, const Locale &locale)
Returns locale-aware string representation of number.
Definition: String.cpp:75
EdgeEvent edge_event
Definition: sweep_context.h:130
LabelData labelData
Definition: LabelLayouter.h:151
double GetMaxLat() const
Return the maximum latitude of the GeBox.
Definition: GeoBox.h:224
void SetPostalCode(const std::string_view &postalCode)
Definition: PostalCodeFeature.h:44
OverlayObject(QObject *parent=Q_NULLPTR)
Definition: OverlayObject.cpp:35
bool HasWayPathTextStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1316
The location feature stores the location of an (normally) node or area.
Definition: LocationFeature.h:73
@ attrDashes
Definition: Styles.h:370
virtual void SetUIntValue(int attribute, size_t value)
Definition: StyleDescription.cpp:74
NameAltFeatureValue & operator=(const FeatureValue &other) override
Definition: NameAltFeature.cpp:34
@ GenderRole
Definition: InstalledVoicesModel.h:67
static const std::string SECTION_NAME_WAY
Definition: DescriptionService.h:221
uint32_t zoomLevel
Definition: TileCache.h:56
const FeatureValueBuffer & GetFeatureValueBuffer() const
Definition: Node.h:108
PathTextStyle & SetOffset(double value)
Definition: Styles.cpp:1392
FeatureValueReader< AccessFeature, AccessFeatureValue > AccessFeatureValueReader
Definition: AccessFeature.h:276
~ReadLock()
Definition: ReadWriteLock.h:134
bool operator<(const TileId &other) const
Compare tile ids by their order.
Definition: TileId.h:100
@ TypeRole
Definition: RouteStep.h:67
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: GradeFeature.cpp:80
virtual void BeforeNode(const RouteDescription::Node &node)
Always called before we analyse a node.
Definition: RouteDescriptionPostprocessor.cpp:112
~RoutingListModel() override
Definition: RoutingModel.cpp:46
Definition: OperatorFeature.h:67
virtual ~ValueSizer()=default
Definition: RoutePostprocessor.h:443
static const std::string SUBSECTION_NAME_PAYMENT_FEE
Definition: DescriptionService.h:317
RouteInstruction nextRouteInstruction
Definition: RouteInstructionAgent.h:44
void loadingFinished(int requestId)
double GetSymbolSpace() const
Definition: Styles.h:1286
Definition: Database.h:219
OSMSCOUT_CLIENT_QT_API std::vector< std::string > QStringListToStringVector(const QStringList &list)
Definition: QtStdConverters.cpp:24
std::vector< Triangle * > GetTriangles()
Get CDT triangles.
static char * _u_string(char *buf, codepoint u)
Definition: utf8helper.cpp:94
void ScanConvertLine(int x1, int y1, int x2, int y2, std::vector< ScanCell > &cells)
This functions does a scan conversion of a line with the given start and end points.
Definition: Geometry.cpp:413
virtual bool ParametrizeForCar(const TypeConfig &typeConfig, const std::map< std::string, double > &speedMap, double maxSpeed)
Definition: RoutingProfile.cpp:140
bool loadRoutableObjects(const GeoBox &box, const Vehicle &vehicle, const std::map< std::string, DatabaseId > &databaseMapping, RoutableObjectsRef &data)
Definition: NavigationModule.cpp:143
std::string WStringToUTF8String(const std::wstring &text)
Definition: String.cpp:600
double getTimeDelta() const
Definition: RouteStep.h:167
@ bicycleBackward
Definition: AccessFeature.h:37
void onDownloaded()
Definition: FileDownloader.cpp:206
size_t getEpoch() const
Definition: TileCache.h:151
std::shared_ptr< DrawPrimitive > DrawPrimitiveRef
Definition: Styles.h:1021
std::list< Err > errors
Definition: map/include/osmscoutmap/oss/Parser.h:72
Point * PointCW(const Point &point) const
virtual ~Router()
Definition: Router.cpp:43
MapView(const MapView &mv)
This copy constructor don't transfer ownership in Qt hierarchy - it may cause troubles.
Definition: InputHandler.h:203
uint8_t GetAreaTypeIdBits() const
Definition: TypeConfig.h:1225
void STYLECONDBLOCK(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:961
DescriptionService()
Definition: DescriptionService.cpp:785
DatabaseId databaseId
Definition: PositionAgent.h:71
void SetOptimizeWayNodes(TransPolygon::OptimizeMethod optimize)
Definition: MapParameter.cpp:100
QObject * getNextRoutStep()
Definition: NavigationModel.cpp:221
@ PrepareNodeLabels
Definition: MapPainter.h:86
Definition: BridgeFeature.h:30
void SynErr(int line, int col, int n)
Definition: map/src/osmscoutmap/oss/Parser.cpp:2490
Definition: Location.h:217
Definition: Database.h:233
bool HasFeature(size_t idx) const
Definition: Way.h:88
bool isFollowVehicle() override
Definition: InputHandler.cpp:893
const std::vector< int > & GetSectionLenghts() const
Definition: AbstractRoutingService.h:98
QString getOpeningHours() const
Definition: OpeningHoursModel.h:80
bool isOuter
flag if this area is outer ring of some relation
Definition: MapPainter.h:183
RefType type
Definition: ObjectRef.h:154
std::string LaneTurnString(LaneTurn turn)
Definition: LaneTurn.cpp:26
Definition: RoutePostprocessor.h:144
NameDescriptionRef GetToDescription() const
Definition: RouteDescription.h:426
@ foot
Definition: AccessRestrictedFeature.h:34
size_t GetLabelLineMaxCharCount() const
Definition: MapParameter.h:274
std::string GetSemanticError() const
Definition: Exception.cpp:131
double getPenaltySameType() const
Definition: QmlRoutingProfile.cpp:160
void mapDownloadFails(QString message)
Vertex2D operator+(const Vertex2D &a, const Vertex2D &b)
Definition: Pixel.cpp:43
void OnComplete(const DoneCallback &callback)
Callback triggered on future complete.
Definition: CancelableFuture.h:189
void SetUIntValue(int attribute, size_t value) override
Definition: Styles.cpp:1353
AdminRegionRef adminRegion
Region the object is in, if set.
Definition: LocationDescriptionService.h:363
void mergeAndStartRequests(uint32_t zoomLevel, uint32_t xtile, uint32_t ytile, uint32_t &xFrom, uint32_t &xTo, uint32_t &yFrom, uint32_t &yTo, uint32_t maxWidth, uint32_t maxHeight)
Definition: TileCache.cpp:79
const TypeInfoRef & reference
Definition: TypeInfoSet.h:37
virtual bool CanUse(const RouteNode ¤tNode, const std::vector< ObjectVariantData > &objectVariantData, size_t pathIndex) const =0
const std::list< std::string > & GetPatternPaths() const
Definition: MapParameter.h:214
int x
Definition: Geometry.h:1152
void start()
Definition: MapDownloader.cpp:54
ingroup Description
Definition: DescriptionService.h:218
static const std::string LABEL_KEY_WAY_ACCESS_CAR
Definition: DescriptionService.h:252
bool operator==(const MagnificationLevel &other) const
Definition: Magnification.h:78
std::string GetDescription(const std::string &languageCode) const
Returns the description for the given language code.
Definition: TypeConfig.cpp:276
bool ResolveAdminRegionHierachie(const AdminRegionRef &adminRegion, std::map< FileOffset, AdminRegionRef > &refs) const
Resolve all parent regions of the given region (walk the region tree up to the root)Use AdminRegion::...
Definition: LocationService.cpp:565
OptimizeWaysLowZoom()
Definition: OptimizeWaysLowZoom.cpp:38
const SymbolRef & GetSymbol() const
Definition: Styles.h:1271
@ carBackward
Definition: AccessFeature.h:39
Type
Definition: LabelLayouter.h:59
int context
Definition: utf8helper.h:73
void ReadOptimized(const TypeConfig &typeConfig, FileScanner &scanner)
Read the data from the given FileScanner.
Definition: Way.cpp:101
void Debug(const std::string &text) override
Definition: Progress.cpp:160
BrandFeature()
Definition: BrandFeature.cpp:58
@ ProgressRole
Definition: MapDownloadsModel.h:63
bool touch(const QTouchEvent &event) override
Definition: InputHandler.cpp:501
NameDescription(const std::string &name)
Definition: RouteDescription.cpp:103
CirclePrimitive(const Vertex2D ¢er, double radius, const FillStyleRef &fillStyle, const BorderStyleRef &borderStyle)
Definition: Styles.cpp:1496
virtual void AfterDrawing(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, const MapData &data)
Definition: MapPainter.cpp:292
void AddAreaBorderSymbolStyle(const StyleFilter &filter, PathSymbolPartialStyle &style)
Definition: StyleConfig.cpp:1042
void WriteImport(const TypeConfig &typeConfig, FileWriter &writer) const
Write the area with all data required during import, certain optimizations done on the final data are...
Definition: Area.cpp:468
Base class for all navigation messages.
Definition: Engine.h:48
static const size_t NAME_LABEL_INDEX
Index of the 'name' label.
Definition: NetworkFeature.h:80
QRectF dimensions
Definition: IconLookup.h:45
void locationChanged(osmscout::GeoCoord coord, bool horizontalAccuracyValid, double horizontalAccuracy)
Definition: NavigationModule.cpp:344
IconStyle()
Definition: Styles.cpp:1561
void AddPoint(Point *point)
bool IsAreaSubOfAreaQuorum(const std::vector< N > &a, const std::vector< M > &b)
Definition: Geometry.h:640
const TileWayData & GetWayData() const
Return a read-only reference to the way data.
Definition: DataTileCache.h:326
static OSMTileId GetOSMTile(const Magnification &magnification, const GeoCoord &coord)
Definition: Tiling.cpp:69
OSMTileId(uint32_t x, uint32_t y)
Definition: Tiling.cpp:28
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: DestinationFeature.cpp:79
Definition: DBFileOffset.h:92
TagId GetTagId(const char *name) const
Definition: Tag.cpp:264
EleFeatureValue & operator=(const FeatureValue &other) override
Definition: EleFeature.cpp:38
bool isLoading()
Definition: AvailableVoicesModel.h:105
void providerChanged(const OnlineTileProvider &provider)
bool animationInProgress() override
Definition: InputHandler.cpp:672
void Advance()
Definition: Geometry.h:1518
double Value(const class Distance &d) const override
Definition: Distance.h:213
bool AddTileDataToMapData(QString dbPath, const QList< osmscout::TileRef > &tiles, osmscout::MapData &data)
Add tile data to map data.
Definition: DBLoadJob.cpp:181
Attribute
Definition: Styles.h:903
typename Cache< FileOffset, ValueType >::CacheEntry ValueCacheEntry
Definition: DataFile.h:80
std::string GetOptionHint() const override
Definition: CmdLineParsing.cpp:185
void SetUseLowZoomOptimization(bool useLowZoomOptimization)
Definition: MapService.cpp:39
int column
Definition: map/include/osmscoutmap/oss/Parser.h:67
size_t GetWidth() const
Returns the width of the screen.
Definition: Projection.h:212
QDir getDir() const
Definition: Voice.h:131
Definition: Triangulate.h:33
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:641
const character charmap_us7ascii[]
Definition: utf8helper_charmap.cpp:33
double contourLabelPadding
Definition: LabelLayouter.h:284
static void DropEqualPoints(TransBuffer &buffer)
Definition: Transformation.cpp:514
bool IsValid() const
Definition: InputHandler.h:221
const FeatureValueBuffer & GetFeatureValueBuffer() const
Definition: Area.h:277
void Draw()
Definition: OpenGLMapData.h:397
static void DropSimilarPoints(TransBuffer &buffer, double optimizeErrorTolerance)
Definition: Transformation.cpp:361
FeatureValueBuffer()=default
QString getType() const
Definition: RouteStep.h:122
void SetType(StopType stopType)
Definition: PublicTransport.cpp:25
Distance operator-(const GeoCoord &other) const
Definition: GeoCoord.h:294
void TYPEKINDS(unsigned char &types)
Definition: src/osmscout/ost/Parser.cpp:402
std::string GetName() const override
Returns the name of the feature.
Definition: OperatorFeature.cpp:66
~ScopeCacheCleaner()
Definition: LocationIndex.h:68
bool owns_lock() const noexcept
Definition: ReadWriteLock.h:213
std::string GetLabel(const Locale &, size_t) const override
Definition: OpeningHoursFeature.h:55
static const char *const NAME
Name of this feature.
Definition: ColorFeature.h:75
static const char *const COORD_DAT
Definition: CoordDataFile.h:36
std::string GetName() const override
Returns the name of the feature.
Definition: ClockwiseDirectionFeature.cpp:31
void SetMagnification(double magnification)
Set magnification.
Definition: Magnification.cpp:45
void IMPORT()
Definition: src/osmscout/ost/Parser.cpp:208
Definition: RoutingProfile.h:70
const FeatureValueBuffer * buffer
Features of the line segment.
Definition: MapPainter.h:114
TextStyle & SetScaleAndFadeMag(const Magnification &mag)
Definition: Styles.cpp:949
static const char *const FILENAME_INTERSECTIONS_IDX
Relative filename of the intersection index file.
Definition: RoutingService.h:395
void WAYPATHSYMBOLSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1456
void UDOUBLE(double &value)
Definition: map/src/osmscoutmap/oss/Parser.cpp:574
double width
Definition: Geometry.h:1469
std::list< WayRef > poiWays
List of manually added ways (not managed or changed by the db)
Definition: MapData.h:54
double y
Coordinate of the left, top edge of the text / icon / symbol.
Definition: LabelLayouter.h:153
WriteLock(WriteLock &&wl) noexcept
Definition: ReadWriteLock.h:206
bool zoom(double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) override
Definition: InputHandler.cpp:646
InstalledMapsModel()
Definition: InstalledMapsModel.cpp:28
std::function< void(T const &)> DoneCallback
Definition: CancelableFuture.h:43
const Distance targetDistance
Definition: RouteStateAgent.h:52
Line & operator<<(const StopClock &value)
Definition: Logger.h:209
std::string GetName() const override
Returns the name of the feature.
Definition: ConstructionYearFeature.cpp:73
int pos
Definition: include/osmscout/ost/Scanner.h:49
TypeConfigRef GetTypeConfig() const
Definition: StyleConfig.cpp:931
QString getFilePath() const
Definition: FileDownloader.h:103
int EdgeIndex(const Point *p1, const Point *p2)
void TYPE()
Definition: src/osmscout/ost/Parser.cpp:347
double GetDisplayWidth() const
Definition: Styles.h:168
StyleConstantColor(const Color &color)
Definition: StyleConfig.cpp:76
std::string GetFilename() const
Definition: AreaIndex.h:103
Definition: MaxStayFeature.h:30
RouteEntry(DatabaseId database, Id currentNodeId, size_t currentNodeIndex, const ObjectFileRef &pathObject, size_t targetNodeIndex)
Definition: RouteData.cpp:24
std::string GetFirstInStringList(const std::string &stringList, const std::string ÷r)
Definition: String.cpp:365
AccessFeatureValue & operator=(const FeatureValue &other) override
Definition: AccessFeature.cpp:34
std::string GetName() const
Definition: RouteDescription.cpp:451
~DownloadJob() override
Definition: FileDownloader.cpp:304
FillStyleRef GetCoastFillStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1486
Log & Error(bool state)
Definition: Logger.h:414
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: NameAltFeature.cpp:29
double getLongitude() const
Definition: client-qt/include/osmscoutclientqt/SunriseSunset.h:73
uint8_t GetAccess() const
Definition: AccessFeature.h:62
TypeInfo & SetNodeId(TypeId id)
Set the id of this type.
Definition: TypeConfig.cpp:83
double angleNegCos
Definition: MercatorProjection.h:48
bool operator==(const FeatureValue &other) const override
Definition: WidthFeature.cpp:47
TypeInfoRef operator->() const
Definition: TypeInfoSet.h:95
TileIdBoxConstIterator end() const
Definition: TileId.h:318
@ RoundaboutClockwiseRole
Definition: RouteStep.h:69
void SetMaxSize(size_t maxSize)
Set a new cache max size, possible striping the oldest entries from cache if the new size is smaller ...
Definition: Cache.h:244
bool IsVisible() const
Definition: Styles.h:751
void DrawContourSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const ContourSymbolData &data) override
Draw the given Symbol on top of the contour of the given path.
Definition: MapPainterSVG.cpp:697
void Set(const GeoCoord &coordA, const GeoCoord &coordB)
Assign a new rectangular area bases an two coordinates defining the bounds.
Definition: GeoBox.cpp:39
std::list< PathShieldStyleSelector > PathShieldStyleSelectorList
Definition: StyleConfig.h:520
double GetCosts(const Way &way, const Distance &distance) const override
Estimated cost for specific way with given distance.
Definition: RoutingProfile.h:508
std::shared_ptr< WayDataFile > WayDataFileRef
Definition: WayDataFile.h:52
Point * point
Definition: advancing_front.h:43
double GetNanoseconds() const
Definition: StopClock.cpp:109
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: LanesFeature.cpp:141
double GetDisplayOffset() const
Definition: Styles.h:439
void SetLineMinWidthPixel(double lineMinWidthPixel)
Definition: MapParameter.cpp:90
Log log
Definition: map/include/osmscoutmap/oss/Parser.h:74
const GeoCoord & GetCoord() const
Definition: Point.h:93
Roles
Definition: OnlineTileProviderModel.h:97
void AddAreaFillStyle(const StyleFilter &filter, FillPartialStyle &style)
Definition: StyleConfig.cpp:1002
Exit(* run)(Parser *, byte)
Definition: utf8helper.h:72
Definition: RouteNode.h:86
FeatureValue * GetFeatureValue(size_t idx) const
Definition: Way.h:98
void GotoBegin()
Moves the reading cursor to the start of the file (offset 0)
Definition: FileScanner.cpp:333
std::string GetDisplayText() const
Return a string representation of the coordinate value in a human readable format.
Definition: GeoBox.cpp:129
StyleConfig(const TypeConfigRef &typeConfig)
Definition: StyleConfig.cpp:302
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: IsInFeature.cpp:79
uint8_t objectIndex
The index of the way to use from this route node to the target route node.
Definition: RouteNode.h:101
CmdLineParseResult Parse(CmdLineScanner &scanner) override
Definition: CmdLineParsing.cpp:232
void laneUpdate(osmscout::LaneAgent::Lane lane)
Definition: MapPainterSVG.h:65
void removeAllOverlayObjects()
Definition: MapRenderer.cpp:196
void SetFeatures(const FeatureValueBuffer &buffer)
Definition: Route.h:163
void DrawCircle(double x, double y, double radius) override
Definition: SymbolRendererQt.cpp:113
std::input_iterator_tag iterator_category
Definition: TypeInfoSet.h:39
TypeInfoRef typeInfoOSMSubTileBorder
Internal type for OSM tile borders.
Definition: TypeConfig.h:1122
static unsigned int f(const char *buffer, N &number)
Definition: Number.h:271
bool IsOnewayBackward() const
Definition: AccessFeature.h:205
std::vector< ContourLabelType > allSortedContourLabels
Definition: LabelLayouter.h:287
static const Color GREEN
Definition: Color.h:45
const Color & GetEmphasizeColor() const
Definition: Styles.h:590
Layout job initializes separate canvases for icons/symbols, labels and overlay labels.
Definition: LabelLayouter.h:278
double height
Definition: MapPainterCairo.h:72
static const std::string LABEL_KEY_NAME_NAME_SHORT
Definition: DescriptionService.h:158
Definition: CmdLineParsing.h:148
TypeInfoSetConstIterator begin() const
Definition: TypeInfoSet.h:180
DatabaseId GetDatabaseId() const
Definition: RouteData.h:67
TypeId ReadTypeId(uint8_t maxBytes)
Definition: FileScanner.cpp:2527
cairo_scaled_font_t * CairoFont
Definition: MapPainterCairo.h:61
QmlRoutingProfile & operator=(const QmlRoutingProfile &other)
Definition: QmlRoutingProfile.cpp:44
bool IsEqual(const Point &other) const
Same semantics as IsSame(), implement for template compatibility with GeoCoord.
Definition: Point.h:145
static const char *const TEXT_OTHER_DAT
Definition: TextSearchIndex.h:44
double dpi
Screen DPI.
Definition: Projection.h:51
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: WidthFeature.cpp:56
ScopeCacheCleaner(std::shared_ptr< LocationIndex > index)
Definition: LocationIndex.h:59
StartDescription(const std::string &description)
Definition: RouteDescription.cpp:71
std::string GetName() const override
Returns the name of the feature.
Definition: NetworkFeature.cpp:66
@ PlaneRendering
Definition: OSMScoutQt.h:201
LocationWayDescriptionRef GetWayDescription() const
Return the location in relation to a close way.
Definition: LocationDescriptionService.cpp:154
LocationAtPlaceDescription(const Place &place)
Definition: LocationDescriptionService.cpp:50
std::string GetHelp(size_t indent=2) const
Definition: CmdLineParsing.cpp:498
void Process(const FeatureValueBuffer &buffer, ObjectDescription &description) override
Definition: DescriptionService.cpp:210
std::shared_ptr< BorderStyle > BorderStyleRef
Definition: Styles.h:464
bool debugPerformance
Definition: AbstractRoutingService.h:195
bool GetAdminRegionOnlyMatch() const
Definition: LocationService.cpp:388
void ProcessData(const osmscout::MapData &data, const osmscout::Projection &loadProjection, const osmscout::StyleConfigRef &styleConfig)
Processes all OSM data, and converts to the format required by the OpenGL pipeline.
Definition: MapPainterOpenGL.cpp:133
void SetType(const TypeInfoRef &type)
Definition: TypeConfig.cpp:424
void DrawPolygon(const std::vector< Vertex2D > &polygonPixels) override
Definition: SymbolRendererCairo.cpp:50
VoiceManager()
Definition: VoiceManager.cpp:89
void locationAdminRegions(const osmscout::GeoCoord location, QList< AdminRegionInfoRef > adminRegionList)
@ attrTextColor
Definition: Styles.h:647
void SetFontSize(double fontSize)
Definition: QmlSettings.cpp:123
static StyleDescriptorRef GetDescriptor()
Definition: Styles.cpp:311
void TYPEOPTION(TypeInfo &typeInfo)
Definition: src/osmscout/ost/Parser.cpp:765
virtual bool HasIcon(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, IconStyle &style)=0
Return true, if the icon in the IconStyle is available and can be drawn.
void AddNewElement(GLuint element)
Definition: OpenGLMapData.h:275
Definition: Distance.h:203
void locationChanged(bool locationValid, double lat, double lon, bool horizontalAccuracyValid, double horizontalAccuracy)
Definition: NavigationModel.cpp:131
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: NameAltFeature.cpp:72
@ DrawOSMTileGrids
If special style exists, renders grid corresponding to OSM tiles.
Definition: MapPainter.h:78
std::string GetNetwork() const
Definition: PublicTransport.h:233
void Close()
Definition: RoutingDB.cpp:55
std::string GetPhone() const
Definition: PhoneFeature.h:49
void SetContourLabelPadding(double padding)
Definition: MapParameter.cpp:189
virtual void AfterNode(const RouteDescription::Node &node)
Called after all possible callback methods for a node are called.
Definition: RouteDescriptionPostprocessor.cpp:117
const QList< osmscout::ObjectFileRef > & getReferences() const
Definition: LocationEntry.cpp:235
QString serverDirectory
Definition: AvailableMapsModel.h:127
const character charmap_ca[]
Definition: utf8helper_charmap.cpp:700
const FeatureValueBuffer * buffer
Features of the line segment. Not owned pointer.
Definition: MapPainter.h:165
std::string GetValue() const
Definition: DescriptionService.h:93
void SetNameAlt(const std::string_view &nameAlt)
Definition: NameAltFeature.h:45
@ emphasize
Definition: Styles.h:511
static MagnificationLevel magContinent
Definition: Magnification.h:146
size_t GetValueSize() const override
A feature, if set for an object, can hold a value.
Definition: WebsiteFeature.cpp:77
bool GetRouteNodes(IteratorIn begin, IteratorIn end, size_t size, std::unordered_map< Id, RouteNodeRef > &routeNodeMap)
Definition: RoutingDB.h:65
void flagSet(QString key, bool value)
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: AdminLevelFeature.cpp:85
bool PostprocessRouteDescription(RouteDescription &description, const std::vector< RoutingProfileRef > &profiles, const std::vector< DatabaseRef > &databases, const std::list< PostprocessorRef > &processors, const std::set< std::string, std::less<>> &motorwayTypeNames=std::set< std::string, std::less<>>(), const std::set< std::string, std::less<>> &motorwayLinkTypeNames=std::set< std::string, std::less<>>(), const std::set< std::string, std::less<>> &junctionTypeNames=std::set< std::string, std::less<>>(), const std::string &miniRoundaboutTypeName="highway_mini_roundabout")
Definition: RoutePostprocessor.cpp:2562
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: AdminLevelFeature.cpp:70
void SetCoords(const GeoCoord &coords)
Definition: Node.cpp:29
std::shared_ptr< LabelProviderFactory > LabelProviderFactoryRef
Definition: LabelProvider.h:74
double GetMeterInPixel() const
Returns the number of on screen pixel for one meter on the ground.
Definition: Projection.h:271
TypeInfo & SetRouteMaster()
An object is handled as route master.
Definition: TypeConfig.h:588
static const char *const MOTORWAY_JUNCTION_DESC
Constant for a description of node describing a motorway junction.
Definition: RouteDescription.h:82
bool GetWays(const GeoBox &boundingBox, const Magnification &magnification, const TypeInfoSet &wayTypes, std::vector< WayRef > &ways, TypeInfoSet &loadedWayTypes) const
Definition: OptimizeWaysLowZoom.cpp:266
Util class that cleanup location index cache when instance is destructed.
Definition: LocationIndex.h:56
Definition: LabelLayouter.h:146
bool StoreToDataFile(const std::string &directory) const
Store the part of the TypeConfig information to a data file, which is necessary to review later on wh...
Definition: TypeConfig.cpp:1352
LineStyle & SetSlot(const std::string &slot)
Definition: Styles.cpp:212
static bool SearchForLocationForRegion(LocationIndexRef &locationIndex, const SearchParameter ¶meter, const std::list< std::string > &locationTokens, const AdminRegionSearchVisitor::Result ®ionMatch, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult &result, BreakerRef &breaker)
Definition: LocationService.cpp:1368
Q_INVOKABLE double distanceTo(double lat, double lon) const
Definition: LocationEntry.cpp:166
bool IsClockwise() const
Definition: RouteDescription.h:347
std::string GetNetwork() const
Definition: PublicTransport.h:157
SpecialType
Definition: TypeConfig.h:79
Definition: StyleDescription.h:140
void setupFeatures(const osmscout::TypeInfoRef &type, osmscout::FeatureValueBuffer &features) const
Definition: OverlayObject.cpp:166
WayRef GetWay() const
Definition: AbstractRoutingService.h:180
FeatureValueReader< RefFeature, RefFeatureValue > RefFeatureValueReader
Definition: RefFeature.h:98
std::optional< Bearing > getBearing() const
Definition: VehiclePosition.h:93
void SetPos(int value)
Definition: src/osmscout/ost/Scanner.cpp:140
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: PhoneFeature.cpp:75
std::vector< RegionAlias > aliases
The list of alias for this region.
Definition: Location.h:80
const character * pagemap_32_f0_9e[]
Definition: utf8helper_charmap.cpp:2679
bool FiltersByType() const
Definition: StyleConfig.h:268
int GetResultLimit() const
Definition: NearPOIModel.h:191
MapDownloadJob(QNetworkAccessManager *webCtrl, AvailableMapsModelMap map, QDir target, bool replaceExisting)
Definition: MapDownloader.cpp:35
bool operator<(const Magnification &other) const
Definition: Magnification.h:212
bool operator<(const GeoCoord &other) const
Definition: GeoCoord.h:284
std::shared_ptr< LabelType > LabelPtr
Definition: LabelLayouter.h:235
void SearchingChanged(bool)
IconStyle & SetWidth(unsigned int w)
Definition: Styles.cpp:1643
Position calculatePositions(const Projection &projection, const MapParameter ¶meter, const PathLabelData &labelData, double pathLength, double labelWidth) const
Definition: LabelLayouter.cpp:23
void Close()
Definition: Database.cpp:227
Definition: LaneAgent.h:62
Definition: include/osmscout/ost/Scanner.h:138
void onLoadJobFinished(QMap< QString, QMap< osmscout::TileKey, osmscout::TileRef >>)
Definition: PlaneMapRenderer.cpp:472
Symbol::ProjectionMode GetProjectionMode() const
Definition: Styles.h:1150
static Parser::Exit _p1_u2(Parser *p, byte bb)
1 byte: RFC 3629:#4: Valid UTF-8 matches the following syntax 00-7F
Definition: utf8helper.cpp:358
double GetAlpha() const override
Definition: Styles.h:565
void SetAreaAreaIndexCacheSize(unsigned long areaAreaIndexCacheSize)
Definition: Database.cpp:33
FillStyleRef landFill
Fallback styles in case they are missing for the style sheet.
Definition: MapPainter.h:223
bool limitReached
Definition: Location.h:234
const std::array< CellDimension, CELL_DIMENSION_COUNT > cellDimension
Definition: Geometry.cpp:829
std::list< Triangle * > GetMap()
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: FeeFeature.cpp:26
double GetVehicleMaxSpeed() const
Definition: RoutingProfile.h:250
uint8_t BitsNeededToEncodeNumber(N number)
Definition: Number.h:341
void viewObjectsLoaded(const MapViewStruct &, const QList< LookupModule::ObjectInfo > &objects)
virtual bool SetInternal(const GeoBox &boundingBox, const Magnification &magnification, double dpi, size_t width, size_t height)
Definition: TileProjection.cpp:39
Definition: PublicTransport.h:44
double distanceTo
Definition: RouteStep.h:50
void SetWaysDataMMap(bool mmap)
Definition: Database.cpp:73
size_t priority
Priority of the entry.
Definition: LabelLayouter.h:67
bool Remove(size_t pos, size_t n=1)
Remove n character from the position pos.
Definition: utf8helper.cpp:160
void dbInitialized(const osmscout::GeoBox &)
Definition: LocationInfoModel.cpp:92
NodeRef GetNode() const
Definition: Database.h:162
Vertex2D operator*(const Vertex2D &a, double scale)
Definition: Pixel.cpp:49
NearPOIModel()
Definition: NearPOIModel.cpp:26
Distance & operator*=(double d)
Definition: Distance.h:87
GeoCoord GetClosestPoint() const
Definition: Database.h:213
@ ProgressDescriptionRole
Definition: MapDownloadsModel.h:64
static void DropRedundantPointsDouglasPeuckerWay(TransBuffer &buffer, double optimizeErrorTolerance)
Definition: Transformation.cpp:480
Type type
Definition: include/osmscout/ost/Parser.h:51
bool HasFeature(size_t idx) const
Return true, if the given feature is set (available), else false.
Definition: TypeConfig.h:815
void SetVehicleMaxSpeed(double maxSpeed)
Definition: RoutingProfile.cpp:63
virtual const AccessFeatureValueReader & GetAccessReader(const DatabaseId &dbId) const =0
static const std::string LABEL_KEY_ID_ID
Definition: DescriptionService.h:418
const Style & GetStyle() const
Definition: Styles.h:595
bool operator==(const FeatureValue &other) const override
Definition: OpeningHoursFeature.cpp:45
QString iconDirectory
Definition: MapRenderer.h:106
void RequestIcon(const MapViewStruct &view, const QPoint &coord, const std::map< int, OverlayObjectRef > &overlayObjects)
Definition: IconLookup.cpp:316
static const std::string SECTION_NAME_GEOMETRY
Definition: DescriptionService.h:175
std::string GetOptionHint() const override
Definition: CmdLineParsing.cpp:251
~MapPainterQt() override
Definition: MapPainterQt.cpp:55
RoutePointsResult TransformRouteDataToPoints(const RouteData &data)
Definition: MultiDBRoutingService.cpp:556
bool InScanArea(Point &pa, Point &pb, Point &pc, Point &pd)
Definition: utils.h:103
TypeInfoRef GetTypeInfo(size_t index) const
Returns the type definition for the given type id.
Definition: TypeConfig.h:1265
void SetAdminLevel(uint8_t adminLevel)
Definition: AdminLevelFeature.h:47
static bool f(const std::string &string, N &number, size_t base=10)
Definition: String.h:278
virtual RouteDescription::DestinationDescriptionRef GetDestination(const RouteDescription::Node &node) const =0
static const char *const NAME_LABEL
Name of the "name" label.
Definition: NameFeature.h:74
Downloads a file specified by URL.
Definition: FileDownloader.h:57
const Color & GetBorderColor() const
Definition: Styles.h:786
double GetSize() const
Definition: Styles.h:493
std::string UnitStr() const override
Definition: Distance.h:342
void SetFrom(Id from)
Definition: TurnRestriction.h:69
std::string GetLabel(const Locale &, size_t) const override
Definition: ConstructionYearFeature.h:66
size_t operator()(const osmscout::ScanCell &cell) const
Definition: Geometry.h:1545
bool GetOneway() const
Definition: StyleConfig.h:298
std::string altName
Definition: Location.h:78
QString type
Definition: LookupModule.h:75
void LookupTiles(const Magnification &magnification, const GeoBox &boundingBox, std::list< TileRef > &tiles) const
Return all tiles with the given covering the region given by the boundingBox.
Definition: MapService.cpp:835
static const char *const LANES_DESC
Constant for a description of route lanes (LaneDescription)
Definition: RouteDescription.h:92
static const std::string LABEL_KEY_WAY_LANES_DESTINATIONFORWARD
Definition: DescriptionService.h:242
std::vector< ObjectData > objects
List of objects (ways, areas) that cross this route node.
Definition: RouteNode.h:138
void TriggerInitialRendering()
void AddNode(DatabaseId database, size_t currentNodeIndex, const std::vector< ObjectFileRef > &objects, const ObjectFileRef &pathObject, size_t targetNodeIndex)
Definition: RouteDescription.cpp:602
void AREABORDERSYMSTYLE(BorderPartialStyle &borderStyle)
Definition: map/src/osmscoutmap/oss/Parser.cpp:532
void Read(ObjectFileRef &ref)
Definition: FileScanner.cpp:2584
void onLoadJobFinished(QMap< QString, QMap< osmscout::TileKey, osmscout::TileRef >> tiles)
Definition: LookupModule.cpp:282
bool GetRenderBackground() const
Definition: MapParameter.h:359
Definition: GradeFeature.h:30
BreakerRef GetBreaker() const
Definition: LocationService.cpp:323
Q_INVOKABLE QObject * get(int row) const
Definition: RoutingModel.cpp:217
PathShieldStyle & SetTextColor(const Color &color)
Definition: Styles.cpp:1225
void SetDecimalSeparator(const std::string &separator)
Definition: Locale.h:80
virtual ~AvailableVoicesModel()
Definition: AvailableVoicesModel.cpp:59
FeatureValue * AllocateValue(void *buffer) override
Definition: AccessRestrictedFeature.cpp:77
Definition: RefFeature.h:30
static void AddLocationResult(const SearchParameter ¶meter, LocationSearchResult::MatchQuality regionMatchQuality, LocationSearchResult::MatchQuality postalAreaMatchQuality, const LocationSearchVisitor::Result &locationMatch, LocationSearchResult::MatchQuality locationMatchQuality, LocationSearchResult &result)
Definition: LocationService.cpp:1236
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: NearPOIModel.cpp:58
OSMScoutQtBuilder & WithCustomPoiTypes(const QStringList &customPoiTypes)
Definition: OSMScoutQt.h:137
void lock()
Definition: ReadWriteLock.cpp:123
FeatureRef GetFeature() const
Return the feature itself.
Definition: TypeFeature.h:248
double minSpeed
Definition: RoutingProfile.h:201
void STYLESECTION()
Definition: map/src/osmscoutmap/oss/Parser.cpp:248
std::set< A > attributes
Definition: StyleConfig.h:474
#define INVALID_COORD
Definition: NearPOIModel.h:37
virtual ~BasemapDatabase()
Definition: BasemapDatabase.cpp:44
void COORD(Vertex2D &coord)
Definition: map/src/osmscoutmap/oss/Parser.cpp:564
static const char *const NAME_LABEL
Name of the "name" label.
Definition: AddressFeature.h:85
static const std::string LABEL_KEY_WAY_ACCESS_ONEWAY
Definition: DescriptionService.h:249
bool HasNodeTextStyles(const TypeInfoRef &type, const Magnification &magnification) const
Methods for retrieval of styles for a given object.
Definition: StyleConfig.cpp:1155
void SetModel()
Definition: OpenGLMapData.h:336
Vertex2D position
glyph baseline position
Definition: LabelLayouter.h:106
void onUpdateNext(RouteStep nextRouteInstruction)
Definition: NavigationModel.cpp:153
CacheEntry(const K &key, const V &value)
Definition: Cache.h:75
cairo_user_data_key_t imageDataKey
Definition: LoaderPNG.cpp:29
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: ConstructionYearFeature.cpp:78
~Scanner()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:162
@ WARN
Definition: Logger.h:55
int16_t ReadInt16Number()
Definition: FileScanner.cpp:1765
Definition: advancing_front.h:62
Definition: MapPainterCairo.h:48
SimpleRoutingService(const DatabaseRef &database, const RouterParameter ¶meter, const std::string &filenamebase)
Create a new instance of the routing service.
Definition: SimpleRoutingService.cpp:49
static const char *const NAME
Name of this feature.
Definition: WidthFeature.h:68
const glm::mat4 & GetView() const
Definition: OpenGLMapData.h:389
virtual ~AreaAreaIndex()
Definition: AreaAreaIndex.cpp:40
double DistanceToSegment(double px, double py, double p1x, double p1y, double p2x, double p2y, double &r, double &qx, double &qy)
return the minimum distance from the point p to the line segment [p1,p2] this could be the distance f...
Definition: Geometry.cpp:467
@ refNone
Definition: ObjectRef.h:140
Definition: include/osmscout/ost/Scanner.h:45
Definition: RouteNode.h:75
LabelStyleRef style
Style for drawing.
Definition: LabelLayouter.h:73
MapProvider getProvider() const
Definition: AvailableMapsModel.cpp:39
void setPattern(const QString &pattern)
Definition: SearchLocationModel.cpp:316
virtual QHash< int, QByteArray > roleNames() const
Definition: OnlineTileProviderModel.cpp:39
void DrawContourSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const ContourSymbolData &data) override
Draw the given Symbol on top of the contour of the given path.
Definition: MapPainterNoOp.cpp:113
Line & operator<<(unsigned long value)
Definition: Logger.h:184
bool HasSubsection() const
Definition: DescriptionService.h:73
VoiceInstructionAgent(DistanceUnitSystem units)
Definition: VoiceInstructionAgent.h:190
bool GetIndexAsRegion() const
Definition: TypeConfig.h:529
StyleBoolAttributeDescriptor(const std::string &name, int attribute)
Definition: StyleDescription.h:160
Starts a background thread that checks every 200ms the current memory usage of the current process an...
Definition: MemoryMonitor.h:42
RouteDescriptionResult TransformRouteDataToRouteDescription(const RouteData &data)
Transform the route into a RouteDescription.
Definition: AbstractRoutingService.cpp:1748
Definition: Location.h:120
POIService(const DatabaseRef &database)
Definition: POIService.cpp:29
Definition: LoggerImpl.h:84
@ attrDashes
Definition: Styles.h:94
static const uint8_t usableByCar
This path can be traveled by car.
Definition: RouteNode.h:66
Definition: RoutePostprocessor.h:230
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: DestinationFeature.cpp:62
void SYMBOLSECTION()
Definition: map/src/osmscoutmap/oss/Parser.cpp:218
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: BearingAgent.cpp:35
@ DumpStatistics
Prints details for debugging, if debug flag (performance, data) is set in renderer parameter.
Definition: MapPainter.h:68
Definition: ElevationService.h:41
static const char *const DISTRIBUTION_DAT
Definition: TypeDistributionDataFile.h:41
std::string GetDebugString() const override
Definition: RouteDescription.cpp:414
QString getLabel() const
Definition: LocationEntry.cpp:203
Definition: Styles.h:1216
@ Prerender
Implementation specific preparation.
Definition: MapPainter.h:75
Line & operator<<(long long value)
Definition: Logger.h:191
size_t to
exclusive
Definition: Geometry.h:1192
A specialisation of worker that consumes events from a queue.
Definition: Worker.h:159
bool Evaluate(const TagMap &tagMap) const override
Definition: Tag.h:83
Abstract base class of all renders (though you can always write your own renderer without inheriting ...
Definition: MapPainter.h:102
void CloseFailsafe()
Closes the file.
Definition: FileScanner.cpp:287
StringMatcherCI(const std::string &pattern)
Definition: StringMatcher.cpp:28
SRTMDataRef srtmTile
Optional data with height information.
Definition: MapData.h:57
Vertex2D Get(size_t index) const
Return the element with the given index.
Definition: Transformation.h:445
static void AddRegionResult(const SearchParameter ¶meter, LocationSearchResult::MatchQuality regionMatchQuality, const AdminRegionSearchVisitor::Result ®ionMatch, LocationSearchResult &result)
Definition: LocationService.cpp:1158
bool IsOneway() const
Definition: AccessFeature.h:195
Definition: OptimizeWaysLowZoom.h:39
TurnRestriction(Type type, OSMId from, OSMId via, OSMId to)
Definition: TurnRestriction.h:52
bool StringToBool(const char *string, bool &value)
Definition: String.cpp:50
std::shared_ptr< TargetDescription > TargetDescriptionRef
Definition: RouteDescription.h:149
static std::set< GeoCoord > GetGridPoints(const std::vector< Point > &nodes, double gridSizeHoriz, double gridSizeVert)
Definition: MapPainter.cpp:44
Definition: CmdLineParsing.h:38
VoiceDownloadJob(QNetworkAccessManager *webCtrl, const AvailableVoice &voice, const QDir &target, bool replaceExisting)
Definition: VoiceManager.cpp:34
void UINT(size_t &value)
Definition: map/src/osmscoutmap/oss/Parser.cpp:905
bool IsAtPlace() const
Definition: LocationDescriptionService.h:103
@ leftOutline
left side of the way
bool ParseISO8601TimeString(const std::string &timeStr, Timestamp ×tamp)
Parse time string in ISO 8601 format "2017-11-26T13:46:12.124Z" (UTC timezone) to Timestamp (std::chr...
Definition: String.cpp:672
TileKey(const Magnification &magnification, const TileId &id)
Definition: TileId.cpp:139
void setFlagRequest(QString key, bool value)
OptimizeWaysLowZoomRef GetOptimizeWaysLowZoom() const
Definition: Database.cpp:668
void Close()
Definition: MultiDBRoutingService.cpp:97
double ConvertWidthToPixel(double width) const
Convert a width in mm into the equivalent pixel size based on the given DPI.
Definition: Projection.h:292
bool availableMapsModelItemLessThan(const AvailableMapsModelItem *i1, const AvailableMapsModelItem *i2)
Definition: AvailableMapsModel.cpp:135
codepoint TransformTransliterate(const character *, int)
Definition: utf8helper.cpp:81
static const char *const NAME_LABEL
Name of the "name" label.
Definition: NameAltFeature.h:74
const Color & GetTextColor() const
Definition: Styles.h:867
virtual size_t GetSize(const V &value) const =0
static const char *const WATER_IDX
Definition: WaterIndex.h:44
double GetAngle() const
Definition: InputHandler.h:216
bool IsDebugData() const
Definition: MapParameter.h:389
std::shared_ptr< POI > POIRef
Definition: Location.h:128
void Read(FileScanner &scanner, std::array< bool, FlagCnt > &specialFlags)
Reads the FeatureValueBuffer to the given FileScanner.
Definition: TypeConfig.h:932
int GetPriority() const
Definition: Styles.h:208
void onLaneUpdate(osmscout::LaneAgent::Lane lane)
Definition: NavigationModel.cpp:215
static void DumpGroundTile(const GroundTile &tile)
Definition: MapPainter.cpp:2020
static const std::string LABEL_KEY_GEOMETRY_CENTER
Definition: DescriptionService.h:179
void Triangulate()
Triangulate - do this AFTER you've added the polyline, holes, and Steiner points.
@ Symbol
Definition: include/osmscout/ost/Parser.h:44
void Close()
Definition: WaterIndex.cpp:101
void regionLookupRequested(osmscout::GeoCoord)
TypeInfoSet & operator=(const TypeInfoSet &other)
Definition: TypeInfoSet.h:125
Definition: Distance.h:192
FileOffset addressesOffset
Offset to the list of addresses.
Definition: Location.h:156
IconStyle & SetHeight(unsigned int h)
Definition: Styles.cpp:1650
Signal & operator=(const Signal &)=delete
bool IsVisible() const
Definition: Styles.h:943
void CIRCLE(Symbol &symbol)
Definition: map/src/osmscoutmap/oss/Parser.cpp:499
bool FindIntersection(const std::vector< N > &way, size_t &i, size_t &j)
Definition: Geometry.h:1396
VehiclePosition & operator=(const VehiclePosition &o)
Definition: VehiclePosition.h:68
uint16_t TypeId
Definition: OSMScoutTypes.h:52
NameDescriptionRef GetOriginDescription() const
Definition: RouteDescription.h:196
void UINT(size_t &value)
Definition: src/osmscout/ost/Parser.cpp:265
bool HasCriteria() const
Definition: StyleConfig.h:334
TypeInfoRef GetType() const
Definition: PublicTransport.h:204
Definition: RoutePostprocessor.h:136
const character charmap_e1_bb[]
Definition: utf8helper_charmap.cpp:1918
std::shared_ptr< PathSymbolStyle > PathSymbolStyleRef
Definition: Styles.h:1322
typename Cache< FileOffset, ValueType >::CacheRef ValueCacheRef
Definition: DataFile.h:81
@ Exception
Definition: map/include/osmscoutmap/oss/Parser.h:61
StyleAttributeDescriptorRef GetAttribute(const std::string &name) const
Definition: StyleDescription.h:486
size_t xRel
X coordinate of cell in relation to cell index of this level.
Definition: GroundTile.h:95
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: PhoneFeature.cpp:26
const char * BoolToString(bool value)
Returns a string representation of the given boolean value (either 'true' or 'false')
Definition: String.cpp:66
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: WidthFeature.cpp:26
@ attrPatternMinMag
Definition: Styles.h:294
bool GetWayAreaType(const TagMap &tagMap, TypeInfoRef &wayType, TypeInfoRef &areaType) const
Return a way/area type (or an invalid reference if no type got detected) based on the given map of ta...
Definition: TypeConfig.cpp:1046
@ AddressRole
Definition: LocationInfoModel.h:70
ConditionalStyle(const StyleFilter &filter, const PartialStyle< S, A > &style)
Definition: StyleConfig.h:454
Q_INVOKABLE Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: InstalledVoicesModel.cpp:168
void widgetResized(const QSizeF &widgetSize) override
Definition: InputHandler.cpp:897
Definition: TypeDistributionDataFile.h:38
bool animationInProgress() override
Definition: InputHandler.cpp:581
std::shared_ptr< CirclePrimitive > CirclePrimitiveRef
Definition: Styles.h:1115
void GenerateDescription(const RouteDescription &description, Callback &callback) const
Evaluate the already postprocessed RouteDescription and call the given callback for node segments whe...
Definition: RouteDescriptionPostprocessor.cpp:135
NameAltFeatureValue(const std::string &nameAlt)
Definition: NameAltFeature.h:39
@ CalculateWayShields
Calculate the label shields on the ways.
Definition: MapPainter.h:71
std::list< std::string > SplitStringAtSpace(const std::string &input)
Definition: String.cpp:264
void clear()
Definition: OverlayObject.cpp:94
bool CanAccessCar() const
Definition: AccessRestrictedFeature.h:107
static bool FromW3CKeywordString(const std::string &colorKeyword, Color &color)
Convert the give color keyword to a color value.
Definition: Color.cpp:162
CmdLineBoolArgParser(SetterFunction &&setter)
Definition: CmdLineParsing.cpp:179
ObjectFileRef GetObject() const
Definition: SimpleRoutingService.h:75
QString website
Definition: LookupModule.h:80
bool CanRouteBicycleForward() const
Definition: AccessFeature.h:169
Definition: ElevationService.h:50
QString name
Definition: LookupModule.h:77
bool Open(const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedData)
Definition: OptimizeWaysLowZoom.cpp:74
void CopyAttributes(const LineStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:316
static const Color DARK_RED
Definition: Color.h:62
static Locale FromStdLocale(std::locale locale)
Creates Locale from provided std::locale.
Definition: Locale.cpp:38
Distance GetDistance() const
Definition: RouteStep.h:142
void DrawLabel(const Projection &projection, const MapParameter ¶meter, const ScreenVectorRectangle &labelRectangle, const LabelData &label, const QTextLayout &textLayout)
Definition: MapPainterQt.cpp:303
void ProcessLabelInstance(const LabelInstanceType ¤tLabel, std::vector< LabelInstanceType > &labelInstances)
Definition: LabelLayouter.h:362
@ sharpLeft
Definition: RouteDescription.h:273
Distance & operator/=(double d)
Definition: Distance.h:93
std::wstring text
Definition: MapPainterAgg.h:55
bool GetNodesDataMMap() const
Definition: Database.cpp:123
void WriteListStart()
Definition: HTMLWriter.cpp:248
Node * tail()
Definition: advancing_front.h:97
OSMScoutQtBuilder & WithStyleSheetDirectory(const QString &styleSheetDirectory)
Definition: OSMScoutQt.h:161
QtRouteData & operator=(const QtRouteData &)
Definition: QtRouteData.cpp:43
const codepoint code
Definition: utf8helper_charmap.h:42
QString getName() const
Definition: AvailableMapsModel.h:74
Distance GetCostLimitDistance() const override
Definition: RoutingProfile.h:257
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: InstalledVoicesModel.cpp:85
BorderStyleRef borderStyle
Border style.
Definition: MapPainter.h:180
void set_head(Node *node)
Definition: advancing_front.h:92
void GetAreaTypesWithMaxMag(const Magnification &maxMag, TypeInfoSet &types) const
Definition: StyleConfig.cpp:1083
@ vehicleFoot
Definition: OSMScoutTypes.h:56
FillStyle areaMarkStyle
Marker fill style for internal debugging.
Definition: MapPainter.h:273
void CopyAttributes(const IconStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:1683
Definition: RouteInstructionAgent.h:41
std::shared_ptr< FillStyle > FillStyleRef
Definition: Styles.h:356
void CopyAttributes(const FillStyle &other, const std::set< Attribute > &attributes)
Definition: Styles.cpp:484
void GroupStringListToStrings(std::list< std::string >::const_iterator token, size_t listSize, size_t parts, std::list< std::list< std::string > > &lists)
Definition: String.cpp:480
OutputConstraint
Definition: Transformation.h:190
bool CanRouteForward() const
Definition: AccessFeature.h:107
v2df cos_pd(v2df x)
Definition: SSEMath.h:237
static const char *const NAME
Name of this feature.
Definition: MaxStayFeature.h:85
bool isDownloaded(const AvailableVoice &voice) const
Definition: VoiceManager.cpp:149
GeoCoord GetBottomLeft() const
south-west corner
Definition: GeoBox.h:266
bool HasPathObject() const
There exists a object/path from the current node to the next node in the route.
Definition: RouteDescription.h:739
std::mutex mutex
Definition: CancelableFuture.h:48
Point(double x, double y)
Construct using coordinates.
Definition: shapes.h:60
void paint(QPainter *painter, const MercatorProjection &projection)
Definition: IconAnimation.cpp:63
const char * EnumToString(const ChargingStationFeatureValue::SocketType &value)
Definition: ChargingStationFeature.cpp:186
std::shared_ptr< ReverseLookupResult > ReverseLookupRef
Definition: LocationDescriptionService.h:370
void SetDoubleArrayValue(int attribute, const std::vector< double > &value) override
Definition: Styles.cpp:619
std::shared_ptr< Description > DescriptionRef
Definition: RouteDescription.h:111
@ IdRole
Definition: OnlineTileProviderModel.h:99
Definition: BearingAgent.h:38
void TAGGREATEREQUALCOND(const std::string &tagName, TagConditionRef &condition)
Definition: src/osmscout/ost/Parser.cpp:699
AddressRef address
Definition: LocationService.h:247
std::string GetDisplayText() const
Definition: Tiling.h:99
bool operator==(const FeatureValue &other) const override
Definition: PostalCodeFeature.cpp:47
bool Intersects(const TypeInfoSet &otherTypes) const
Returns 'true' if at least one type is set in both Sets.
Definition: TypeInfoSet.cpp:126
Color Darken(double factor) const
Definition: Color.h:148
std::string GetCostString(double cost) const override
Textual representation of cost.
Definition: RoutingProfile.h:269
@ Good
Definition: PositionAgent.h:37
void SetDoubleArrayValue(int attribute, const std::vector< double > &value) override
Definition: Styles.cpp:166
NameShortFeatureValue(const std::string &nameShort)
Definition: NameShortFeature.h:38
Point operator*(double s, const Point &a)
Multiply point by scalar.
Definition: shapes.h:245
Bearing GetBearing() const
Definition: LocationDescriptionService.h:98
double GetMinX() const
Definition: ScreenBox.h:82
const std::list< std::string > & GetIconPaths() const
Definition: MapParameter.h:209
uint32_t GetX() const
Definition: Tiling.h:76
void SortInConditionalsBySlot(const TypeConfig &typeConfig, const std::list< ConditionalStyle< S, A > > &conditionals, size_t maxLevel, std::vector< std::vector< std::vector< std::list< StyleSelector< S, A > > > > > &selectors)
Definition: StyleConfig.cpp:577
void setRoute(QObject *route)
Definition: NavigationModel.cpp:226
Q_INVOKABLE QObject * get(int row) const
Definition: SearchLocationModel.cpp:449
Promise & operator=(const Promise &)=default
const character charmap_d6[]
Definition: utf8helper_charmap.cpp:1504
void AddAttribute(const StyleAttributeDescriptorRef &attribute)
Definition: StyleDescription.cpp:96
std::shared_ptr< S > GetFeatureStyle(const StyleResolveContext &context, const std::vector< std::list< StyleSelector< S, A > > > &styleSelectors, const FeatureValueBuffer &buffer, const Projection &projection)
Get the style data based on the given features of an object, a given style (S) and its style attribut...
Definition: StyleConfig.cpp:1104
static const size_t IN_LOCALE_UNIT_LABEL_INDEX
Index of the 'inLocaleUnit' label.
Definition: EleFeature.h:88
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: PostalCodeFeature.cpp:26
QStringList getToday() const
Definition: OpeningHoursModel.cpp:73
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: RefFeature.cpp:87
int height
Definition: LabelLayouterHelper.h:42
ShieldStyle & SetBorderColor(const Color &color)
Definition: Styles.cpp:1077
bool IsComplete() const
Return 'true' if there was data already assigned to the tile.
Definition: DataTileCache.h:197
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: InstalledMapsModel.cpp:88
PositionMessage(const Timestamp ×tamp, const RouteDescriptionRef &route, const Position &position)
Definition: PositionAgent.cpp:88
void AddRouteLineStyle(const StyleFilter &filter, LinePartialStyle &style)
Definition: StyleConfig.cpp:1051
static const std::string SUBSECTION_NAME_PRESENCE_MAXSTAY
Definition: DescriptionService.h:358
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: SidewayFeature.cpp:24
void SetMaxDistance(double d)
Definition: NearPOIModel.h:183
GeoCoord coord
Position.
Definition: RouteStep.h:84
void TEXTSTYLEATTR(TextPartialStyle &style)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1406
void AddDescription(const NameDescriptionRef &description)
Definition: RouteDescription.cpp:202
size_t GetNodeUsedCount() const
Definition: NumberSet.cpp:67
void SetSnapDistance(const Distance &distance)
Definition: Navigation.h:144
Definition: InputHandler.h:58
ObjectFileRef GetObject() const
Definition: Location.h:278
bool WasSuccessful() const
Returns true if the worker processed successfully, else false.
Definition: Worker.h:83
OperatorFeatureValue(const std::string &op)
Definition: OperatorFeature.h:39
void SetOptionName(const std::string &optionName)
Definition: CmdLineParsing.cpp:107
TagId GetTagId(const char *name) const
Methods for dealing with tags.
Definition: TypeConfig.h:1132
const TileRouteData & GetRouteData() const
Return a read-only reference to the route data.
Definition: DataTileCache.h:342
void requestObjectsOnView(const MapViewStruct &, const QRectF &filterRectangle)
Definition: LookupModule.cpp:50
size_t GetTargetNodeIndex() const
Definition: Path.h:56
static QString FormatName(const RouteDescription::NameDescription &nameDescription)
Definition: RouteDescriptionBuilder.cpp:152
Definition: TypeConfig.h:71
static constexpr int MinLongitude
Definition: GeoCoord.h:82
Definition: SimpleRoutingService.h:113
bool HasIcon(const StyleConfig &styleConfig, const Projection &projection, const MapParameter ¶meter, IconStyle &style) override
Return true, if the icon in the IconStyle is available and can be drawn.
Definition: MapPainterQt.cpp:86
void LINESTYLEATTR(LinePartialStyle &style)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1500
void AddFlag(const std::string &name, bool value)
Add the flag with the given value.
Definition: StyleConfig.cpp:425
VehiclePosition * getVehiclePosition() const
Definition: NavigationModel.h:165
@ Symbol
Definition: LabelLayouter.h:62
#define SRTM3_FILESIZE
Definition: SRTM.cpp:44
Definition: Location.h:151
std::string DisplayString() const
Convert the bearing to a direction description in relation to the compass (4 points).
Definition: Bearing.cpp:35
OperatorFeature()
Definition: OperatorFeature.cpp:56
void listDownloaded(const MapProvider &provider, QNetworkReply *)
Definition: AvailableMapsModel.cpp:148
TypeInfoRef typeInfoTileCoast
Internal type for ground tiles of type "coast".
Definition: TypeConfig.h:1118
NameDescriptionRef GetName() const
Definition: RouteDescription.h:572
bool operator!=(const LaneDescription &o) const
Definition: RouteDescription.cpp:510
bool getPositionEstimateInTunnel() const
Definition: NavigationModel.h:174
std::string GetFeatureName(size_t featureIndex) const
Definition: StyleConfig.h:79
GeoCoord(double lat, double lon)
Initialize the coordinate with the given latitude and longitude values.
Definition: GeoCoord.h:96
GeoCoord GetCrossing() const
Definition: LocationDescriptionService.h:261
SuggestedLaneDescription(uint8_t from, uint8_t to, LaneTurn turn)
Definition: RouteDescription.cpp:515
void GetPOIsInRadius(const GeoCoord &location, const Distance &maxDistance, const TypeInfoSet &nodeTypes, std::vector< NodeRef > &nodes, const TypeInfoSet &wayTypes, std::vector< WayRef > &ways, const TypeInfoSet &areaTypes, std::vector< AreaRef > &areas) const
Returns all objects with the given max distance from the given location that have one of the given ty...
Definition: POIService.cpp:127
virtual void DrawHillShading(const Projection &projection, const MapParameter ¶meter, const MapData &data)
Definition: MapPainter.cpp:2885
std::list< AddressResult > results
Definition: Location.h:233
virtual void Render(const Projection &projection, const Symbol &symbol, const Vertex2D &mapCenter, std::function< void()> afterRenderTransformer, std::function< void()> afterEndTransformer, double scaleFactor=1.0)
Definition: SymbolRenderer.cpp:26
std::string GetDestination() const
Definition: DestinationFeature.h:49
Definition: OpeningHoursFeature.h:30
std::string GetPath() const
Definition: Database.cpp:286
uint8_t grade
Quality of road/track 1 (good)...5 (bad)
Definition: RouteNode.h:47
bool hasErrors
Definition: map/include/osmscoutmap/oss/Parser.h:73
RenderSteps
Definition: MapPainter.h:63
void sincos(double x, double &resSin, double &resCos)
Definition: SSEMathPublic.h:53
void setStartAndTarget(LocationEntry *start, LocationEntry *target, QString vehicleStr="car", double vehicleBearing=-1)
Compute new route.
Definition: RoutingModel.cpp:54
bool operator!=(const OSMTileIdBoxConstIterator &other) const
Definition: Tiling.h:162
void set(int key, int val)
Definition: map/include/osmscoutmap/oss/Scanner.h:99
virtual void Initialize()
Definition: TiledMapRenderer.cpp:92
DBId previousNode
FileOffset of the previous route node.
Definition: RoutingService.h:316
TypeInfoRef pointer
Definition: TypeInfoSet.h:38
NameDescriptionRef GetTargetDesccription() const
Definition: RouteDescription.h:245
A feature combines one or multiple tags to build information attribute for a type.
Definition: TypeFeature.h:98
void DumpStatistics()
Definition: AreaAreaIndex.cpp:358
Attribute
Definition: Styles.h:715
int state(int key)
Definition: include/osmscout/ost/Scanner.h:96
const size_t coordByteSize
Definition: GeoCoord.h:64
void Read(const TypeConfig &typeConfig, FileScanner &scanner)
Definition: PublicTransport.cpp:110
FeatureValueBuffer coastlineSegmentAttributes
Definition: MapPainter.h:225
Definition: RoutePostprocessor.h:52
QString description
Formatted (html) verbose description (translated already)
Definition: RouteStep.h:53
Definition: RouteDescription.h:460
void Write(FileWriter &writer) const
Write the data to the given FileWriter.
Definition: RouteNode.cpp:59
RoutePositionResult GetClosestRoutableNode(const GeoCoord &coord, const Distance &radius=Kilometers(1)) const
Definition: MultiDBRoutingService.cpp:137
@ WebsiteRole
Definition: MapObjectInfoModel.h:57
const character charmap_cb[]
Definition: utf8helper_charmap.cpp:767
QString getPattern() const
Definition: SearchLocationModel.h:265
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: IsInFeature.cpp:54
Vehicle GetVehicle(const RoutingProfile &profile) override
Definition: SimpleRoutingService.cpp:79
Definition: LocationService.h:279
MapManagerRef GetMapManager() const
Definition: OSMScoutQt.cpp:352
TypeConfig()
Definition: TypeConfig.cpp:662
void Write(FileWriter &writer) override
Write the FeatureValue to disk.
Definition: FromToFeature.cpp:30
bool GetLineIntersection(const N &a1, const N &a2, const N &b1, const N &b2, I &intersection)
Definition: Geometry.h:274
void removed(const AvailableVoice &item)
PostalCodeFeatureValue(const std::string &postalCode)
Definition: PostalCodeFeature.h:38
constexpr int X_STEP_2
Definition: ReadWriteLock.cpp:41
bool GetRouterDataMMap() const
Definition: Database.cpp:118
std::string GetString(const std::string &key, const std::string &defaultValue="") override
Definition: QtSettingsStorage.cpp:80
void DumpStatistics()
Definition: WaterIndex.cpp:301
const osmscout::Way & routeWay() const
Definition: QtRouteData.cpp:62
static const char *const YEAR_LABEL
Name of the "year" label.
Definition: ConstructionYearFeature.h:93
bool HasError() const
Definition: FileScanner.h:200
uint32_t GetX() const
Return the X coordinate fo the tile.
Definition: TileId.h:58
void Error(std::format_string< Args... > format, Args &&...args)
Definition: Progress.h:94
QObject * getRoute() const
Definition: NavigationModel.cpp:138
const double kAlpha
Definition: sweep_context.h:43
static const char *const CROSSING_WAYS_DESC
Constant for a description of list of way name crossing a node (CrossingWaysDescription)
Definition: RouteDescription.h:66
osmscout::GeoCoord center
Definition: LookupModule.h:86
bool Empty() const
Definition: RouteDescription.cpp:597
void SetColor(const Color &color)
Definition: PublicTransport.cpp:105
void SetUIntValue(int attribute, size_t value) override
Definition: Styles.cpp:1607
uint32_t GetWidth() const
Definition: Tiling.h:224
uint32_t GetRegionMaxWords() const
Definition: LocationIndex.h:204
std::optional< GeoCoord > center
"visual" polygon center (pole of inaccessibility)
Definition: MapPainter.h:182
void WAYSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1414
void setLatitude(double lat)
Definition: client-qt/src/osmscoutclientqt/SunriseSunset.cpp:103
FillStyleRef seaFill
Definition: MapPainter.h:224
std::shared_ptr< SRTM > SRTMRef
Definition: SRTM.h:95
static const char *const AREA_AREA_IDX
Definition: AreaAreaIndex.h:55
void SortInConditionals(const TypeConfig &typeConfig, const std::list< ConditionalStyle< S, A > > &conditionals, size_t maxLevel, std::vector< std::vector< std::list< StyleSelector< S, A > > > > &selectors)
Definition: StyleConfig.cpp:513
unsigned int DecodeNumberUnsigned(const char *buffer, N &number)
Definition: Number.h:239
std::size_t operator()(const TileId &id) const noexcept
Definition: TileId.h:121
constexpr int IsBreaker
Definition: utf8helper_charmap.h:30
Line(Destination &destination)
Definition: Logger.cpp:31
MercatorProjection GetProjection() const
Definition: MapPainterOpenGL.cpp:1105
LaneTurn turn
suggested lanes (to), inclusive
Definition: LaneAgent.h:44
Place GetPlace() const
Return the place this information is refering to.
Definition: LocationDescriptionService.h:136
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: FeeFeature.cpp:78
void SetIconPadding(double padding)
Definition: MapParameter.cpp:174
static const std::string LABEL_KEY_WAY_SIDEWAYS_WALKTRACK
Definition: DescriptionService.h:247
static const std::string LABEL_KEY_ROUTING_FROM
Definition: DescriptionService.h:279
DatabaseId database
Definition: DBFileOffset.h:94
QString altName
Definition: LocationEntry.h:50
virtual void Debug(const std::string &text)
Definition: Progress.cpp:81
bool IsOneway(const FeatureValueBuffer &buffer) const
Definition: StyleConfig.cpp:44
void TriggerMapRendering(const MapViewStruct &request, size_t requestEpoch)
Definition: PlaneMapRenderer.cpp:477
AreaDataFileRef GetAreaDataFile() const
Definition: Database.cpp:354
static const Color DARK_GREEN
Definition: Color.h:63
bool rotateTo(double angle) override
Definition: InputHandler.cpp:428
AreaRegionSearchResult LoadAreasInRadius(const GeoCoord &location, const TypeInfoSet &types, Distance maxDistance=Distance::Of< Meter >(100)) const
Load areas of given types with maximum distance to the given coordinate.
Definition: Database.cpp:1102
const std::vector< FeatureInstance > & GetFeatures() const
Return the list of features assigned to this type.
Definition: TypeConfig.h:233
Locale GetLocale() const
Definition: MapParameter.h:409
void SetBreaker(const BreakerRef &breaker)
Definition: MapParameter.cpp:270
virtual void RegisterContourLabel(const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const PathLabelData &label, const LabelPath &labelPath) override
Register contour label.
Definition: MapPainterAgg.cpp:426
double getLat() const
Definition: LocationEntry.cpp:240
size_t GetAreaTextStyleCount(const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1420
@ OffRoute
Definition: PositionAgent.h:61
std::list< WayPathData >::iterator WayPathDataIt
Definition: MapPainter.h:188
bool GetAreasByOffset(const std::set< DBFileOffset > &areaOffsets, std::unordered_map< DBFileOffset, AreaRef > &areaMap) override
Definition: SimpleRoutingService.cpp:245
void Write(const TypeConfig &typeConfig, FileWriter &writer) const
Definition: Route.cpp:92
Definition: MapPainter.h:199
std::unordered_map< OSMId, Point > ResultMap
Definition: CoordDataFile.h:42
bool operator==(const MessageStruct &other) const
Definition: VoiceInstructionAgent.h:167
void Read(FileScanner &scanner) override
Read the value of the Feature from the FileScanner.
Definition: ConstructionYearFeature.cpp:26
byte b[3]
Definition: utf8helper.h:74
@ DrawWayDecorations
Definition: MapPainter.h:81
bool operator>(const Distance &d) const
Definition: Distance.h:129
bool HasAreaTextStyles(const TypeInfoRef &type, const Magnification &magnification) const
Definition: StyleConfig.cpp:1382
void DrawSymbol(const Projection &projection, const MapParameter ¶meter, const Symbol &symbol, const Vertex2D &screenPos, double scaleFactor) override
Draw the Symbol as defined by the SymbolStyle at the given pixel coordinate (symbol center).
Definition: MapPainterCairo.cpp:1121
bool GetRouteNodes(IteratorIn begin, IteratorIn end, size_t size, std::vector< RouteNodeRef > &routeNodes)
Definition: RoutingDB.h:75
virtual void DrawArea(const Projection &projection, const MapParameter ¶meter, const AreaData &area)=0
Draw the given area using the given FillStyle for the area outline.
Vehicle
Definition: OSMScoutTypes.h:54
std::shared_ptr< LocationEntry > LocationEntryRef
Definition: LocationEntry.h:119
std::string GetLabel(const Locale &, size_t) const override
Definition: LanesFeature.h:109
LineStyle & SetLineColor(const Color &color)
Definition: Styles.cpp:219
void readyChange(bool ready)
QDateTime getSunset() const
Definition: client-qt/include/osmscoutclientqt/SunriseSunset.h:90
BorderStyle & SetDashes(const std::vector< double > &dashes)
Definition: Styles.cpp:662
static const char *const NAME
Name of this feature.
Definition: EleFeature.h:70
Definition: RoutingService.h:221
const std::list< Node > & Nodes() const
Definition: RouteDescription.h:834
bool IsEmpty() const
Definition: DataTileCache.h:70
bool HasError() const
Definition: CmdLineParsing.cpp:97
TypeInfo & CanBeNode(bool canBeNode)
If set to 'true', a node can be of this type.
Definition: TypeConfig.h:350
virtual double GetUTurnCost() const =0
void DrawPath(const Projection &projection, const MapParameter ¶meter, const Color &color, double width, const std::vector< double > &dash, LineStyle::CapStyle startCap, LineStyle::CapStyle endCap, const CoordBufferRange &coordRange) override
Draw simple line with the given style,the given color, the given width and the given untransformed no...
Definition: MapPainterQt.cpp:678
double x
Definition: shapes.h:47
GeoBox GetBoundingBox() const
Definition: Area.cpp:96
void Info(std::format_string< Args... > format, Args &&...args)
Definition: Progress.h:82
osmscout::Color(*)(const osmscout::Color &) ColorPostprocessor
Definition: StyleConfig.h:54
std::vector< TimeInterval > intervals
Closed when empty.
Definition: OpeningHours.h:69
bool operator<(const ObjectOSMRef &reference) const
Definition: ObjectRef.h:70
void DrawMap()
Actual map drawing into the back buffer.
Definition: PlaneMapRenderer.cpp:322
double GetMagnification() const
Definition: Magnification.h:192
Definition: LabelLayouter.h:149
bool operator!=(const TextStyle &other) const
Definition: Styles.cpp:1020
double getRemainingDistance() const
Definition: NavigationModel.h:184
AreaAreaIndex(size_t cacheSize)
Definition: AreaAreaIndex.cpp:32
size_t GetFeatureCount() const
Returns the number of features of the asisgned type.
Definition: TypeConfig.h:241
double GetMinLon() const
Return the minimum longitude of the GeBox.
Definition: GeoBox.h:216
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: NearPOIModel.cpp:143
Bearing angle
Definition: InputHandler.h:234
FeatureValue * AllocateValue(void *buffer) override
Definition: RefFeature.cpp:82
FillStyleRef GetUnknownFillStyle(const Projection &projection) const
Definition: StyleConfig.cpp:1494
void onLocationAdminRegions(const osmscout::GeoCoord, QList< AdminRegionInfoRef >)
Definition: SearchLocationModel.cpp:273
GeoBox bbox
Definition: Geometry.h:1193
void setLongitude(double lon)
Definition: client-qt/src/osmscoutclientqt/SunriseSunset.cpp:108
static const char *const NAME
Name of this feature.
Definition: ConstructionYearFeature.h:90
Definition: LanesFeature.h:125
bool isReady() const
Definition: LocationInfoModel.h:101
AdminRegionRef adminRegion
The admin region the address is contained by.
Definition: Location.h:223
@ PrepareRouteLabels
Definition: MapPainter.h:87
const character charmap_c8[]
Definition: utf8helper_charmap.cpp:566
ObjectPool(size_t maxSize)
Definition: ObjectPool.h:53
void set_zero()
Set this point to all zeros.
Definition: shapes.h:63
virtual void SetColorValue(int attribute, const Color &value)=0
Roles
Definition: InstalledVoicesModel.h:64
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: LocationFeature.cpp:66
Definition: AccessFeature.h:217
bool GetDelunayEdgeCW(Point &p)
std::shared_ptr< PTRoute > ValueType
Definition: DataFile.h:77
double maxSpeed
Definition: RoutingProfile.h:202
int32_t ReadInt32()
Definition: FileScanner.cpp:689
CoordBufferRange GenerateParallelWay(const CoordBufferRange &org, double offset)
Generate parallel way to way stored in this buffer on range orgStart, orgEnd (inclusive) Result is st...
Definition: Transformation.cpp:275
std::string GetDebugString() const override
Definition: RouteDescription.cpp:398
bool GetShowAltLanguage() const
Definition: MapParameter.h:404
FileOffset dataOffset
Offset of the data part of this entry.
Definition: Location.h:75
Id GetId() const
Definition: Intersection.h:50
void SetComplete()
Mark the tile as completed (useful if prefill data is already complete and no more actual data has to...
Definition: DataTileCache.h:187
NodeUseMap()
Definition: NodeUseMap.cpp:26
const Color & GetColor() const
Definition: Styles.h:414
void onVoiceChanged(const QString)
Definition: NavigationModule.cpp:236
Definition: LabelProvider.h:66
GeoCoord ReadCoord()
Definition: FileScanner.cpp:2164
LocationFeatureValue & operator=(const FeatureValue &other) override
Definition: LocationFeature.cpp:34
void STYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:948
GeoBox bbox
Definition: DataAgent.h:53
LayoutJob & operator=(const LayoutJob &)=delete
void Write(const TypeConfig &typeConfig, FileWriter &writer) const
Definition: PublicTransport.cpp:162
bool operator==(const FeatureValue &other) const override
Definition: AddressFeature.cpp:45
void SetDoubleValue(int attribute, double value) override
Definition: Styles.cpp:1325
std::string GetFilename() const
Definition: DataFile.h:121
virtual ~Buffer()
Definition: src/osmscout/ost/Scanner.cpp:122
void SetX(double x)
Definition: Pixel.h:208
void SetFeatures(const FeatureValueBuffer &buffer)
Definition: Area.h:206
bool HasType(const TypeInfoRef &type) const
Definition: StyleConfig.h:278
bool LoadFromOSTFile(const std::string &filename)
Loads the type configuration from the given *.ost file.
Definition: TypeConfig.cpp:1153
WebsiteFeatureValue & operator=(const FeatureValue &other) override
Definition: WebsiteFeature.cpp:34
virtual ~OptimizeAreasLowZoom()
Definition: OptimizeAreasLowZoom.cpp:44
virtual void onRenderSeaChanged(bool)
Definition: MapRenderer.cpp:110
Logger::Line Debug()
Definition: Logger.cpp:109
QHash< int, QByteArray > roleNames() const override
Definition: LocationInfoModel.cpp:108
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: EleFeature.cpp:116
Q_INVOKABLE QVariant data(const QModelIndex &index, int role) const override
Definition: StyleFlagsModel.cpp:68
TokenRef Peek()
Definition: src/osmscout/ost/Scanner.cpp:498
@ DrawAreas
Definition: MapPainter.h:79
void STYLEFILTER_FEATURE(StyleFilter &filter)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1069
RenderingType
Definition: OSMScoutQt.h:200
NameAltFeatureValueReader nameAltReader
Value reader for the 'alternative name' feature.
Definition: MapPainter.h:257
std::optional< T > Value()
Definition: CancelableFuture.h:216
RoutingListModel(QObject *parent=nullptr)
Definition: RoutingModel.cpp:26
Point operator-(const Point &a, const Point &b)
Subtract two points_ component-wise.
Definition: shapes.h:239
Duration DurationOfHours(double hours)
Definition: Time.h:44
@ land
Definition: GroundTile.h:50
void download(uint32_t zoomLevel, uint32_t x, uint32_t y)
Definition: OsmTileDownloader.cpp:63
bool IsInfo() const
Definition: Logger.h:385
virtual void Info(const std::string &text)
Definition: Progress.cpp:86
bool IsAborted() const
Definition: MapService.cpp:79
Node * LocateNode(const double &x)
Locate insertion point along advancing front.
virtual WayRef GetWay(const DBFileOffset &offset) const =0
size_t yAbs
Absolute y coordinate of the cell in relation to level and cell size.
Definition: GroundTile.h:94
void SetAreasDataMMap(bool mmap)
Definition: Database.cpp:68
bool Invalid() const
Definition: ObjectRef.h:115
GeoCoord GetTopLeftCoord(const Magnification &magnification) const
Return the top left coordinate of the tile.
Definition: Tiling.cpp:45
Definition: RoutingService.h:136
size_t GetCurrentIndex() const
Definition: Geometry.h:1533
ingroup Description
Definition: DescriptionService.h:43
CmdLineParseResult Parse(CmdLineScanner &scanner) override
Definition: CmdLineParsing.cpp:166
PathShieldStyle & SetBgColor(const Color &color)
Definition: Styles.cpp:1232
LineStyle()
Definition: Styles.cpp:115
virtual NodeDescriptionTmpl GetDescription()
Definition: Navigation.h:44
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: ChargingStationFeature.cpp:68
virtual void play()=0
start playing from current index
CmdLineArgParserRef CmdLineDoubleOption(Args &&...args)
Definition: CmdLineParsing.h:322
const character charmap_c5[]
Definition: utf8helper_charmap.cpp:365
void STYLEFILTER_TYPE(StyleFilter &filter)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1100
void loadStyleRequested(QString, std::unordered_map< std::string, bool >)
void download(const AvailableVoice &item)
Definition: VoiceManager.cpp:170
char u_size
Definition: utf8helper.h:75
@ attrColor
Definition: Styles.h:367
Definition: StyleProcessor.h:30
Definition: StyleError.h:32
std::string GetName() const
The name of the given type.
Definition: TypeConfig.h:324
double GetCosts(const Distance &distance) const override
Estimated cost for distance when are no limitations (max.
Definition: RoutingProfile.h:515
bool SearchForLocationByForm(const LocationFormSearchParameter &searchParameter, LocationSearchResult &result) const
Definition: LocationService.cpp:2095
Id GetSerial(size_t index) const
Definition: Area.h:169
virtual ~MapOverlay()
Definition: MapOverlay.cpp:33
Attribute
Definition: Styles.h:84
void Initialize(TagRegistry &tagRegistry) override
Does further initialization based on the current TagRegistry.
Definition: LanesFeature.cpp:122
int poiId
Definition: IconLookup.h:51
MotorwayEnterDescription(const NameDescriptionRef &toDescription)
Definition: RouteDescription.cpp:339
Roles
Definition: InstalledMapsModel.h:51
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: BridgeFeature.cpp:36
void CreateAdvancingFront(std::vector< Node * > nodes)
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: DataAgent.h:85
void downloadMap(AvailableMapsModelMap map, QDir dir, bool replaceExisting=true)
Start map downloading into local dir.
Definition: MapDownloader.cpp:133
int get(const char *key, int defaultVal)
Definition: include/osmscout/ost/Scanner.h:125
bool operator!=(const DBId &other) const
Definition: DBFileOffset.h:69
static const char *const NAME
Name of this feature.
Definition: RoundaboutFeature.h:37
std::list< NavigationMessageRef > Process(const NavigationMessageRef &message) override
Definition: VoiceInstructionAgent.cpp:339
TypeDistributionDataFile()
Definition: TypeDistributionDataFile.cpp:40
double GetCosts(const Area &area, const Distance &distance) const override
Estimated cost for specific area with given distance.
Definition: RoutingProfile.h:501
TextStyle()
Definition: Styles.cpp:805
bool getRoundaboutClockwise() const
Definition: RouteStep.h:197
RoutePositionResult GetClosestRoutableNode(const GeoCoord &coord, const RoutingProfile &profile, const Distance &radius) const
Returns the closest routable object (area or way) relative to the given coordinate.
Definition: SimpleRoutingService.cpp:514
double Dot(const Point &a, const Point &b)
Peform the dot product on two vectors.
Definition: shapes.h:261
FeatureValue * AllocateValue(void *buffer) override
Definition: NameFeature.cpp:84
std::string UTF8Normalize(const std::string &text)
Definition: utf8helper.cpp:35
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: MapObjectInfoModel.h:95
bool GetOffsets(IteratorIn begin, IteratorIn end, size_t size, std::vector< FileOffset > &offsets) const
Definition: DataFile.h:700
void MarkWorkerAsFailed()
Worker can set itself to the failure status.
Definition: Worker.h:62
QString getTypeName() const
Definition: OverlayObject.h:102
Data structure for holding temporary data about areas.
Definition: MapPainter.h:173
Distance remainingDistance
Definition: ArrivalEstimateAgent.h:32
osmscout::Vehicle vehicle
Definition: Agents.h:87
void DrawPath(const Projection &projection, const MapParameter ¶meter, const Color &color, double width, const std::vector< double > &dash, LineStyle::CapStyle startCap, LineStyle::CapStyle endCap, const CoordBufferRange &coordRange) override
Draw simple line with the given style,the given color, the given width and the given untransformed no...
Definition: MapPainterNoOp.cpp:101
std::string GetValue() const
Definition: OpeningHoursFeature.h:45
int Read()
Definition: src/osmscout/ost/Scanner.cpp:149
OSMSCOUT_CLIENT_QT_API QList< QDir > PathVectorToQDirList(const std::vector< std::filesystem::path > &paths)
Definition: QtStdConverters.cpp:48
SpecialType GetSpecialType() const
Definition: TypeConfig.h:570
ObjectFileRef source
The source object.
Definition: RouteNode.h:88
void SetDisplayLimit(int limit)
Definition: SearchLocationModel.h:261
void renderSeaSignal(bool)
bool Open(const std::string &path)
Definition: CoverageIndex.cpp:43
codepoint TransformNop(const character *, int)
Definition: utf8helper.cpp:48
Definition: RouteData.h:38
double getMaxSpeed() const
Definition: QmlRoutingProfile.cpp:79
TypeInfoSetConstIterator operator++(int)
Definition: TypeInfoSet.h:71
BorderStyle()
Definition: Styles.cpp:571
@ attrRenderMode
Definition: Styles.h:1226
void onJobFinished()
Definition: VoiceManager.cpp:204
Definition: StyleFlagsModel.h:37
MapDownloader(MapManagerRef mapManager, SettingsRef settings)
Definition: MapDownloader.cpp:118
@ normal
Definition: Styles.h:510
Bearing GetSphericalBearingInitial(const GeoCoord &a, const GeoCoord &b)
Definition: Geometry.cpp:312
void CopyData(std::function< void(const O &)> function) const
Definition: DataTileCache.h:224
QString GetStyleSheetFile() const
Definition: QmlSettings.cpp:94
Id GetId() const
Definition: RouteNode.h:147
size_t yRel
Y coordinate of cell in relation to cell index of this level.
Definition: GroundTile.h:96
bool right
Definition: sweep_context.h:122
void SetDelunayEdgeCW(Point &p, bool e)
int GetResultLimit() const
Definition: SearchLocationModel.h:249
TypeInfoSet optimizedAreaTypes
Definition: MapService.h:108
bool isReady() const
Definition: MapObjectInfoModel.h:101
MagnificationConverter magnificationConverter
Definition: map/include/osmscoutmap/oss/Parser.h:124
void TransformArea(const C &nodes, TransBuffer &buffer, const Projection &projection, TransPolygon::OptimizeMethod optimize, double optimizeErrorTolerance, TransPolygon::OutputConstraint constraint=TransPolygon::noConstraint)
Transform form geo to screen coordinates and (optionally) optimize the passed area with the given coo...
Definition: Transformation.h:228
Manager of map databases.
Definition: MapDownloader.h:88
Color(double r, double g, double b, double a) noexcept
Definition: Color.h:81
bool Set(const GeoCoord &coord, const Magnification &magnification, size_t width, size_t height)
Definition: MercatorProjection.h:86
JumpHandler(const MapView &view, double moveAnimationDuration=(double) ANIMATION_DURATION, double zoomAnimationDuration=(double) ANIMATION_DURATION)
Definition: InputHandler.cpp:534
void WriteByte(char cc)
Push one more byte into this string.
Definition: utf8helper.cpp:147
Definition: DBFileOffset.h:38
Definition: MaxSpeedFeature.h:30
WayRef GetWay(const DatabaseId &dbId, const ObjectFileRef &objRef) const
Definition: DataAgent.cpp:33
TypeId GetMaxTypeId() const
Return the highest used type id.
Definition: TypeConfig.cpp:1000
void setMaxSpeed(double)
Definition: QmlRoutingProfile.cpp:84
static const char *const AREA_WAY_IDX
Definition: AreaWayIndex.h:50
A specialisation of worker.
Definition: Worker.h:135
IconStyleRef GetNodeIconStyle(const FeatureValueBuffer &buffer, const Projection &projection) const
Definition: StyleConfig.cpp:1212
void onRouteFailed(QString reason, int requestId)
Definition: RoutingModel.cpp:121
uint32_t count
Number of entries to read.
Definition: DataFile.h:48
bool GetFlagIndex(const std::string &flagName, size_t &index) const
Returns the index of the feature flag with the given name.
Definition: TypeFeature.cpp:63
QString fontName
Definition: QmlSettings.h:59
int GetX() const
Definition: Geometry.h:1178
std::optional< GeoCoord > getNextStepCoord() const
Definition: VehiclePosition.h:103
FeatureValue * AllocateValue(void *buffer) override
Definition: LanesFeature.cpp:151
uint64_t getSize() const
Definition: AvailableMapsModel.cpp:44
SilentTagErrorReporter()
Definition: TagErrorReporter.cpp:28
void Reset()
Definition: FileScanner.cpp:2579
AreaDataFile(size_t cacheSize)
Definition: AreaDataFile.cpp:27
void SetRef(const std::string &ref)
Definition: PublicTransport.cpp:50
std::ostream & operator<<(std::ostream &stream) const
Definition: GeoCoord.h:134
Vertex2D GetCenter() const
Returns the center coordinates of the box.
Definition: ScreenBox.h:142
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: ColorFeature.cpp:89
PhoneFeatureValue(const std::string &phone)
Definition: PhoneFeature.h:38
Definition: OpeningHours.h:66
size_t GetValueAlignment() const override
If feature have value object, this method returns alignment requirements of the value type (alignof( ...
Definition: LayerFeature.cpp:66
@ UnpavedGrade
Definition: RoutingProfile.h:61
double orientation
angle between a -> intersection -> b orientation > 0 = left angle
Definition: Geometry.h:1243
CmdLineArgParserRef CmdLineSizeTOption(Args &&...args)
Definition: CmdLineParsing.h:304
std::vector< NodeRef > nodes
Nodes as retrieved from db.
Definition: MapData.h:48
RoutePositionResult GetRoutableNode(const ObjectFileRef &objRef, const RoutingProfile &profile) const
Return routable node on specific object, when this object is routable and usable by provided profile.
Definition: SimpleRoutingService.cpp:466
@ PrepareAreaLabels
Definition: MapPainter.h:83
int suggestedFrom
when suggested lanes and turn is valid
Definition: LaneAgent.h:42
Definition: MaxStayFeature.h:77
TagId RegisterNameAltTag(const std::string &tagName, uint32_t priority)
Definition: Tag.cpp:255
Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const override
Definition: InstalledVoicesModel.cpp:80
Definition: include/osmscout/ost/Parser.h:70
std::string text
Definition: include/osmscout/ost/Parser.h:54
Distance GetPenaltyDifferentType() const
Definition: RoutingProfile.h:424
size_t GetFeatureCount() const
Return the numbe rof features defined for this type.
Definition: TypeConfig.h:799
bool Matches(const StyleResolveContext &context, const FeatureValueBuffer &buffer, double meterInPixel, double meterInMM) const
Definition: StyleConfig.cpp:263
void NODETEXTSTYLE(StyleFilter filter, bool state)
Definition: map/src/osmscoutmap/oss/Parser.cpp:1362
FileOffset regionOffset
Offset of the admin region this location is in.
Definition: Location.h:155
bool Match(const ObjectFileRef &object) const
Definition: Location.cpp:28
void onlineTilesEnabledChanged(bool)
Definition: TiledMapRenderer.cpp:386
@ simple
Definition: Transformation.h:193
std::shared_ptr< Database > DatabaseRef
Reference counted reference to an Database instance.
Definition: Database.h:558
void vehiclePositionChanged()
~TextSearchIndex()
Definition: TextSearchIndex.cpp:15
FileOffset regionOffset
Offset of the admin region this location is in.
Definition: Location.h:191
QString openingHours
Definition: LookupModule.h:81
Id GetId() const
Returns a fast calculable unique id for the coordinate under consideration that different OSM nodes w...
Definition: Point.cpp:24
std::unordered_map< FileOffset, typename OrderList::iterator > Map
Definition: Cache.h:99
bool IsAborted() const
Definition: MapParameter.h:419
OSMScoutQtBuilder & WithCacheLocation(const QString &cacheLocation)
Definition: OSMScoutQt.h:149
Q_INVOKABLE QObject * locationEntryFromPosition(double lat, double lon, QString label="")
Create LocationEntry from geographic coordinate with optional label.
Definition: RoutingModel.h:168
const double PI_3div4
Definition: utils.h:40
QDateTime getArrivalEstimate() const
Definition: NavigationModel.h:179
@ TypeRole
Definition: MapObjectInfoModel.h:52
double GetCosts(const RouteNode ¤tNode, const std::vector< ObjectVariantData > &, size_t, size_t outPathIndex) const override
Estimated cost for outgoing path (outPathIndex) from currentNode when currentNode is entered from inP...
Definition: RoutingProfile.h:323
ColorFeatureValueReader colorReader
Value reader for the 'color' feature.
Definition: MapPainter.h:264
Definition: PostalCodeFeature.h:30
GeoBox boundingBox
Bounding box of the current projection on the ground.
Definition: Projection.h:55
Definition: LocationDescriptionService.h:41
std::vector< CancelCallback > cancelCallbacks
Definition: CancelableFuture.h:52
AvailableMapsModel()
Definition: AvailableMapsModel.cpp:69
std::array< std::byte, 7 > GeoCoordBuffer
Definition: GeoCoord.h:78
uint32_t y
Definition: Pixel.h:49
NameAltFeatureValueReader altNameReader
Definition: SearchModule.h:51
bool GetLabelLineFitToArea() const
Definition: MapParameter.h:279
bool GetOneway() const
Definition: StyleConfig.h:341
int32_t GetHeightAtLocation(const GeoCoord &coord)
return the height at (latitude,longitude) or SRTM::nodata if no data at the location
Definition: SRTM.cpp:182
constexpr bool debugRouting
Definition: RoutingProfile.h:50
ThreadedWorkerPool(size_t size, Args &&... args)
Definition: Worker.h:189
ScopeGuard & operator=(const ScopeGuard &)=delete
void ResetPeek()
Definition: map/src/osmscoutmap/oss/Scanner.cpp:533
Definition: RoutePostprocessor.h:474
void cleanupCache(uint32_t maxRemove, const std::chrono::milliseconds &maximumLifetime)
Definition: TileCache.cpp:206
@ noMatch
Definition: StringMatcher.h:35
std::vector< osmscout::GeoCoord > getCoords() const
Definition: OverlayObject.cpp:132
This agent pin position of vehicle to most probable routable object.
Definition: PositionAgent.h:33
Definition: LocationDescriptionService.h:175
std::shared_ptr< MapData > MapDataRef
Definition: MapData.h:63
FeatureInstance()
Just to make the compiler happy :-/.
Definition: TypeFeature.cpp:121
void regionLookupRequested(osmscout::GeoCoord)
int line
Definition: include/osmscout/ost/Parser.h:52
const character charmap_d2[]
Definition: utf8helper_charmap.cpp:1236
OSMTileIdBoxConstIterator end() const
Definition: Tiling.h:246
void Exception(const char *s)
Definition: map/src/osmscoutmap/oss/Parser.cpp:2713
@ operatorLessEqual
Definition: Parsing.h:34
std::string GetPostalCode() const
Definition: PostalCodeFeature.h:49
std::unordered_set< VNode, ClosedNodeHasher > ClosedSet
Definition: RoutingService.h:389
QString getDescription() const
Definition: RouteStep.h:172
std::list< GroundTile > baseMapTiles
List of ground tiles of base map (optional)
Definition: MapData.h:56
~FileWriter()
Definition: FileWriter.cpp:38
NameDescriptionRef GetOriginDesccription() const
Definition: RouteDescription.h:240
void routeChanged(QtRouteData route, osmscout::Vehicle vehicle)
std::string GetLabel(const Locale &, size_t) const override
Definition: PostalCodeFeature.h:54
TypeInfo & AddGroup(const std::string &groupName)
Add a categorizing group name to the type.
Definition: TypeConfig.cpp:202
std::string GetOperator() const
Definition: OperatorFeature.h:50
bool IsValid() const
Definition: Transformation.h:490
double Value(const class Distance &d) const override
Definition: Distance.h:337
GpsPositionState
Definition: PositionAgent.h:36
void SetZ(double z)
Definition: Pixel.h:218
Triangle * GetNeighbor(const int &index)
Definition: shapes.h:291
std::function< void(const std::string &)> SetterFunction
Definition: CmdLineParsing.h:116
TokenRef next
Definition: include/osmscout/ost/Scanner.h:54
Place(const ObjectFileRef &object, const FeatureValueBufferRef &objectFeatureBuff, const AdminRegionRef &adminRegion, const PostalAreaRef &postalArea, const POIRef &poi, const LocationRef &location, const AddressRef &address)
Definition: Location.cpp:75
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
Definition: FeeFeature.cpp:93
uint8_t GetGrade() const
Definition: GradeFeature.h:49
#define OSMSCOUT_MAP_API
Definition: MapImportExport.h:45