This file is indexed.

/usr/include/oce/Convert_ConicToBSplineCurve.hxx is in liboce-foundation-dev 0.17.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
// 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 _Convert_ConicToBSplineCurve_HeaderFile
#define _Convert_ConicToBSplineCurve_HeaderFile

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

#include <Handle_TColgp_HArray1OfPnt2d.hxx>
#include <Handle_TColStd_HArray1OfReal.hxx>
#include <Handle_TColStd_HArray1OfInteger.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Real.hxx>
#include <Convert_ParameterisationType.hxx>
class TColgp_HArray1OfPnt2d;
class TColStd_HArray1OfReal;
class TColStd_HArray1OfInteger;
class Standard_OutOfRange;
class Standard_ConstructionError;
class gp_Pnt2d;


//! Root class for algorithms which convert a conic curve into
//! a BSpline curve (CircleToBSplineCurve, EllipseToBSplineCurve,
//! HyperbolaToBSplineCurve, ParabolaToBSplineCurve).
//! These algorithms all work on 2D curves from the gp
//! package and compute all the data needed to construct a
//! BSpline curve equivalent to the conic curve. This data consists of:
//! -   the degree of the curve,
//! -   the periodic characteristics of the curve,
//! -   a poles table with associated weights,
//! -   a knots table with associated multiplicities.
//! The abstract class ConicToBSplineCurve provides a
//! framework for storing and consulting this computed data.
//! The data may then be used to construct a
//! Geom2d_BSplineCurve curvSuper class of the following classes :
//! This abstract class implements the methods to get the geometric
//! representation of the B-spline curve equivalent to the conic.
//! The B-spline is computed at the creation time in the sub classes.
//! The B-spline curve is defined with its degree, its control points
//! (Poles), its weights, its knots and their multiplicity.
//! All the geometric entities used in this package are defined in 2D
//! space.
//! KeyWords :
//! Convert, Conic, BSplineCurve, 2D.
class Convert_ConicToBSplineCurve 
{
public:

  DEFINE_STANDARD_ALLOC

  
  //! Returns the degree of the BSpline curve whose data is
  //! computed in this framework.
  Standard_EXPORT   Standard_Integer Degree()  const;
  
  //! Returns the number of poles of the BSpline curve whose
  //! data is computed in this framework.
  Standard_EXPORT   Standard_Integer NbPoles()  const;
  
  //! Returns the number of knots of the BSpline curve whose
  //! data is computed in this framework.
  Standard_EXPORT   Standard_Integer NbKnots()  const;
  
  //! Returns true if the BSpline curve whose data is computed in
  //! this framework is periodic.
  Standard_EXPORT   Standard_Boolean IsPeriodic()  const;
  
  //! Returns the pole of index Index to the poles table of the
  //! BSpline curve whose data is computed in this framework.
  //! Exceptions
  //! Standard_OutOfRange if Index is outside the bounds of
  //! the poles table of the BSpline curve whose data is computed in this framework.
  Standard_EXPORT   gp_Pnt2d Pole (const Standard_Integer Index)  const;
  
  //! Returns the weight of the pole of index Index to the poles
  //! table of the BSpline curve whose data is computed in this framework.
  //! Exceptions
  //! Standard_OutOfRange if Index is outside the bounds of
  //! the poles table of the BSpline curve whose data is computed in this framework.
  Standard_EXPORT   Standard_Real Weight (const Standard_Integer Index)  const;
  
  //! Returns the knot of index Index to the knots table of the
  //! BSpline curve whose data is computed in this framework.
  //! Exceptions
  //! Standard_OutOfRange if Index is outside the bounds of
  //! the knots table of the BSpline curve whose data is computed in this framework.
  Standard_EXPORT   Standard_Real Knot (const Standard_Integer Index)  const;
  
  //! Returns the multiplicity of the knot of index Index to the
  //! knots table of the BSpline curve whose data is computed in this framework.
  //! Exceptions
  //! Standard_OutOfRange if Index is outside the bounds of
  //! the knots table of the BSpline curve whose data is computed in this framework.
  Standard_EXPORT   Standard_Integer Multiplicity (const Standard_Integer Index)  const;
  
  Standard_EXPORT   void BuildCosAndSin (const Convert_ParameterisationType Parametrisation, Handle(TColStd_HArray1OfReal)& CosNumerator, Handle(TColStd_HArray1OfReal)& SinNumerator, Handle(TColStd_HArray1OfReal)& Denominator, Standard_Integer& Degree, Handle(TColStd_HArray1OfReal)& Knots, Handle(TColStd_HArray1OfInteger)& Mults)  const;
  
  Standard_EXPORT   void BuildCosAndSin (const Convert_ParameterisationType Parametrisation, const Standard_Real UFirst, const Standard_Real ULast, Handle(TColStd_HArray1OfReal)& CosNumerator, Handle(TColStd_HArray1OfReal)& SinNumerator, Handle(TColStd_HArray1OfReal)& Denominator, Standard_Integer& Degree, Handle(TColStd_HArray1OfReal)& Knots, Handle(TColStd_HArray1OfInteger)& Mults)  const;




protected:

  
  Standard_EXPORT Convert_ConicToBSplineCurve(const Standard_Integer NumberOfPoles, const Standard_Integer NumberOfKnots, const Standard_Integer Degree);


  Handle(TColgp_HArray1OfPnt2d) poles;
  Handle(TColStd_HArray1OfReal) weights;
  Handle(TColStd_HArray1OfReal) knots;
  Handle(TColStd_HArray1OfInteger) mults;
  Standard_Integer degree;
  Standard_Integer nbPoles;
  Standard_Integer nbKnots;
  Standard_Boolean isperiodic;


private:





};







#endif // _Convert_ConicToBSplineCurve_HeaderFile