summaryrefslogtreecommitdiff
path: root/inc/ShapeAnalysis_TransferParameters.hxx
blob: 96bc54d36e04b4cc257fc399b592f500e8669a96 (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
// 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 _ShapeAnalysis_TransferParameters_HeaderFile
#define _ShapeAnalysis_TransferParameters_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_ShapeAnalysis_TransferParameters_HeaderFile
#include <Handle_ShapeAnalysis_TransferParameters.hxx>
#endif

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _TopoDS_Edge_HeaderFile
#include <TopoDS_Edge.hxx>
#endif
#ifndef _TopoDS_Face_HeaderFile
#include <TopoDS_Face.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Handle_TColStd_HSequenceOfReal_HeaderFile
#include <Handle_TColStd_HSequenceOfReal.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class TopoDS_Edge;
class TopoDS_Face;
class TColStd_HSequenceOfReal;


//! This tool is used for transferring parameters <br>
//!          from 3d curve of the edge to pcurve and vice versa. <br>
class ShapeAnalysis_TransferParameters : public MMgt_TShared {

public:

  //! Creates empty tool with myShift = 0 and myScale = 1 <br>
  Standard_EXPORT   ShapeAnalysis_TransferParameters();
  //! Creates a tool and initializes it with edge and face <br>
  Standard_EXPORT   ShapeAnalysis_TransferParameters(const TopoDS_Edge& E,const TopoDS_Face& F);
  //! Initialize a tool with edge and face <br>
  Standard_EXPORT   virtual  void Init(const TopoDS_Edge& E,const TopoDS_Face& F) ;
  //! Sets maximal tolerance to use linear recomputation of <br>
//!          parameters. <br>
  Standard_EXPORT     void SetMaxTolerance(const Standard_Real maxtol) ;
  //! Transfers parameters given by sequence Params from 3d curve <br>
//!          to pcurve (if To2d is True) or back (if To2d is False) <br>
  Standard_EXPORT   virtual  Handle_TColStd_HSequenceOfReal Perform(const Handle(TColStd_HSequenceOfReal)& Params,const Standard_Boolean To2d) ;
  //! Transfers parameter given by sequence Params from 3d curve <br>
//!          to pcurve (if To2d is True) or back (if To2d is False) <br>
  Standard_EXPORT   virtual  Standard_Real Perform(const Standard_Real Param,const Standard_Boolean To2d) ;
  //!Recomputes range of curves from NewEdge. <br>
//!	        If Is2d equals True parameters are recomputed by curve2d else by curve3d. <br>
  Standard_EXPORT   virtual  void TransferRange(TopoDS_Edge& newEdge,const Standard_Real prevPar,const Standard_Real currPar,const Standard_Boolean To2d) ;
  //! Returns True if 3d curve of edge and pcurve are SameRange <br>
//!          (in default implementation, if myScale == 1 and myShift == 0) <br>
  Standard_EXPORT   virtual  Standard_Boolean IsSameRange() const;




  DEFINE_STANDARD_RTTI(ShapeAnalysis_TransferParameters)

protected:


Standard_Real myFirst;
Standard_Real myLast;
TopoDS_Edge myEdge;
Standard_Real myMaxTolerance;


private: 


Standard_Real myShift;
Standard_Real myScale;
Standard_Real myFirst2d;
Standard_Real myLast2d;
TopoDS_Face myFace;


};





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


#endif