Skip to content

Commit

Permalink
Merge pull request #1138 from Framstag/issue_1045_4
Browse files Browse the repository at this point in the history
Issue #1045 - further cleanup
  • Loading branch information
Framstag authored Oct 15, 2021
2 parents f498f98 + 9bfd01e commit d03bf24
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 132 deletions.
15 changes: 14 additions & 1 deletion libosmscout-map/include/osmscoutmap/MapPainter.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,19 @@ namespace osmscout {
const Way& way,
WayPathData &pathData);

double CalculateLineWith(const Projection& projection,
const FeatureValueBuffer& buffer,
const LineStyle& lineStyle) const;

double CalculateLineOffset(const Projection& projection,
const LineStyle& lineStyle,
double lineWidth) const;

Color CalculateLineColor(const FeatureValueBuffer& buffer,
const LineStyle& lineStyle) const;

int8_t CalculateLineLayer(const FeatureValueBuffer& buffer) const;

void CalculatePaths(const StyleConfig& styleConfig,
const Projection& projection,
const MapParameter& parameter,
Expand Down Expand Up @@ -643,7 +656,7 @@ namespace osmscout {

//@}

std::vector<OffsetRel> ParseLaneTurns(const LanesFeatureValue&);
std::vector<OffsetRel> ParseLaneTurns(const LanesFeatureValue&) const;

public:
explicit MapPainter(const StyleConfigRef& styleConfig);
Expand Down
3 changes: 3 additions & 0 deletions libosmscout-map/include/osmscoutmap/Styles.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ namespace osmscout {

extern bool IsLaneOffset(OffsetRel rel);

extern OffsetRel ParseForwardTurnStringToOffset(const std::string& turn);
extern OffsetRel ParseBackwardTurnStringToOffset(const std::string& turn);

/**
* \ingroup Stylesheet
*
Expand Down
Loading

0 comments on commit d03bf24

Please sign in to comment.