Loading...
Searching...
No Matches
mesh::native_adapter Namespace Reference

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.
 

Detailed Description

Conversions between the Qt value types of namespace mesh and the standard types of meshkit::plan, used by the Qt facades.

Function Documentation

◆ native() [1/40]

n::BankPairPatch mesh::native_adapter::native ( const BankPairPatch & v)
inline

Copy every field of a BankPairPatch into a meshkit::plan::BankPairPatch.

Here is the call graph for this function:

◆ native() [2/40]

n::ConstraintAuditExample mesh::native_adapter::native ( const ConstraintAuditExample & v)
inline

Copy every field of a ConstraintAuditExample into a meshkit::plan::ConstraintAuditExample.

Here is the call graph for this function:

◆ native() [3/40]

n::ConstraintAuditOptions mesh::native_adapter::native ( const ConstraintAuditOptions & v)
inline

Copy every field of a ConstraintAuditOptions into a meshkit::plan::ConstraintAuditOptions.

Here is the call graph for this function:

◆ native() [4/40]

n::ConstraintAuditReport mesh::native_adapter::native ( const ConstraintAuditReport & v)
inline

Copy every field of a ConstraintAuditReport into a meshkit::plan::ConstraintAuditReport.

Here is the call graph for this function:

◆ native() [5/40]

n::ConstraintPolicyOverride mesh::native_adapter::native ( const ConstraintPolicyOverride & v)
inline

Copy every field of a ConstraintPolicyOverride into a meshkit::plan::ConstraintPolicyOverride.

Here is the call graph for this function:

◆ native() [6/40]

n::ConstraintSegment mesh::native_adapter::native ( const ConstraintSegment & v)
inline

Copy every field of a ConstraintSegment into a meshkit::plan::ConstraintSegment.

Here is the call graph for this function:

◆ native() [7/40]

n::ConstraintSimplificationOptions mesh::native_adapter::native ( const ConstraintSimplificationOptions & v)
inline

Copy every field of a ConstraintSimplificationOptions into a meshkit::plan::ConstraintSimplificationOptions.

Here is the call graph for this function:

◆ native() [8/40]

n::ConstraintSimplificationPolicy mesh::native_adapter::native ( const ConstraintSimplificationPolicy & v)
inline

Copy every field of a ConstraintSimplificationPolicy into a meshkit::plan::ConstraintSimplificationPolicy.

Here is the call graph for this function:

◆ native() [9/40]

n::ConstraintSimplificationResult mesh::native_adapter::native ( const ConstraintSimplificationResult & v)
inline

Copy every field of a ConstraintSimplificationResult into a meshkit::plan::ConstraintSimplificationResult.

Here is the call graph for this function:

◆ native() [10/40]

n::MeshResult mesh::native_adapter::native ( const MeshResult & m)
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.

Parameters
[in]mMesh to view. It must outlive the result, and its three arrays must not change while the result is read.
Returns
Native mesh that reads m's storage.
Here is the call graph for this function:

◆ native() [11/40]

n::MeshTriangle mesh::native_adapter::native ( const MeshTriangle & v)
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.

Parameters
[in]vCell to convert.
Returns
Native cell with the same v0..v3 and the tag as UTF-8 Text.
Here is the call graph for this function:

◆ native() [12/40]

n::PatchAssessment mesh::native_adapter::native ( const PatchAssessment & v)
inline

Copy every field of a PatchAssessment into a meshkit::plan::PatchAssessment.

Here is the call graph for this function:

◆ native() [13/40]

n::PatchDecision mesh::native_adapter::native ( const PatchDecision & v)
inline

Copy every field of a PatchDecision into a meshkit::plan::PatchDecision.

Here is the call graph for this function:

◆ native() [14/40]

n::PatchInterfaceConflict mesh::native_adapter::native ( const PatchInterfaceConflict & v)
inline

Copy every field of a PatchInterfaceConflict into a meshkit::plan::PatchInterfaceConflict.

Here is the call graph for this function:

◆ native() [15/40]

n::PatchInterfaceReport mesh::native_adapter::native ( const PatchInterfaceReport & v)
inline

Copy every field of a PatchInterfaceReport into a meshkit::plan::PatchInterfaceReport.

Here is the call graph for this function:

◆ native() [16/40]

n::PatchLimits mesh::native_adapter::native ( const PatchLimits & o)
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.

Parameters
[in]oLimits to convert.
Returns
Native limits; each wrapper holds its own copy of the Qt callback.
Here is the call graph for this function:

◆ native() [17/40]

n::PatchLine mesh::native_adapter::native ( const PatchLine & v)
inline

Copy every field of a PatchLine into a meshkit::plan::PatchLine.

Here is the call graph for this function:

