Loading...
Searching...
No Matches
mesh::ConstraintPreviewFeature Struct Reference

Display data for one feature of a constraint-simplification preview. More...

#include <mesh/constraintpreview.h>

Collaboration diagram for mesh::ConstraintPreviewFeature:

Public Attributes

QString id
 SimplificationFeature::id of the source feature.
 
QString label
 Source label, or id when the label is empty.
 
QVector< QPointF > original
 Original XY vertices; when longer than the per-path display budget, evenly subsampled by index, keeping the first and last vertex.
 
QVector< QPointF > proposed
 Candidate XY vertices, subsampled the same way.
 
QVector< QPointF > removed
 A sample of the original vertices the candidate removed, for markers; at most 100 per feature within the preview-wide marker budget.
 
quint64 verticesBefore = 0
 Full original vertex count, including a repeated closing vertex.
 
quint64 verticesAfter = 0
 Full candidate vertex count.
 
quint64 removedCount = 0
 SimplificationChange::removed of the feature.
 
double maxDeviation = 0
 SimplificationChange::maxDeviation (XY units).
 
double maxZDeviation = 0
 SimplificationChange::maxZDeviation (elevation units).
 
double areaChange = 0
 SimplificationChange::areaChange (squared XY units).
 
bool closed = false
 The source is a ring: its closed flag is set or its first and last vertices are exactly equal.
 
bool displayReduced = false
 original, proposed or removed holds fewer points than the full data.
 
bool rolledBack = false
 SimplificationChange::rolledBack of the feature.
 
bool budgetRetained = false
 SimplificationChange::budgetRetained of the feature.
 

Detailed Description

Display data for one feature of a constraint-simplification preview.

Member Data Documentation

◆ areaChange

double mesh::ConstraintPreviewFeature::areaChange = 0

SimplificationChange::areaChange (squared XY units).

◆ budgetRetained

bool mesh::ConstraintPreviewFeature::budgetRetained = false

◆ closed

bool mesh::ConstraintPreviewFeature::closed = false

The source is a ring: its closed flag is set or its first and last vertices are exactly equal.

◆ displayReduced

bool mesh::ConstraintPreviewFeature::displayReduced = false

original, proposed or removed holds fewer points than the full data.

◆ id

QString mesh::ConstraintPreviewFeature::id

SimplificationFeature::id of the source feature.

◆ label

QString mesh::ConstraintPreviewFeature::label

Source label, or id when the label is empty.

◆ maxDeviation

double mesh::ConstraintPreviewFeature::maxDeviation = 0

◆ maxZDeviation

double mesh::ConstraintPreviewFeature::maxZDeviation = 0

◆ original

QVector<QPointF> mesh::ConstraintPreviewFeature::original

Original XY vertices; when longer than the per-path display budget, evenly subsampled by index, keeping the first and last vertex.

◆ proposed

QVector<QPointF> mesh::ConstraintPreviewFeature::proposed

Candidate XY vertices, subsampled the same way.

◆ removed

QVector<QPointF> mesh::ConstraintPreviewFeature::removed

A sample of the original vertices the candidate removed, for markers; at most 100 per feature within the preview-wide marker budget.

◆ removedCount

quint64 mesh::ConstraintPreviewFeature::removedCount = 0

◆ rolledBack

bool mesh::ConstraintPreviewFeature::rolledBack = false

◆ verticesAfter

quint64 mesh::ConstraintPreviewFeature::verticesAfter = 0

Full candidate vertex count.

◆ verticesBefore

quint64 mesh::ConstraintPreviewFeature::verticesBefore = 0

Full original vertex count, including a repeated closing vertex.


The documentation for this struct was generated from the following file: