libsurf
Programmer's Documentation

openframe.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_OPENFRAME_H
16 #define SURF_OPENFRAME_H
17 
18 #include "curve.h"
19 
27 class OpenFrame : public Curve
28 {
29 public:
30 
32  explicit OpenFrame(const std::string & s = "") : Curve(s) {}
33 
35  Vector init(const PointList<3> & pts);
36 
38  virtual XmlElement toXml(bool share = false) const;
39 
41  virtual void fromXml(const XmlElement & xe);
42 
44  virtual OpenFrame *clone() const;
45 
46 private:
47 
50 };
51 
52 typedef boost::shared_ptr<OpenFrame> OpenFramePtr;
53 
54 #endif
55 
PointList< 3 > ipp
interpolation points
Definition: openframe.h:49
OpenFrame(const std::string &s="")
initialize with name
Definition: openframe.h:32
Open spline curve.
Definition: openframe.h:27
virtual void fromXml(const XmlElement &xe)
construct from xml definition
Definition: openframe.cpp:92
Vector init(const PointList< 3 > &pts)
interpolate points
Definition: openframe.cpp:22
Cubic section curve.
Definition: curve.h:35
virtual XmlElement toXml(bool share=false) const
xml representation stores interpolation points
Definition: openframe.cpp:73
virtual OpenFrame * clone() const
generate a clone
Definition: openframe.cpp:118
Generated on Wed Jan 19 2022 03:03:15 for libsurf by   doxygen 1.8.5