◆ native() [18/40]

n::PatchMesh mesh::native_adapter::native ( const PatchMesh & v)
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.

Parameters
[in]vPatch to convert.
Returns
The native patch.
Here is the call graph for this function:

◆ native() [19/40]

n::Polygon mesh::native_adapter::native ( const QPolygonF & v)
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.

Parameters
[in]vPolygon to convert.
Returns
The native polygon.
Here is the call graph for this function:

◆ native() [20/40]

n::Text mesh::native_adapter::native ( const QString & s)
inline

Convert a QString to meshkit::plan::Text holding its UTF-8 encoding.

Parameters
[in]sString to convert.
Returns
The UTF-8 bytes of s (QString::toStdString()).

◆ native() [21/40]

n::QuadBlockGrid mesh::native_adapter::native ( const QuadBlockGrid & v)
inline

Copy every field of a QuadBlockGrid into a meshkit::plan::QuadBlockGrid.

Here is the call graph for this function:

◆ native() [22/40]

n::QuadBlockOptions mesh::native_adapter::native ( const QuadBlockOptions & v)
inline

Copy every field of a QuadBlockOptions into a meshkit::plan::QuadBlockOptions.

Here is the call graph for this function:

◆ native() [23/40]

n::QuadPlan mesh::native_adapter::native ( const QuadPlan & v)
inline

Copy every field of a QuadPlan into a meshkit::plan::QuadPlan.

Here is the call graph for this function:

◆ native() [24/40]

n::QuadPlanningGeometry mesh::native_adapter::native ( const QuadPlanningGeometry & v)
inline

Copy every field of a QuadPlanningGeometry into a meshkit::plan::QuadPlanningGeometry.

Here is the call graph for this function:

◆ native() [25/40]

n::QuadPlanningOptions mesh::native_adapter::native ( const QuadPlanningOptions & o)
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.

Parameters
[in]oOptions to convert.
Returns
Native options; the wrapper holds its own copy of the Qt callback.
Here is the call graph for this function:

◆ native() [26/40]

n::QuadRegion mesh::native_adapter::native ( const QuadRegion & v)
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.

Parameters
[in]vRegion to convert.
Returns
The native region.
Here is the call graph for this function:

◆ native() [27/40]

template<class T>
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.

Template Parameters
TQt element type. It must be default-constructible, because the native element type is deduced from native(T{}).
Parameters
[in]vVector to convert; each element is copied.
Returns
meshkit::plan::Vector of the converted elements, in the same order.
Here is the call graph for this function:

◆ native() [28/40]

n::SimplificationChange mesh::native_adapter::native ( const SimplificationChange & v)
inline

Copy every field of a SimplificationChange into a meshkit::plan::SimplificationChange.

Here is the call graph for this function:

◆ native() [29/40]

n::SimplificationFeature mesh::native_adapter::native ( const SimplificationFeature & v)
inline

Copy every field of a SimplificationFeature into a meshkit::plan::SimplificationFeature.

Here is the call graph for this function:

◆ native() [30/40]

n::SizeFieldOptions mesh::native_adapter::native ( const SizeFieldOptions & o)
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.

Parameters
[in]oOptions to convert.
Returns
Native options holding copies of every field.
Here is the call graph for this function:

◆ native() [31/40]

n::SteinerPoint mesh::native_adapter::native ( const SteinerPoint & v)
inline

Copy every field of a SteinerPoint into a meshkit::plan::SteinerPoint.

Here is the call graph for this function:

◆ native() [32/40]

n::StructuredPatch mesh::native_adapter::native ( const StructuredPatch & v)
inline

Copy every field of a StructuredPatch into a meshkit::plan::StructuredPatch.

Here is the call graph for this function:

◆ native() [33/40]

n::SweptPatch mesh::native_adapter::native ( const SweptPatch & v)
inline

Copy every field of a SweptPatch into a meshkit::plan::SweptPatch.

Here is the call graph for this function:

◆ native() [34/40]

n::ConstraintSimplificationPolicy::Mode mesh::native_adapter::native ( ConstraintSimplificationPolicy::Mode v)
inline

Cast to meshkit::plan::ConstraintSimplificationPolicy::Mode, whose enumerators match in name and order.

◆ native() [35/40]

n::PatchDisposition mesh::native_adapter::native ( PatchDisposition v)
inline

Cast to meshkit::plan::PatchDisposition, whose enumerators match in name and order.

◆ native() [36/40]

meshkit::Point2 mesh::native_adapter::native ( QPointF p)
inline

Copy the x and y of a QPointF into a meshkit::Point2.

Here is the caller graph for this function:

◆ native() [37/40]

meshkit::Box2 mesh::native_adapter::native ( QRectF b)
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.

