libsurf
Programmer's Documentation

uvcubiccurve.h (r6227/r5385)
1 
2 /* Copyright (C) 2015 David Eller <david@larosterna.com>
3  *
4  * Commercial License Usage
5  * Licensees holding valid commercial licenses may use this file in accordance
6  * with the terms contained in their respective non-exclusive license agreement.
7  * For further information contact david@larosterna.com .
8  *
9  * GNU General Public License Usage
10  * Alternatively, this file may be used under the terms of the GNU General
11  * Public License version 3.0 as published by the Free Software Foundation and
12  * appearing in the file gpl.txt included in the packaging of this file.
13  */
14 
15 #ifndef SURF_UVCUBICCURVE_H
16 #define SURF_UVCUBICCURVE_H
17 
18 #include "uvsplinecurve.h"
19 #include <genua/xmlelement.h>
20 
26 class UvCubicCurve : public UvSplineCurve<3>
27 {
28 public:
29 
31  explicit UvCubicCurve(SurfacePtr psf = SurfacePtr()) : UvSplineCurve<3>(psf) {}
32 
34  void interpolate(const PointList<2> &pts) {
36  }
37 
39  UvCubicCurve *clone() const;
40 
42  AbstractUvCurvePair split(Real t) const;
43 
45  XmlElement toXml(bool share) const;
46 
48  void fromXml(const XmlElement &xe);
49 };
50 
51 #endif // UVCUBICCURVE_H
AbstractUvCurvePair split(Real t) const
split curve at t
Definition: uvcubiccurve.cpp:22
Cubic spline curve in parameter space.
Definition: uvcubiccurve.h:26
Parameter-space spline curve with compile-time degree.
Definition: forward.h:220
XmlElement toXml(bool share) const
generate xml representation
Definition: uvcubiccurve.cpp:35
void interpolate(const PointList< 2 > &pts)
forward to help compiler
Definition: uvcubiccurve.h:34
const Vector & interpolate(const PointList< 2 > &pts)
contruct so that points are interpolated exactly
Definition: uvsplinecurve.h:42
UvCubicCurve * clone() const
create cloned object
Definition: uvcubiccurve.cpp:16
void fromXml(const XmlElement &xe)
recover from xml representation
Definition: uvcubiccurve.cpp:48
UvCubicCurve(SurfacePtr psf=SurfacePtr())
initialize with surface
Definition: uvcubiccurve.h:31
Generated on Wed Jan 19 2022 03:03:15 for libsurf by   doxygen 1.8.5