QGIS API Documentation 3.99.0-Master (a8882ad4560)
Loading...
Searching...
No Matches
QgsNurbsUtils Class Reference

Utility functions for working with NURBS curves. More...

#include <qgsnurbsutils.h>

Static Public Member Functions

static bool containsNurbsCurve (const QgsAbstractGeometry *geom)
 Returns true if the geom contains a NURBS curve (recursively).
static const QgsNurbsCurveextractNurbsCurve (const QgsAbstractGeometry *geom)
 Extracts the first NURBS curve found in the geom (recursively).
static const QgsNurbsCurvefindNurbsCurveForVertex (const QgsAbstractGeometry *geom, const QgsVertexId &vid, int &localIndex)
 Finds the NURBS curve containing the vertex identified by vid.
static QgsNurbsCurvefindNurbsCurveForVertex (QgsAbstractGeometry *geom, const QgsVertexId &vid, int &localIndex)
 Finds the NURBS curve containing the vertex identified by vid.

Detailed Description

Utility functions for working with NURBS curves.

Since
QGIS 4.0

Definition at line 34 of file qgsnurbsutils.h.

Member Function Documentation

◆ containsNurbsCurve()

bool QgsNurbsUtils::containsNurbsCurve ( const QgsAbstractGeometry * geom)
static

Returns true if the geom contains a NURBS curve (recursively).

Definition at line 26 of file qgsnurbsutils.cpp.

◆ extractNurbsCurve()

const QgsNurbsCurve * QgsNurbsUtils::extractNurbsCurve ( const QgsAbstractGeometry * geom)
static

Extracts the first NURBS curve found in the geom (recursively).

Returns nullptr if no NURBS curve is found.

Definition at line 66 of file qgsnurbsutils.cpp.

◆ findNurbsCurveForVertex() [1/2]

const QgsNurbsCurve * QgsNurbsUtils::findNurbsCurveForVertex ( const QgsAbstractGeometry * geom,
const QgsVertexId & vid,
int & localIndex )
static

Finds the NURBS curve containing the vertex identified by vid.

Parameters
geomthe geometry to search in
vidthe vertex identifier to search for
localIndexwill be set to the control point index within the found NURBS curve
Returns
the NURBS curve containing the vertex, or nullptr if the vertex is not part of a NURBS curve
Note
Not available in Python bindings

Definition at line 110 of file qgsnurbsutils.cpp.

◆ findNurbsCurveForVertex() [2/2]

QgsNurbsCurve * QgsNurbsUtils::findNurbsCurveForVertex ( QgsAbstractGeometry * geom,
const QgsVertexId & vid,
int & localIndex )
static

Finds the NURBS curve containing the vertex identified by vid.

Parameters
geomthe geometry to search in
vidthe vertex identifier to search for
localIndexwill be set to the control point index within the found NURBS curve
Returns
the NURBS curve containing the vertex, or nullptr if the vertex is not part of a NURBS curve

Definition at line 171 of file qgsnurbsutils.cpp.


The documentation for this class was generated from the following files: