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
constraintpreview.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2#pragma once
4#include <QRectF>
5
6namespace mesh
7{
9 QString id, label;
10 QVector<QPointF> original, proposed, removed;
13 bool closed = false, displayReduced = false, rolledBack = false, budgetRetained = false;
14};
16 QVector<ConstraintPreviewFeature> features;
17 QRectF bounds;
19 bool displayReduced = false, cancelled = false;
21};
22// Bounded DISPLAY data only. Audits and generation always use the full geometry.
23// Changed features precede unchanged context; sampling never changes the result.
24// The candidate and source mapping must have passed the preparation audit.
25ConstraintPreview makeConstraintPreview(const QVector<SimplificationFeature> &original,
26 const ConstraintSimplificationResult &candidate,
27 const std::function<bool()> &cancelled = {},
28 int maximumVertices = 50000, int maximumFeatures = 500);
29}
Definition meshcommands.h:38
ConstraintPreview makeConstraintPreview(const QVector< SimplificationFeature > &original, const ConstraintSimplificationResult &candidate, const std::function< bool()> &cancelled={}, int maximumVertices=50000, int maximumFeatures=500)
Definition constraintpreview.cpp:9
Vector< Point2 > original
Definition planning.cpp:197
Definition constraintpreview.h:8
quint64 removedCount
Definition constraintpreview.h:11
bool displayReduced
Definition constraintpreview.h:13
double areaChange
Definition constraintpreview.h:12
QVector< QPointF > original
Definition constraintpreview.h:10
quint64 verticesBefore
Definition constraintpreview.h:11
QVector< QPointF > proposed
Definition constraintpreview.h:10
QString label
Definition constraintpreview.h:9
QString id
Definition constraintpreview.h:9
bool rolledBack
Definition constraintpreview.h:13
double maxDeviation
Definition constraintpreview.h:12
QVector< QPointF > removed
Definition constraintpreview.h:10
bool closed
Definition constraintpreview.h:13
double maxZDeviation
Definition constraintpreview.h:12
quint64 verticesAfter
Definition constraintpreview.h:11
bool budgetRetained
Definition constraintpreview.h:13
Definition constraintpreview.h:15
QVector< ConstraintPreviewFeature > features
Definition constraintpreview.h:16
quint64 verticesAfter
Definition constraintpreview.h:18
bool displayReduced
Definition constraintpreview.h:19
quint64 verticesBefore
Definition constraintpreview.h:18
quint64 featuresTotal
Definition constraintpreview.h:18
QString horizontalUnit
Definition constraintpreview.h:20
quint64 removedTotal
Definition constraintpreview.h:18
QString verticalUnit
Definition constraintpreview.h:20
bool cancelled
Definition constraintpreview.h:19
QRectF bounds
Definition constraintpreview.h:17
Definition constraintsimplifier.h:61
bool cancelled
Definition vectorexport.cpp:214