File: GeomLib_Interpolate.hxx

package info (click to toggle)
oce 0.18.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 301,460 kB
  • sloc: cpp: 1,190,610; ansic: 67,225; sh: 11,667; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 344; xml: 292; perl: 37
file content (78 lines) | stat: -rw-r--r-- 1,921 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _GeomLib_Interpolate_HeaderFile
#define _GeomLib_Interpolate_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Handle_Geom_BSplineCurve.hxx>
#include <Standard_Boolean.hxx>
#include <GeomLib_InterpolationErrors.hxx>
#include <Standard_Integer.hxx>
class Geom_BSplineCurve;
class StdFail_NotDone;
class Standard_OutOfRange;
class TColgp_Array1OfPnt;
class TColStd_Array1OfReal;


//! this class is used to construct a BSpline curve by
//! interpolation  of points  at given parameters  The
//! continuity   of the curve   is degree -  1 and the
//! method used when boundary  condition are not given
//! is to use odd degrees  and null the derivatives on
//! both sides from degree -1 down to (degree+1) / 2
//! When even degree is given the returned curve is of
//! degree - 1 so that the degree of the curve is odd
class GeomLib_Interpolate 
{
public:

  DEFINE_STANDARD_ALLOC

  
  Standard_EXPORT GeomLib_Interpolate(const Standard_Integer Degree, const Standard_Integer NumPoints, const TColgp_Array1OfPnt& Points, const TColStd_Array1OfReal& Parameters);
  

  //! returns if everything went OK
      Standard_Boolean IsDone()  const;
  
  //! returns the error type if any
      GeomLib_InterpolationErrors Error()  const;
  
  //! returns the interpolated curve of the requested degree
  Standard_EXPORT   Handle(Geom_BSplineCurve) Curve()  const;




protected:





private:



  Handle(Geom_BSplineCurve) myCurve;
  Standard_Boolean myIsDone;
  GeomLib_InterpolationErrors myError;


};


#include <GeomLib_Interpolate.lxx>





#endif // _GeomLib_Interpolate_HeaderFile