QGIS API Documentation 3.99.0-Master (a8882ad4560)
Loading...
Searching...
No Matches
qgsnurbsutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsnurbsutils.h
3 ---------------
4 begin : December 2025
5 copyright : (C) 2025 by Loïc Bartoletti
6 email : loic dot bartoletti at oslandia dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSNURBSUTILS_H
19#define QGSNURBSUTILS_H
20
21#include "qgis_core.h"
22#include "qgis_sip.h"
23
25class QgsNurbsCurve;
26struct QgsVertexId;
27
34class CORE_EXPORT QgsNurbsUtils
35{
36 public:
37
41 static bool containsNurbsCurve( const QgsAbstractGeometry *geom );
42
47 static const QgsNurbsCurve *extractNurbsCurve( const QgsAbstractGeometry *geom );
48
59 const QgsAbstractGeometry *geom,
60 const QgsVertexId &vid,
61 int &localIndex ) SIP_SKIP;
62
73 const QgsVertexId &vid,
74 int &localIndex SIP_OUT );
75};
76
77#endif // QGSNURBSUTILS_H
Abstract base class for all geometries.
Represents a NURBS (Non-Uniform Rational B-Spline) curve geometry in 2D/3D.
Utility functions for working with NURBS curves.
static bool containsNurbsCurve(const QgsAbstractGeometry *geom)
Returns true if the geom contains a NURBS curve (recursively).
static const QgsNurbsCurve * extractNurbsCurve(const QgsAbstractGeometry *geom)
Extracts the first NURBS curve found in the geom (recursively).
static const QgsNurbsCurve * findNurbsCurveForVertex(const QgsAbstractGeometry *geom, const QgsVertexId &vid, int &localIndex)
Finds the NURBS curve containing the vertex identified by vid.
#define SIP_SKIP
Definition qgis_sip.h:134
#define SIP_OUT
Definition qgis_sip.h:58
Utility class for identifying a unique vertex within a geometry.
Definition qgsvertexid.h:30