Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce function complexity in MapRenderer #1045

Open
Framstag opened this issue Apr 2, 2021 · 1 comment
Open

Reduce function complexity in MapRenderer #1045

Framstag opened this issue Apr 2, 2021 · 1 comment
Labels
feature For issues and pull request that request or implement a new feature refactoring For pull requests that contain refactorings

Comments

@Framstag
Copy link
Owner

Framstag commented Apr 2, 2021

MapRenderer contains "tricky" code. At the same time CLion hints at "too high" complexity for some methods. We should reduce the complexity of the methods by moving code parts out of the rather long methods. At the same time we should give methods and variables better names to make the code better to understand.

@Framstag Framstag added feature For issues and pull request that request or implement a new feature refactoring For pull requests that contain refactorings labels Apr 2, 2021
Framstag pushed a commit that referenced this issue Oct 15, 2021
* Extract OffsetRel code
* Enhanced Way API
* Cleanup of MapPainter::CalculatePaths method
Framstag added a commit that referenced this issue Oct 15, 2021
@Framstag
Copy link
Owner Author

Framstag commented Apr 8, 2023

This might also help for finalizing issue #1220.

Framstag added a commit that referenced this issue Apr 9, 2023
- Made more use of Vertex2D
- Simplify APIs by using Vertex2D instead of x,y
- Added Way.IsValid()
- Reduce Sonar warnings
Framstag added a commit that referenced this issue Apr 9, 2023
Framstag added a commit that referenced this issue Apr 9, 2023
- Regenerated test database
Framstag added a commit that referenced this issue Apr 9, 2023
- Moved the painter statistics code to separate files to reduce code size and build time of MapPainter
- Tuned clang-tidy configuration
Framstag added a commit that referenced this issue Apr 9, 2023
- Move MapPainterBatch to separate header.
- Renamed MapPainterMatch to BatchMapPainter (and adapt Qt code)
- Added BoundingBoxToPixel returning ScreenBox
- Made use for it
- Enhanced ScreenBox
- Added tests for ScreenBox
Framstag added a commit that referenced this issue Apr 10, 2023
Framstag added a commit that referenced this issue Apr 10, 2023
- Further deprecations, cleanups and transformation of APIs to Vertex2D
Framstag added a commit that referenced this issue Apr 10, 2023
Framstag added a commit that referenced this issue Apr 15, 2023
- Rmeove deprecated methods (Projection, Pixel, Transformation)
- Add test for MercatorProjection
- Updated Catch2 to current V2 version
Framstag added a commit that referenced this issue Apr 15, 2023
- Remove more unused methods
Framstag added a commit that referenced this issue Apr 15, 2023
- MOve TileProjection and MercatorProjection to their own headers
- Move Projections to projection package/directory
- Adapt includes
- Fixed builds
Framstag added a commit that referenced this issue Apr 16, 2023
- Added simple Earth object to centralize some constants
- Changed enum type of LaneTurn
- Centralized gradtorad constant
Framstag added a commit that referenced this issue Apr 16, 2023
- Fix build error
Framstag added a commit that referenced this issue Apr 16, 2023
- Fix build error
Framstag added a commit that referenced this issue Apr 16, 2023
- Fix build error
Framstag added a commit that referenced this issue Apr 16, 2023
- Fix build error
Framstag added a commit that referenced this issue Apr 16, 2023
- Fix warning because of implicit size_t -> double cast.
Framstag added a commit that referenced this issue Apr 16, 2023
- Fix Sonar warnings
Framstag added a commit that referenced this issue Apr 16, 2023
- Fix GitHub Actions warning
Framstag added a commit that referenced this issue Apr 16, 2023
- Transformed lat/lon to center
Framstag added a commit that referenced this issue Apr 16, 2023
- Use GeoBox as Boundingbox for Projection.
Framstag added a commit that referenced this issue Apr 16, 2023
- Added operators and Constructors for BatchTransformer
Framstag added a commit that referenced this issue Apr 16, 2023
- Mark BatchTransformer as final
Framstag added a commit that referenced this issue Apr 16, 2023
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Made more use of Vertex2D
- Simplify APIs by using Vertex2D instead of x,y
- Added Way.IsValid()
- Reduce Sonar warnings
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Regenerated test database
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Moved the painter statistics code to separate files to reduce code size and build time of MapPainter
- Tuned clang-tidy configuration
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Move MapPainterBatch to separate header.
- Renamed MapPainterMatch to BatchMapPainter (and adapt Qt code)
- Added BoundingBoxToPixel returning ScreenBox
- Made use for it
- Enhanced ScreenBox
- Added tests for ScreenBox
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Further deprecations, cleanups and transformation of APIs to Vertex2D
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Rmeove deprecated methods (Projection, Pixel, Transformation)
- Add test for MercatorProjection
- Updated Catch2 to current V2 version
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Remove more unused methods
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- MOve TileProjection and MercatorProjection to their own headers
- Move Projections to projection package/directory
- Adapt includes
- Fixed builds
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Added simple Earth object to centralize some constants
- Changed enum type of LaneTurn
- Centralized gradtorad constant
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Fix warning because of implicit size_t -> double cast.
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Fix GitHub Actions warning
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Transformed lat/lon to center
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Use GeoBox as Boundingbox for Projection.
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Added operators and Constructors for BatchTransformer
DerKleinePunk pushed a commit to DerKleinePunk/libosmscout that referenced this issue Jul 16, 2023
- Mark BatchTransformer as final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature For issues and pull request that request or implement a new feature refactoring For pull requests that contain refactorings
Projects
None yet
Development

No branches or pull requests

1 participant