Repository navigation
Conversation
- Render clipped multipart polylines through GDI - Cache and draw polyline parts through OpenGL - Accept polyline datasets and cover rendering regressions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Numerical-precision defects can misclip visible lines, collapse OpenGL segments, and upload infinite localized vertices without triggering a safe fallback.
3 open issues
What changed in this PR
Adds polyline rendering to the ActiveX layer using Core’s backend-neutral scene data; point layers remain unsupported.
Changes:
- Draws independent polyline parts through GDI and OpenGL.
- Enables ActiveX polyline loading and adds rendering tests.
- Updates capability and architecture documentation.
Rendering precision issues need correction before merge. Builds and project tests were not run.
| File | Description |
|---|---|
| tests/MapWinGIS.ActiveX.Tests/VectorLayerRendererTests.cpp | Tests clipping, multipart drawing, and buffer reuse. |
| tests/MapWinGIS.ActiveX.Tests/ActiveXActivationTests.cpp | Tests polyline loading and point rejection. |
| src/MapWinGIS.ActiveX/ViewTransform.h | Updates transform documentation. |
| src/MapWinGIS.ActiveX/VectorRenderBackend.h | Documents polyline rendering modes. |
| src/MapWinGIS.ActiveX/VectorLayerRenderer.cpp | Updates coordinator documentation. |
| src/MapWinGIS.ActiveX/OpenGlVectorLayerRenderer.h | Documents OpenGL polyline support. |
| src/MapWinGIS.ActiveX/OpenGlVectorLayerRenderer.cpp | Adds polyline drawing and GPU caching. |
| src/MapWinGIS.ActiveX/MapWinGISControl.h | Updates control documentation. |
| src/MapWinGIS.ActiveX/MapWinGISControl.cpp | Accepts polyline datasets. |
| src/MapWinGIS.ActiveX/GdiVectorLayerRenderer.h | Documents clipping and independent parts. |
| src/MapWinGIS.ActiveX/GdiVectorLayerRenderer.cpp | Adds clipped polyline strokes. |
| README.md | Updates supported rendering capabilities. |
| docs/TESTING.md | Describes polyline test coverage. |
| docs/ARCHITECTURE.md | Documents backend polyline responsibilities. |
Review effort: Balanced
- Clip GDI geometry in map space without losing viewport offsets - Split or reject unsafe OpenGL polyline localization - Cover distant clipping and precision regressions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment on lines
+135
to
+136
| if (!IsFiniteCoordinate(ToDeviceX(point, transform, originX)) || | ||
| !IsFiniteCoordinate(ToDeviceY(point, transform, originY))) |
| startBoundaryCoordinate, | ||
| endBoundaryCoordinate, | ||
| parameter); | ||
| const double residual = boundary - coordinateAtParameter; |
Comment on lines
+374
to
+377
| return std::isfinite(localized.x) && | ||
| std::isfinite(localized.y) && | ||
| origin.x + localized.x == point.x && | ||
| origin.y + localized.y == point.y; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
Render LineString and multipart polyline layers through both ActiveX backends using the backend-neutral scene data delivered by Phase 1.
Design
Validation
Debug | x64build completed with no new Level 4 warnings.The initial line appearance remains a fixed solid one-pixel stroke; configurable symbology is follow-up work.