#include <meshprofileoverlay.h>
|
| using | SceneToPixel = std::function< QPointF(const QPointF &)> |
| | Map scene point → device pixel, supplied by the canvas.
|
| |
|
| | MeshProfileOverlay ()=default |
| |
| void | setPolyline (const QVector< QPointF > &scenePolyline) |
| | Set the persistent profile polyline (scene coords). Rebuilds the chainage table used for chainage↔point mapping.
|
| |
| void | setArrowChainage (double chainage) |
| | Position the arrow at chainage (scene units along the path). A negative value hides the arrow.
|
| |
| void | paint (QPainter &p, const SceneToPixel &toPixel) const |
| | Draw the casing + colored line + position arrow in widget/pixel space. Called by MapCanvas::paintEvent after the QSG mesh composite so the profile sits on top of every map layer.
|
| |
| double | totalLength () const |
| |
| QPointF | chainageToScene (double chainage) const |
| |
| double | nearestChainage (const QPointF &scenePt) const |
| | Chainage of the point on the polyline closest to scenePt (orthogonal projection). Used by the map drag tool.
|
| |
| const QVector< QPointF > & | polyline () const |
| |
◆ SceneToPixel
Map scene point → device pixel, supplied by the canvas.
◆ MeshProfileOverlay()
| MeshProfileOverlay::MeshProfileOverlay |
( |
| ) |
|
|
default |
◆ chainageToScene()
| QPointF MeshProfileOverlay::chainageToScene |
( |
double |
chainage | ) |
const |
◆ nearestChainage()
| double MeshProfileOverlay::nearestChainage |
( |
const QPointF & |
scenePt | ) |
const |
Chainage of the point on the polyline closest to scenePt (orthogonal projection). Used by the map drag tool.
◆ paint()
| void MeshProfileOverlay::paint |
( |
QPainter & |
p, |
|
|
const SceneToPixel & |
toPixel |
|
) |
| const |
Draw the casing + colored line + position arrow in widget/pixel space. Called by MapCanvas::paintEvent after the QSG mesh composite so the profile sits on top of every map layer.
◆ polyline()
| const QVector< QPointF > & MeshProfileOverlay::polyline |
( |
| ) |
const |
|
inline |
◆ setArrowChainage()
| void MeshProfileOverlay::setArrowChainage |
( |
double |
chainage | ) |
|
Position the arrow at chainage (scene units along the path). A negative value hides the arrow.
◆ setPolyline()
| void MeshProfileOverlay::setPolyline |
( |
const QVector< QPointF > & |
scenePolyline | ) |
|
Set the persistent profile polyline (scene coords). Rebuilds the chainage table used for chainage↔point mapping.
◆ totalLength()
| double MeshProfileOverlay::totalLength |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: