Loading...
Searching...
No Matches
qtcdtstorage.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2#pragma once
3#include <QHash>
4#include <QPointF>
5#include <QRectF>
6#include <QSet>
7#include <QString>
8#include <QVector>
9namespace meshkit::detail {
14struct QtStorage {
23 using Point=QPointF;using Box=QRectF;using String=QString;using PointInput=QVector<QPointF>;
25 template<class T> using Vector=QVector<T>;
27 template<class K,class V> using Hash=QHash<K,V>;
29 template<class K,class V> using MultiHash=QMultiHash<K,V>;
31 template<class K> using Set=QSet<K>;
37 static String message(const char *s){return QString::fromLatin1(s);}
43 static String invalidPointMessage(int i){return QStringLiteral("cdt: non-finite input point %1").arg(i);}
44};
45}
Storage policies and containers for the constrained Delaunay kernel and the plan model: StandardStora...
Storage policy that instantiates meshkit::BasicConstrainedDelaunay with Qt types (mesh::ConstrainedDe...
Definition qtcdtstorage.h:14
QSet< K > Set
Hash set type (protected vertices, fixed subsegments).
Definition qtcdtstorage.h:31
QMultiHash< K, V > MultiHash
Hash multimap type for overlapping-segment bookkeeping.
Definition qtcdtstorage.h:29
QString String
Error text type returned by errorMsg().
Definition qtcdtstorage.h:23
QVector< T > Vector
Dynamic array type for owned arrays and read-out buffers.
Definition qtcdtstorage.h:25
QVector< QPointF > PointInput
Point container accepted by build().
Definition qtcdtstorage.h:23
QHash< K, V > Hash
Hash map type for internal segment bookkeeping.
Definition qtcdtstorage.h:27
QRectF Box
Axis-aligned XY rectangle passed to footprint callbacks.
Definition qtcdtstorage.h:23
static String invalidPointMessage(int i)
Build the error text for a non-finite input point.
Definition qtcdtstorage.h:43
QPointF Point
2D point type, XY plane units.
Definition qtcdtstorage.h:23
static String message(const char *s)
Convert a kernel diagnostic to the storage's text type.
Definition qtcdtstorage.h:37