SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
markershape.cpp File Reference

MarkerShape JSON + draw implementation (Slice Z.4). More...

#include "render/markershape.h"
#include <QBrush>
#include <QPainter>
#include <QPainterPath>
#include <QPen>
#include <QPointF>
#include <QPolygonF>
#include <array>
#include <cmath>
Include dependency graph for markershape.cpp:

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Functions

QString OpenSWMM::Render::markerShapeToString (MarkerShape shape)
 
MarkerShape OpenSWMM::Render::markerShapeFromString (const QString &s)
 
void OpenSWMM::Render::drawMarkerShape (QPainter *painter, MarkerShape shape, const QPointF &center, qreal sizePx, const QBrush &fillBrush, const QPen &outlinePen, qreal rotationDeg=0.0)
 Render shape into painter centred at center with the outer extent sizePx, filled with fillBrush and stroked with outlinePen. Rotation is in degrees (clockwise).
 

Detailed Description

MarkerShape JSON + draw implementation (Slice Z.4).

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Variable Documentation

◆ shape

MarkerShape shape

◆ token

const char* token