Conversions between the Qt value types of namespace mesh and the standard types of meshkit::plan, used by the Qt facades. More...
Functions | |
| meshkit::Point2 | native (QPointF p) |
| Copy the x and y of a QPointF into a meshkit::Point2. | |
| QPointF | qt (meshkit::Point2 p) |
| Copy the x and y of a meshkit::Point2 into a QPointF. | |
| meshkit::Box2 | native (QRectF b) |
| Convert a QRectF to a meshkit::Box2 spanning the same two corners. | |
| QRectF | qt (meshkit::Box2 b) |
| Convert a meshkit::Box2 to a QRectF spanning the same two corners. | |
| n::Text | native (const QString &s) |
| Convert a QString to meshkit::plan::Text holding its UTF-8 encoding. | |
| QString | qt (const n::Text &s) |
| Convert meshkit::plan::Text to a QString by decoding its bytes as UTF-8. | |
| template<class T> | |
| T | native (T v) |
| Fallback that returns a value unchanged, for members whose type needs no conversion. | |
| template<class T> | |
| T | qt (T v) |
| Fallback that returns a value unchanged, for members whose type needs no conversion. | |
| n::QuadRegion | native (const QuadRegion &v) |
| Copy every field of a QuadRegion into a meshkit::plan::QuadRegion. | |
| QuadRegion | qt (const n::QuadRegion &v) |
| Copy a meshkit::plan::QuadRegion into a QuadRegion; the native-only attribute is dropped. | |
| n::StructuredPatch | native (const StructuredPatch &v) |
| Copy every field of a StructuredPatch into a meshkit::plan::StructuredPatch. | |
| StructuredPatch | qt (const n::StructuredPatch &v) |
| Copy every field of a meshkit::plan::StructuredPatch into a StructuredPatch. | |
| n::SweptPatch | native (const SweptPatch &v) |
| Copy every field of a SweptPatch into a meshkit::plan::SweptPatch. | |
| SweptPatch | qt (const n::SweptPatch &v) |
| Copy every field of a meshkit::plan::SweptPatch into a SweptPatch. | |
| n::BankPairPatch | native (const BankPairPatch &v) |
| Copy every field of a BankPairPatch into a meshkit::plan::BankPairPatch. | |
| BankPairPatch | qt (const n::BankPairPatch &v) |
| Copy every field of a meshkit::plan::BankPairPatch into a BankPairPatch. | |
| n::PatchLine | native (const PatchLine &v) |
| Copy every field of a PatchLine into a meshkit::plan::PatchLine. | |
| PatchLine | qt (const n::PatchLine &v) |
| Copy every field of a meshkit::plan::PatchLine into a PatchLine. | |
| n::PatchMesh | native (const PatchMesh &v) |
| Copy every field of a PatchMesh into a meshkit::plan::PatchMesh. | |
| PatchMesh | qt (const n::PatchMesh &v) |
| Copy every field of a meshkit::plan::PatchMesh into a PatchMesh. | |
| n::ConstraintSegment | native (const ConstraintSegment &v) |
| Copy every field of a ConstraintSegment into a meshkit::plan::ConstraintSegment. | |
| ConstraintSegment | qt (const n::ConstraintSegment &v) |
| Copy every field of a meshkit::plan::ConstraintSegment into a ConstraintSegment. | |
| n::SteinerPoint | native (const SteinerPoint &v) |
| Copy every field of a SteinerPoint into a meshkit::plan::SteinerPoint. | |
| SteinerPoint | qt (const n::SteinerPoint &v) |
| Copy every field of a meshkit::plan::SteinerPoint into a SteinerPoint. | |
| n::ConstraintSimplificationPolicy | native (const ConstraintSimplificationPolicy &v) |
| Copy every field of a ConstraintSimplificationPolicy into a meshkit::plan::ConstraintSimplificationPolicy. | |
| ConstraintSimplificationPolicy | qt (const n::ConstraintSimplificationPolicy &v) |
| Copy every field of a meshkit::plan::ConstraintSimplificationPolicy into a ConstraintSimplificationPolicy. | |
| n::ConstraintPolicyOverride | native (const ConstraintPolicyOverride &v) |
| Copy every field of a ConstraintPolicyOverride into a meshkit::plan::ConstraintPolicyOverride. | |
| ConstraintPolicyOverride | qt (const n::ConstraintPolicyOverride &v) |
| Copy every field of a meshkit::plan::ConstraintPolicyOverride into a ConstraintPolicyOverride. | |
| n::SimplificationFeature | native (const SimplificationFeature &v) |
| Copy every field of a SimplificationFeature into a meshkit::plan::SimplificationFeature. | |
| SimplificationFeature | qt (const n::SimplificationFeature &v) |
| Copy every field of a meshkit::plan::SimplificationFeature into a SimplificationFeature. | |
| n::SimplificationChange | native (const SimplificationChange &v) |
| Copy every field of a SimplificationChange into a meshkit::plan::SimplificationChange. | |
| SimplificationChange | qt (const n::SimplificationChange &v) |
| Copy every field of a meshkit::plan::SimplificationChange into a SimplificationChange. | |
| n::ConstraintSimplificationOptions | native (const ConstraintSimplificationOptions &v) |
| Copy every field of a ConstraintSimplificationOptions into a meshkit::plan::ConstraintSimplificationOptions. | |
| ConstraintSimplificationOptions | qt (const n::ConstraintSimplificationOptions &v) |
| Copy every field of a meshkit::plan::ConstraintSimplificationOptions into a ConstraintSimplificationOptions. | |
| n::ConstraintSimplificationResult | native (const ConstraintSimplificationResult &v) |
| Copy every field of a ConstraintSimplificationResult into a meshkit::plan::ConstraintSimplificationResult. | |
| ConstraintSimplificationResult | qt (const n::ConstraintSimplificationResult &v) |
| Copy every field of a meshkit::plan::ConstraintSimplificationResult into a ConstraintSimplificationResult. | |
| n::ConstraintAuditOptions | native (const ConstraintAuditOptions &v) |
| Copy every field of a ConstraintAuditOptions into a meshkit::plan::ConstraintAuditOptions. | |
| ConstraintAuditOptions | qt (const n::ConstraintAuditOptions &v) |
| Copy every field of a meshkit::plan::ConstraintAuditOptions into a ConstraintAuditOptions. | |
| n::ConstraintAuditExample | native (const ConstraintAuditExample &v) |
| Copy every field of a ConstraintAuditExample into a meshkit::plan::ConstraintAuditExample. | |
| ConstraintAuditExample | qt (const n::ConstraintAuditExample &v) |
| Copy every field of a meshkit::plan::ConstraintAuditExample into a ConstraintAuditExample. | |
| n::ConstraintAuditReport | native (const ConstraintAuditReport &v) |
| Copy every field of a ConstraintAuditReport into a meshkit::plan::ConstraintAuditReport. | |
| ConstraintAuditReport | qt (const n::ConstraintAuditReport &v) |
| Copy every field of a meshkit::plan::ConstraintAuditReport into a ConstraintAuditReport. | |
| n::PatchDecision | native (const PatchDecision &v) |
| Copy every field of a PatchDecision into a meshkit::plan::PatchDecision. | |
| PatchDecision | qt (const n::PatchDecision &v) |
| Copy every field of a meshkit::plan::PatchDecision into a PatchDecision. | |
| n::PatchAssessment | native (const PatchAssessment &v) |
| Copy every field of a PatchAssessment into a meshkit::plan::PatchAssessment. | |
| PatchAssessment | qt (const n::PatchAssessment &v) |
| Copy every field of a meshkit::plan::PatchAssessment into a PatchAssessment. | |
| n::PatchInterfaceConflict | native (const PatchInterfaceConflict &v) |
| Copy every field of a PatchInterfaceConflict into a meshkit::plan::PatchInterfaceConflict. | |
| PatchInterfaceConflict | qt (const n::PatchInterfaceConflict &v) |
| Copy every field of a meshkit::plan::PatchInterfaceConflict into a PatchInterfaceConflict. | |
| n::PatchInterfaceReport | native (const PatchInterfaceReport &v) |
| Copy every field of a PatchInterfaceReport into a meshkit::plan::PatchInterfaceReport. | |
| PatchInterfaceReport | qt (const n::PatchInterfaceReport &v) |
| Copy every field of a meshkit::plan::PatchInterfaceReport into a PatchInterfaceReport. | |
| n::QuadPlanningGeometry | native (const QuadPlanningGeometry &v) |
| Copy every field of a QuadPlanningGeometry into a meshkit::plan::QuadPlanningGeometry. | |
| QuadPlanningGeometry | qt (const n::QuadPlanningGeometry &v) |
| Copy every field of a meshkit::plan::QuadPlanningGeometry into a QuadPlanningGeometry. | |
| n::QuadPlan | native (const QuadPlan &v) |
| Copy every field of a QuadPlan into a meshkit::plan::QuadPlan. | |
| QuadPlan | qt (const n::QuadPlan &v) |
| Copy every field of a meshkit::plan::QuadPlan into a QuadPlan. | |
| n::QuadBlockGrid | native (const QuadBlockGrid &v) |
| Copy every field of a QuadBlockGrid into a meshkit::plan::QuadBlockGrid. | |
| QuadBlockGrid | qt (const n::QuadBlockGrid &v) |
| Copy every field of a meshkit::plan::QuadBlockGrid into a QuadBlockGrid. | |
| n::QuadBlockOptions | native (const QuadBlockOptions &v) |
| Copy every field of a QuadBlockOptions into a meshkit::plan::QuadBlockOptions. | |
| QuadBlockOptions | qt (const n::QuadBlockOptions &v) |
| Copy every field of a meshkit::plan::QuadBlockOptions into a QuadBlockOptions. | |
| n::MeshTriangle | native (const MeshTriangle &v) |
| Convert a MeshTriangle to the native cell, keeping its corners and tag. | |
| MeshTriangle | qt (const n::MeshTriangle &v) |
| Convert a native cell to a MeshTriangle, copying its corners and tag. | |
| n::Polygon | native (const QPolygonF &v) |
| Copy the points of a QPolygonF, in order, into a meshkit::plan::Polygon. | |
| QPolygonF | qt (const n::Polygon &v) |
| Copy the points of a meshkit::plan::Polygon, in order, into a QPolygonF. | |
| template<class T> | |
| auto | native (const QVector< T > &v) |
| Convert a QVector element by element with the native() overload for its element type. | |
| template<class T> | |
| auto | qt (const n::Vector< T > &v) |
| Convert a meshkit::plan::Vector element by element with the qt() overload for its element type. | |
| n::QuadRegionMode | native (QuadRegionMode v) |
| Cast to meshkit::plan::QuadRegionMode, whose enumerators match in name and order. | |
| QuadRegionMode | qt (n::QuadRegionMode v) |
| Cast to QuadRegionMode, whose enumerators match the native enum in name and order. | |
| n::PatchDisposition | native (PatchDisposition v) |
| Cast to meshkit::plan::PatchDisposition, whose enumerators match in name and order. | |
| PatchDisposition | qt (n::PatchDisposition v) |
| Cast to PatchDisposition, whose enumerators match the native enum in name and order. | |
| n::ConstraintSimplificationPolicy::Mode | native (ConstraintSimplificationPolicy::Mode v) |
| Cast to meshkit::plan::ConstraintSimplificationPolicy::Mode, whose enumerators match in name and order. | |
| ConstraintSimplificationPolicy::Mode | qt (n::ConstraintSimplificationPolicy::Mode v) |
| Cast to ConstraintSimplificationPolicy::Mode, whose enumerators match the native enum in name and order. | |
| n::SimplificationFeature::Role | native (SimplificationFeature::Role v) |
| Cast to meshkit::plan::SimplificationFeature::Role, whose enumerators match in name and order. | |
| SimplificationFeature::Role | qt (n::SimplificationFeature::Role v) |
| Cast to SimplificationFeature::Role, whose enumerators match the native enum in name and order. | |
| n::MeshResult | native (const MeshResult &m) |
| View a MeshResult as a meshkit::plan::MeshResult without copying its arrays. | |
| n::SizeFieldOptions | native (const SizeFieldOptions &o) |
| Copy SizeFieldOptions into meshkit::plan::SizeFieldOptions; one-way, with no qt() counterpart. | |
| n::PatchLimits | native (const PatchLimits &o) |
| Convert PatchLimits to meshkit::plan::PatchLimits; one-way, with no qt() counterpart. | |
| n::QuadPlanningOptions | native (const QuadPlanningOptions &o) |
| Convert QuadPlanningOptions to meshkit::plan::QuadPlanningOptions; one-way, with no qt() counterpart. | |
Conversions between the Qt value types of namespace mesh and the standard types of meshkit::plan, used by the Qt facades.
|
inline |
Copy every field of a BankPairPatch into a meshkit::plan::BankPairPatch.
|
inline |
Copy every field of a ConstraintAuditExample into a meshkit::plan::ConstraintAuditExample.
|
inline |
Copy every field of a ConstraintAuditOptions into a meshkit::plan::ConstraintAuditOptions.
|
inline |
Copy every field of a ConstraintAuditReport into a meshkit::plan::ConstraintAuditReport.
|
inline |
Copy every field of a ConstraintPolicyOverride into a meshkit::plan::ConstraintPolicyOverride.
|
inline |
Copy every field of a ConstraintSegment into a meshkit::plan::ConstraintSegment.
|
inline |
Copy every field of a ConstraintSimplificationOptions into a meshkit::plan::ConstraintSimplificationOptions.
|
inline |
Copy every field of a ConstraintSimplificationPolicy into a meshkit::plan::ConstraintSimplificationPolicy.
|
inline |
Copy every field of a ConstraintSimplificationResult into a meshkit::plan::ConstraintSimplificationResult.
|
inline |
View a MeshResult as a meshkit::plan::MeshResult without copying its arrays.
ok and errorMsg are copied. vertices, triangles and boundaryEdges borrow the QVectors of m (meshkit::plan::ReadArray::borrow()) and convert one element on every access, keeping only what the native types hold: vertex xy and z; cell corners v0..v3, without the tag (unlike native(const MeshTriangle &)); edge v0, v1 and marker, without the tag. All other vertex, cell and mesh data (vertex markers, tags and coupling, Manning's n and initial conditions, cell couplings, surface and infiltration data) is not visible. There is no qt() counterpart.
| [in] | m | Mesh to view. It must outlive the result, and its three arrays must not change while the result is read. |
m's storage.
|
inline |
Convert a MeshTriangle to the native cell, keeping its corners and tag.
The Qt-only cell attributes (mannings, initDepth, initHgl, initU, initV) have no native counterpart and are dropped.
| [in] | v | Cell to convert. |
|
inline |
Copy every field of a PatchAssessment into a meshkit::plan::PatchAssessment.
|
inline |
Copy every field of a PatchDecision into a meshkit::plan::PatchDecision.
|
inline |
Copy every field of a PatchInterfaceConflict into a meshkit::plan::PatchInterfaceConflict.
|
inline |
Copy every field of a PatchInterfaceReport into a meshkit::plan::PatchInterfaceReport.
|
inline |
Convert PatchLimits to meshkit::plan::PatchLimits; one-way, with no qt() counterpart.
The scalar limits and the elevationAt and cancelled callbacks are copied as they are. The Qt-typed callbacks are wrapped only when set, so an empty one stays empty: maximumSize and terrainToleranceForFootprint receive the native box converted with qt(meshkit::Box2), and terrainBound receives the three native points copied into a QPointF array that lives only for the call, with the elevation pointer passed through.
| [in] | o | Limits to convert. |
|
inline |
Copy every field of a PatchLine into a meshkit::plan::PatchLine.
|
inline |
Copy every field of a PatchMesh into a meshkit::plan::PatchMesh.
Each quad goes through native(const MeshTriangle &), which drops the Qt-only cell attributes.
| [in] | v | Patch to convert. |
|
inline |
Copy the points of a QPolygonF, in order, into a meshkit::plan::Polygon.
Points are copied as given: a repeated closing point is kept and nothing is reoriented or deduplicated.
| [in] | v | Polygon to convert. |
|
inline |
Convert a QString to meshkit::plan::Text holding its UTF-8 encoding.
| [in] | s | String to convert. |
s (QString::toStdString()).
|
inline |
Copy every field of a QuadBlockGrid into a meshkit::plan::QuadBlockGrid.
|
inline |
Copy every field of a QuadBlockOptions into a meshkit::plan::QuadBlockOptions.
|
inline |
Copy every field of a QuadPlan into a meshkit::plan::QuadPlan.
|
inline |
Copy every field of a QuadPlanningGeometry into a meshkit::plan::QuadPlanningGeometry.
|
inline |
Convert QuadPlanningOptions to meshkit::plan::QuadPlanningOptions; one-way, with no qt() counterpart.
The flags, sizes, rounds and budgets are copied, limits goes through native(const PatchLimits &), and a set excluded callback is wrapped so that it receives each native candidate ring converted to a QPolygonF; an empty one stays empty.
| [in] | o | Options to convert. |
|
inline |
Copy every field of a QuadRegion into a meshkit::plan::QuadRegion.
meshkit::plan::QuadRegion::attribute, which has no Qt counterpart, is left at 0.
| [in] | v | Region to convert. |
| auto mesh::native_adapter::native | ( | const QVector< T > & | v | ) |
Convert a QVector element by element with the native() overload for its element type.
Nested QVectors convert recursively and QPolygonF elements become meshkit::plan::Polygon. Only overloads declared before this template are visible to it, which is why the struct conversions are forward-declared above.
| T | Qt element type. It must be default-constructible, because the native element type is deduced from native(T{}). |
| [in] | v | Vector to convert; each element is copied. |
|
inline |
Copy every field of a SimplificationChange into a meshkit::plan::SimplificationChange.
|
inline |
Copy every field of a SimplificationFeature into a meshkit::plan::SimplificationFeature.
|
inline |
Copy SizeFieldOptions into meshkit::plan::SizeFieldOptions; one-way, with no qt() counterpart.
Every field is copied: the scalars and the terrainSizeAt callback as they are, each regions and terrainRegions entry as its converted ring and h, and steps element by element.
| [in] | o | Options to convert. |
|
inline |
Copy every field of a SteinerPoint into a meshkit::plan::SteinerPoint.
|
inline |
Copy every field of a StructuredPatch into a meshkit::plan::StructuredPatch.
|
inline |
Copy every field of a SweptPatch into a meshkit::plan::SweptPatch.
|
inline |
Cast to meshkit::plan::ConstraintSimplificationPolicy::Mode, whose enumerators match in name and order.
|
inline |
Cast to meshkit::plan::PatchDisposition, whose enumerators match in name and order.
|
inline |
|
inline |
Convert a QRectF to a meshkit::Box2 spanning the same two corners.
(left(), top()) becomes the box origin and (right(), bottom()) its opposite corner, with no y-axis flip and no normalization, so a negative width or height is kept. The size is recomputed from the corners and can differ from the source by rounding.
| [in] | b | Rectangle to convert. |
|
inline |
Cast to meshkit::plan::QuadRegionMode, whose enumerators match in name and order.
|
inline |
Cast to meshkit::plan::SimplificationFeature::Role, whose enumerators match in name and order.
| T mesh::native_adapter::native | ( | T | v | ) |
Fallback that returns a value unchanged, for members whose type needs no conversion.
Overload resolution prefers the specific overloads and the QVector template, so this handles arithmetic values, bool, std::optional, std::function and std::pair members. Same-width integer types with different names (quint64 and std::uint64_t, qsizetype and std::ptrdiff_t) convert implicitly where the result is assigned.
| T | Type of the value. |
| [in] | v | Value to return. |
v.
|
inline |
Copy every field of a meshkit::plan::BankPairPatch into a BankPairPatch.
|
inline |
Copy every field of a meshkit::plan::ConstraintAuditExample into a ConstraintAuditExample.
|
inline |
Copy every field of a meshkit::plan::ConstraintAuditOptions into a ConstraintAuditOptions.
|
inline |
Copy every field of a meshkit::plan::ConstraintAuditReport into a ConstraintAuditReport.
|
inline |
Copy every field of a meshkit::plan::ConstraintPolicyOverride into a ConstraintPolicyOverride.
|
inline |
Copy every field of a meshkit::plan::ConstraintSegment into a ConstraintSegment.
|
inline |
Copy every field of a meshkit::plan::ConstraintSimplificationOptions into a ConstraintSimplificationOptions.
|
inline |
Copy every field of a meshkit::plan::ConstraintSimplificationPolicy into a ConstraintSimplificationPolicy.
|
inline |
Copy every field of a meshkit::plan::ConstraintSimplificationResult into a ConstraintSimplificationResult.
|
inline |
Convert a native cell to a MeshTriangle, copying its corners and tag.
The Qt-only attributes keep their defaults: mannings, initDepth and initHgl are NaN (unset) and initU and initV are 0, so a Qt to native to Qt round trip loses any values set on them.
| [in] | v | Cell to convert. |
|
inline |
Copy every field of a meshkit::plan::PatchAssessment into a PatchAssessment.
|
inline |
Copy every field of a meshkit::plan::PatchDecision into a PatchDecision.
|
inline |
Copy every field of a meshkit::plan::PatchInterfaceConflict into a PatchInterfaceConflict.
|
inline |
Copy every field of a meshkit::plan::PatchInterfaceReport into a PatchInterfaceReport.
|
inline |
Copy every field of a meshkit::plan::PatchLine into a PatchLine.
|
inline |
Copy every field of a meshkit::plan::PatchMesh into a PatchMesh.
Each quad goes through qt(const n::MeshTriangle &), so its Qt-only cell attributes take their defaults.
| [in] | v | Patch to convert. |
|
inline |
Copy the points of a meshkit::plan::Polygon, in order, into a QPolygonF.
|
inline |
Copy every field of a meshkit::plan::QuadBlockGrid into a QuadBlockGrid.
|
inline |
Copy every field of a meshkit::plan::QuadBlockOptions into a QuadBlockOptions.
|
inline |
Copy every field of a meshkit::plan::QuadPlan into a QuadPlan.
|
inline |
Copy every field of a meshkit::plan::QuadPlanningGeometry into a QuadPlanningGeometry.
|
inline |
Copy a meshkit::plan::QuadRegion into a QuadRegion; the native-only attribute is dropped.
|
inline |
Copy every field of a meshkit::plan::SimplificationChange into a SimplificationChange.
|
inline |
Copy every field of a meshkit::plan::SimplificationFeature into a SimplificationFeature.
|
inline |
Copy every field of a meshkit::plan::SteinerPoint into a SteinerPoint.
|
inline |
Copy every field of a meshkit::plan::StructuredPatch into a StructuredPatch.
|
inline |
Copy every field of a meshkit::plan::SweptPatch into a SweptPatch.
|
inline |
Convert meshkit::plan::Text to a QString by decoding its bytes as UTF-8.
Uses QString::fromStdString(). Byte sequences that are not valid UTF-8 are replaced by the decoder, so Text survives a qt() and native() round trip only when it is valid UTF-8.
| [in] | s | Text to convert. |
| auto mesh::native_adapter::qt | ( | const n::Vector< T > & | v | ) |
Convert a meshkit::plan::Vector element by element with the qt() overload for its element type.
Nested vectors convert recursively and meshkit::plan::Polygon elements become QPolygonF. As for the native() template, only overloads declared before this template are visible to it.
| T | Native element type. It must be default-constructible, because the Qt element type is deduced from qt(T{}). |
| [in] | v | Vector to convert; each element is copied. |
|
inline |
Convert a meshkit::Box2 to a QRectF spanning the same two corners.
Inverse of native(QRectF): (left(), top()) and (right(), bottom()) become the rectangle's corners without normalization, and the size is recomputed from them.
| [in] | b | Box to convert. |
|
inline |
Copy the x and y of a meshkit::Point2 into a QPointF.
|
inline |
Cast to ConstraintSimplificationPolicy::Mode, whose enumerators match the native enum in name and order.
|
inline |
Cast to PatchDisposition, whose enumerators match the native enum in name and order.
|
inline |
Cast to QuadRegionMode, whose enumerators match the native enum in name and order.
|
inline |
Cast to SimplificationFeature::Role, whose enumerators match the native enum in name and order.
| T mesh::native_adapter::qt | ( | T | v | ) |
Fallback that returns a value unchanged, for members whose type needs no conversion.
Mirror of the native() fallback: overload resolution prefers the specific overloads and the meshkit::plan::Vector template, so this handles arithmetic values, bool, std::optional, std::function and std::pair members.
| T | Type of the value. |
| [in] | v | Value to return. |
v.