summaryrefslogtreecommitdiff
path: root/inc/ShapeExtend_ComplexCurve.hxx
blob: 467b13c25af870ecd84e44938f9c576a3898ce66 (plain)
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
// 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 _ShapeExtend_ComplexCurve_HeaderFile
#define _ShapeExtend_ComplexCurve_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_ShapeExtend_ComplexCurve_HeaderFile
#include <Handle_ShapeExtend_ComplexCurve.hxx>
#endif

#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Geom_Curve_HeaderFile
#include <Geom_Curve.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _GeomAbs_Shape_HeaderFile
#include <GeomAbs_Shape.hxx>
#endif
class Geom_Curve;
class gp_Trsf;
class gp_Pnt;
class gp_Vec;


//! Defines a curve which consists of several segments. <br>
//!          Implements basic interface to it. <br>
class ShapeExtend_ComplexCurve : public Geom_Curve {

public:

  //! Returns number of curves <br>
  Standard_EXPORT   virtual  Standard_Integer NbCurves() const = 0;
  //! Returns curve given by its index <br>
  Standard_EXPORT   virtual const Handle_Geom_Curve& Curve(const Standard_Integer index) const = 0;
  //! Returns number of the curve for the given parameter U <br>
//!          and local paramete r UOut for the found curve <br>
  Standard_EXPORT   virtual  Standard_Integer LocateParameter(const Standard_Real U,Standard_Real& UOut) const = 0;
  //! Returns global parameter for the whole curve according <br>
//!          to the segment and local parameter on it <br>
  Standard_EXPORT   virtual  Standard_Real LocalToGlobal(const Standard_Integer index,const Standard_Real Ulocal) const = 0;
  //! Applies transformation to each curve <br>
  Standard_EXPORT   virtual  void Transform(const gp_Trsf& T) ;
  //! Returns 1 - U <br>
      virtual  Standard_Real ReversedParameter(const Standard_Real U) const;
  //! Returns 0 <br>
      virtual  Standard_Real FirstParameter() const;
  //! Returns 1 <br>
      virtual  Standard_Real LastParameter() const;
  //! Returns True if the curve is closed <br>
      virtual  Standard_Boolean IsClosed() const;
  //! Returns False <br>
      virtual  Standard_Boolean IsPeriodic() const;
  //! Returns GeomAbs_C0 <br>
      virtual  GeomAbs_Shape Continuity() const;
  //! Returns False if N > 0 <br>
      virtual  Standard_Boolean IsCN(const Standard_Integer N) const;
  //! Returns point at parameter U. <br>
//!          Finds appropriate curve and local parameter on it. <br>
  Standard_EXPORT   virtual  void D0(const Standard_Real U,gp_Pnt& P) const;
  
  Standard_EXPORT   virtual  void D1(const Standard_Real U,gp_Pnt& P,gp_Vec& V1) const;
  
  Standard_EXPORT   virtual  void D2(const Standard_Real U,gp_Pnt& P,gp_Vec& V1,gp_Vec& V2) const;
  
  Standard_EXPORT   virtual  void D3(const Standard_Real U,gp_Pnt& P,gp_Vec& V1,gp_Vec& V2,gp_Vec& V3) const;
  
  Standard_EXPORT   virtual  gp_Vec DN(const Standard_Real U,const Standard_Integer N) const;
  //! Returns scale factor for recomputing of deviatives. <br>
  Standard_EXPORT   virtual  Standard_Real GetScaleFactor(const Standard_Integer ind) const = 0;
  //! Checks geometrical connectivity of the curves, including <br>
//!          closure (sets fields myClosed) <br>
  Standard_EXPORT     Standard_Boolean CheckConnectivity(const Standard_Real Preci) ;




  DEFINE_STANDARD_RTTI(ShapeExtend_ComplexCurve)

protected:

  
  Standard_EXPORT   ShapeExtend_ComplexCurve();
  //! Transform the derivative according to its order <br>
  Standard_EXPORT     void TransformDN(gp_Vec& V,const Standard_Integer ind,const Standard_Integer N) const;

Standard_Boolean myClosed;


private: 




};


#include <ShapeExtend_ComplexCurve.lxx>



// other Inline functions and methods (like "C++: function call" methods)


#endif