Loading...
Searching...
No Matches
meshkit::detail::QtStorage Struct Reference

Storage policy that instantiates meshkit::BasicConstrainedDelaunay with Qt types (mesh::ConstrainedDelaunay). More...

#include <mesh/qtcdtstorage.h>

Collaboration diagram for meshkit::detail::QtStorage:

Public Types

using Point = QPointF
 2D point type, XY plane units.
 
using Box = QRectF
 Axis-aligned XY rectangle passed to footprint callbacks.
 
using String = QString
 Error text type returned by errorMsg().
 
using PointInput = QVector<QPointF>
 Point container accepted by build().
 
template<class T>
using Vector = QVector<T>
 Dynamic array type for owned arrays and read-out buffers.
 
template<class K, class V>
using Hash = QHash<K,V>
 Hash map type for internal segment bookkeeping.
 
template<class K, class V>
using MultiHash = QMultiHash<K,V>
 Hash multimap type for overlapping-segment bookkeeping.
 
template<class K>
using Set = QSet<K>
 Hash set type (protected vertices, fixed subsegments).
 

Static Public Member Functions

static String message (const char *s)
 Convert a kernel diagnostic to the storage's text type.
 
static String invalidPointMessage (int i)
 Build the error text for a non-finite input point.
 

Detailed Description

Storage policy that instantiates meshkit::BasicConstrainedDelaunay with Qt types (mesh::ConstrainedDelaunay).

Stateless: type aliases plus two static message builders.

Member Typedef Documentation

◆ Box

Axis-aligned XY rectangle passed to footprint callbacks.

◆ Hash

template<class K, class V>
using meshkit::detail::QtStorage::Hash = QHash<K,V>

Hash map type for internal segment bookkeeping.

◆ MultiHash

template<class K, class V>
using meshkit::detail::QtStorage::MultiHash = QMultiHash<K,V>

Hash multimap type for overlapping-segment bookkeeping.

◆ Point

2D point type, XY plane units.

◆ PointInput

using meshkit::detail::QtStorage::PointInput = QVector<QPointF>

Point container accepted by build().

◆ Set

template<class K>
using meshkit::detail::QtStorage::Set = QSet<K>

Hash set type (protected vertices, fixed subsegments).

◆ String

Error text type returned by errorMsg().

◆ Vector

template<class T>
using meshkit::detail::QtStorage::Vector = QVector<T>

Dynamic array type for owned arrays and read-out buffers.

Member Function Documentation

◆ invalidPointMessage()

static String meshkit::detail::QtStorage::invalidPointMessage ( int i)
inlinestatic

Build the error text for a non-finite input point.

Parameters
[in]iZero-based index of the offending point in the build() input.
Returns
"cdt: non-finite input point <i>".

◆ message()

static String meshkit::detail::QtStorage::message ( const char * s)
inlinestatic

Convert a kernel diagnostic to the storage's text type.

Parameters
[in]sNull-terminated Latin-1 literal from the kernel (e.g. "cdt: cancelled").
Returns
The text as an owned QString.

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