File: GeomFill_Profiler.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 (108 lines) | stat: -rw-r--r-- 2,971 bytes parent folder | download | duplicates (3)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// 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 _GeomFill_Profiler_HeaderFile
#define _GeomFill_Profiler_HeaderFile

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

#include <TColGeom_SequenceOfCurve.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_Geom_Curve.hxx>
#include <Standard_Real.hxx>
#include <Standard_Integer.hxx>
class StdFail_NotDone;
class Standard_DomainError;
class Geom_Curve;
class TColgp_Array1OfPnt;
class TColStd_Array1OfReal;
class TColStd_Array1OfInteger;


//! Evaluation of the common BSplineProfile of a group
//! of curves  from Geom. All the curves will have the
//! same  degree,  the same knot-vector, so  the  same
//! number of poles.
class GeomFill_Profiler 
{
public:

  DEFINE_STANDARD_ALLOC

  
  Standard_EXPORT GeomFill_Profiler();
  Standard_EXPORT virtual ~GeomFill_Profiler();
  
  Standard_EXPORT   void AddCurve (const Handle(Geom_Curve)& Curve) ;
  
  //! Converts all curves to BSplineCurves.
  //! Set them to the common profile.
  //! <PTol> is used to compare 2 knots.
  Standard_EXPORT virtual   void Perform (const Standard_Real PTol) ;
  
  //! Raises if not yet perform
  Standard_EXPORT   Standard_Integer Degree()  const;
  
      Standard_Boolean IsPeriodic()  const;
  
  //! Raises if not yet perform
  Standard_EXPORT   Standard_Integer NbPoles()  const;
  
  //! returns in <Poles> the  poles  of the BSplineCurve
  //! from index <Index> adjusting to the current profile.
  //! Raises if not yet perform
  //! Raises if <Index> not in the range [1,NbCurves]
  //! if  the  length  of  <Poles>  is  not  equal  to
  //! NbPoles().
  Standard_EXPORT   void Poles (const Standard_Integer Index, TColgp_Array1OfPnt& Poles)  const;
  
  //! returns in <Weights> the weights of the BSplineCurve
  //! from index <Index> adjusting to the current profile.
  //! Raises if not yet perform
  //! Raises if <Index> not in the range [1,NbCurves] or
  //! if  the  length  of  <Weights>  is  not  equal  to
  //! NbPoles().
  Standard_EXPORT   void Weights (const Standard_Integer Index, TColStd_Array1OfReal& Weights)  const;
  
  //! Raises if not yet perform
  Standard_EXPORT   Standard_Integer NbKnots()  const;
  
  //! Raises if not yet perform
  //! Raises if  the lengthes of <Knots> and <Mults> are
  //! not equal to NbKnots().
  Standard_EXPORT   void KnotsAndMults (TColStd_Array1OfReal& Knots, TColStd_Array1OfInteger& Mults)  const;
  
     const  Handle(Geom_Curve)& Curve (const Standard_Integer Index)  const;




protected:



  TColGeom_SequenceOfCurve mySequence;
  Standard_Boolean myIsDone;
  Standard_Boolean myIsPeriodic;


private:





};


#include <GeomFill_Profiler.lxx>





#endif // _GeomFill_Profiler_HeaderFile