1 /***************************************************************************
2                              ParametricLine.cpp
3                              ------------------
4     copyright            : (C) 2004 by Marco Hugentobler
5     email                : mhugent@geo.unizh.ch
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 
add(ParametricLine * pl)20 void ParametricLine::add( ParametricLine *pl )
21 {
22   Q_UNUSED( pl )
23   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
24 }
25 
calcFirstDer(float t,Vector3D * v)26 void ParametricLine::calcFirstDer( float t, Vector3D *v )
27 {
28   Q_UNUSED( t )
29   Q_UNUSED( v )
30   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
31 }
32 
calcSecDer(float t,Vector3D * v)33 void ParametricLine::calcSecDer( float t, Vector3D *v )
34 {
35   Q_UNUSED( t )
36   Q_UNUSED( v )
37   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
38 }
39 
calcPoint(float t,QgsPoint * p)40 void ParametricLine::calcPoint( float t, QgsPoint *p )
41 {
42   Q_UNUSED( t )
43   Q_UNUSED( p )
44   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
45 }
46 
getParent() const47 ParametricLine *ParametricLine::getParent() const
48 {
49   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
50   return nullptr;
51 }
52 
remove(int i)53 void ParametricLine::remove( int i )
54 {
55   Q_UNUSED( i )
56   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
57 }
58 
setControlPoly(QVector<QgsPoint * > * cp)59 void ParametricLine::setControlPoly( QVector<QgsPoint *> *cp )
60 {
61   Q_UNUSED( cp )
62   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
63 }
64 
setParent(ParametricLine * paral)65 void ParametricLine::setParent( ParametricLine *paral )
66 {
67   Q_UNUSED( paral )
68   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
69 }
70 
getDegree() const71 int ParametricLine::getDegree() const
72 {
73   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
74   return mDegree;
75 }
76 
getControlPoint(int number) const77 const QgsPoint *ParametricLine::getControlPoint( int number ) const
78 {
79   Q_UNUSED( number )
80   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
81   return nullptr;
82 }
83 
getControlPoly() const84 const QVector<QgsPoint *> *ParametricLine::getControlPoly() const
85 {
86   QgsDebugMsg( QStringLiteral( "warning, derive a class from ParametricLine" ) );
87   return nullptr;
88 }
89