QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
ParametricLine.cpp
Go to the documentation of this file.
1/***************************************************************************
2 ParametricLine.cpp
3 ------------------
4 copyright : (C) 2004 by Marco Hugentobler
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#include "ParametricLine.h"
18#include "qgslogger.h"
19
21{
22 Q_UNUSED( pl )
23 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
24}
25
27{
28 Q_UNUSED( t )
29 Q_UNUSED( v )
30 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
31}
32
34{
35 Q_UNUSED( t )
36 Q_UNUSED( v )
37 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
38}
39
41{
42 Q_UNUSED( t )
43 Q_UNUSED( p )
44 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
45}
46
48{
49 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
50 return nullptr;
51}
52
54{
55 Q_UNUSED( i )
56 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
57}
58
59void ParametricLine::setControlPoly( QVector<QgsPoint *> *cp )
60{
61 Q_UNUSED( cp )
62 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
63}
64
66{
67 Q_UNUSED( paral )
68 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
69}
70
72{
73 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
74 return mDegree;
75}
76
77const QgsPoint *ParametricLine::getControlPoint( int number ) const
78{
79 Q_UNUSED( number )
80 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
81 return nullptr;
82}
83
84const QVector<QgsPoint *> *ParametricLine::getControlPoly() const
85{
86 QgsDebugError( QStringLiteral( "warning, derive a class from ParametricLine" ) );
87 return nullptr;
88}
ParametricLine is an Interface for parametric lines.
virtual const QVector< QgsPoint * > * getControlPoly() const =0
virtual void setParent(ParametricLine *paral)=0
virtual void remove(int i)=0
int mDegree
Degree of the parametric Line.
virtual int getDegree() const =0
virtual void calcSecDer(float t, Vector3D *v)=0
virtual void add(ParametricLine *pl)=0
virtual const QgsPoint * getControlPoint(int number) const =0
virtual void calcFirstDer(float t, Vector3D *v)=0
virtual void setControlPoly(QVector< QgsPoint * > *cp)=0
virtual ParametricLine * getParent() const =0
virtual void calcPoint(float t, QgsPoint *p)=0
Point geometry type, with support for z-dimension and m-values.
Definition qgspoint.h:49
Class Vector3D represents a 3D-Vector, capable to store x-,y- and z-coordinates in double values.
Definition Vector3D.h:36
#define QgsDebugError(str)
Definition qgslogger.h:38