Parameters
[in]bRectangle to convert.
Returns
The box.

◆ native() [38/40]

n::QuadRegionMode mesh::native_adapter::native ( QuadRegionMode v)
inline

Cast to meshkit::plan::QuadRegionMode, whose enumerators match in name and order.

◆ native() [39/40]

n::SimplificationFeature::Role mesh::native_adapter::native ( SimplificationFeature::Role v)
inline

Cast to meshkit::plan::SimplificationFeature::Role, whose enumerators match in name and order.

◆ native() [40/40]

template<class T>
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.

Template Parameters
TType of the value.
Parameters
[in]vValue to return.
Returns
A copy of v.

◆ qt() [1/36]

BankPairPatch mesh::native_adapter::qt ( const n::BankPairPatch & v)
inline

Copy every field of a meshkit::plan::BankPairPatch into a BankPairPatch.

Here is the call graph for this function:

◆ qt() [2/36]

ConstraintAuditExample mesh::native_adapter::qt ( const n::ConstraintAuditExample & v)
inline

Copy every field of a meshkit::plan::ConstraintAuditExample into a ConstraintAuditExample.

Here is the call graph for this function:

◆ qt() [3/36]

ConstraintAuditOptions mesh::native_adapter::qt ( const n::ConstraintAuditOptions & v)
inline

Copy every field of a meshkit::plan::ConstraintAuditOptions into a ConstraintAuditOptions.

Here is the call graph for this function:

◆ qt() [4/36]

ConstraintAuditReport mesh::native_adapter::qt ( const n::ConstraintAuditReport & v)
inline

Copy every field of a meshkit::plan::ConstraintAuditReport into a ConstraintAuditReport.

Here is the call graph for this function:

◆ qt() [5/36]

ConstraintPolicyOverride mesh::native_adapter::qt ( const n::ConstraintPolicyOverride & v)
inline

Copy every field of a meshkit::plan::ConstraintPolicyOverride into a ConstraintPolicyOverride.

Here is the call graph for this function:

◆ qt() [6/36]

ConstraintSegment mesh::native_adapter::qt ( const n::ConstraintSegment & v)
inline

Copy every field of a meshkit::plan::ConstraintSegment into a ConstraintSegment.

Here is the call graph for this function:

◆ qt() [7/36]

ConstraintSimplificationOptions mesh::native_adapter::qt ( const n::ConstraintSimplificationOptions & v)
inline

Copy every field of a meshkit::plan::ConstraintSimplificationOptions into a ConstraintSimplificationOptions.

Here is the call graph for this function:

◆ qt() [8/36]

ConstraintSimplificationPolicy mesh::native_adapter::qt ( const n::ConstraintSimplificationPolicy & v)
inline

Copy every field of a meshkit::plan::ConstraintSimplificationPolicy into a ConstraintSimplificationPolicy.

Here is the call graph for this function:

◆ qt() [9/36]

ConstraintSimplificationResult mesh::native_adapter::qt ( const n::ConstraintSimplificationResult & v)
inline

Copy every field of a meshkit::plan::ConstraintSimplificationResult into a ConstraintSimplificationResult.

Here is the call graph for this function:

◆ qt() [10/36]

MeshTriangle mesh::native_adapter::qt ( const n::MeshTriangle & v)
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.

Parameters
[in]vCell to convert.
Returns
The Qt cell.
Here is the call graph for this function:

◆ qt() [11/36]

PatchAssessment mesh::native_adapter::qt ( const n::PatchAssessment & v)
inline

Copy every field of a meshkit::plan::PatchAssessment into a PatchAssessment.

Here is the call graph for this function:

◆ qt() [12/36]

PatchDecision mesh::native_adapter::qt ( const n::PatchDecision & v)
inline

Copy every field of a meshkit::plan::PatchDecision into a PatchDecision.

Here is the call graph for this function:

◆ qt() [13/36]

PatchInterfaceConflict mesh::native_adapter::qt ( const n::PatchInterfaceConflict & v)
inline

Copy every field of a meshkit::plan::PatchInterfaceConflict into a PatchInterfaceConflict.

Here is the call graph for this function:

◆ qt() [14/36]

PatchInterfaceReport mesh::native_adapter::qt ( const n::PatchInterfaceReport & v)
inline

Copy every field of a meshkit::plan::PatchInterfaceReport into a PatchInterfaceReport.

Here is the call graph for this function:

◆ qt() [15/36]

PatchLine mesh::native_adapter::qt ( const n::PatchLine & v)
inline

Copy every field of a meshkit::plan::PatchLine into a PatchLine.

Here is the call graph for this function:

◆ qt() [16/36]

PatchMesh mesh::native_adapter::qt ( const n::PatchMesh & v)
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.

Parameters
[in]vPatch to convert.
Returns
The Qt patch.
Here is the call graph for this function:

◆ qt() [17/36]

QPolygonF mesh::native_adapter::qt ( const n::Polygon & v)
inline

Copy the points of a meshkit::plan::Polygon, in order, into a QPolygonF.

Here is the call graph for this function:

◆ qt() [18/36]

QuadBlockGrid mesh::native_adapter::qt ( const n::QuadBlockGrid & v)
inline

Copy every field of a meshkit::plan::QuadBlockGrid into a QuadBlockGrid.

Here is the call graph for this function:

◆ qt() [19/36]

QuadBlockOptions mesh::native_adapter::qt ( const n::QuadBlockOptions & v)
inline

Copy every field of a meshkit::plan::QuadBlockOptions into a QuadBlockOptions.

Here is the call graph for this function:

◆ qt() [20/36]

QuadPlan mesh::native_adapter::qt ( const n::QuadPlan & v)
inline

Copy every field of a meshkit::plan::QuadPlan into a QuadPlan.

Here is the call graph for this function:

◆ qt() [21/36]

QuadPlanningGeometry mesh::native_adapter::qt ( const n::QuadPlanningGeometry & v)
inline

Copy every field of a meshkit::plan::QuadPlanningGeometry into a QuadPlanningGeometry.

Here is the call graph for this function:

◆ qt() [22/36]

QuadRegion mesh::native_adapter::qt ( const n::QuadRegion & v)
inline

Copy a meshkit::plan::QuadRegion into a QuadRegion; the native-only attribute is dropped.

Here is the call graph for this function:

◆ qt() [23/36]

SimplificationChange mesh::native_adapter::qt ( const n::SimplificationChange & v)
inline

Copy every field of a meshkit::plan::SimplificationChange into a SimplificationChange.

Here is the call graph for this function:

◆ qt() [24/36]

SimplificationFeature mesh::native_adapter::qt ( const n::SimplificationFeature & v)
inline

Copy every field of a meshkit::plan::SimplificationFeature into a SimplificationFeature.

Here is the call graph for this function:

◆ qt() [25/36]

SteinerPoint mesh::native_adapter::qt ( const n::SteinerPoint & v)
inline

Copy every field of a meshkit::plan::SteinerPoint into a SteinerPoint.

Here is the call graph for this function:

◆ qt() [26/36]

StructuredPatch mesh::native_adapter::qt ( const n::StructuredPatch & v)
inline

Copy every field of a meshkit::plan::StructuredPatch into a StructuredPatch.

Here is the call graph for this function:

◆ qt() [27/36]

SweptPatch mesh::native_adapter::qt ( const n::SweptPatch & v)
inline

Copy every field of a meshkit::plan::SweptPatch into a SweptPatch.

Here is the call graph for this function:

◆ qt() [28/36]

QString mesh::native_adapter::qt ( const n::Text & s)
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.

Parameters
[in]sText to convert.
Returns
The decoded string.

◆ qt() [29/36]

template<class T>
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.

Template Parameters
TNative element type. It must be default-constructible, because the Qt element type is deduced from qt(T{}).
Parameters
[in]vVector to convert; each element is copied.
Returns
QVector of the converted elements, in the same order.
Here is the call graph for this function:

◆ qt() [30/36]

QRectF mesh::native_adapter::qt ( meshkit::Box2 b)
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.

Parameters
[in]bBox to convert.
Returns
The rectangle.
Here is the call graph for this function:

◆ qt() [31/36]

QPointF mesh::native_adapter::qt ( meshkit::Point2 p)
inline

Copy the x and y of a meshkit::Point2 into a QPointF.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qt() [32/36]

ConstraintSimplificationPolicy::Mode mesh::native_adapter::qt ( n::ConstraintSimplificationPolicy::Mode v)
inline

Cast to ConstraintSimplificationPolicy::Mode, whose enumerators match the native enum in name and order.

◆ qt() [33/36]

PatchDisposition mesh::native_adapter::qt ( n::PatchDisposition v)
inline

Cast to PatchDisposition, whose enumerators match the native enum in name and order.

◆ qt() [34/36]

QuadRegionMode mesh::native_adapter::qt ( n::QuadRegionMode v)
inline

Cast to QuadRegionMode, whose enumerators match the native enum in name and order.

◆ qt() [35/36]

SimplificationFeature::Role mesh::native_adapter::qt ( n::SimplificationFeature::Role v)
inline

Cast to SimplificationFeature::Role, whose enumerators match the native enum in name and order.

◆ qt() [36/36]

template<class T>
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.

Template Parameters
TType of the value.
Parameters
[in]vValue to return.
Returns
A copy of v.