summaryrefslogtreecommitdiff
path: root/inc/TopCnx_EdgeFaceTransition.hxx
blob: fb357da06f5795ded90201403108aeb3b5d22cf5 (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
// 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 _TopCnx_EdgeFaceTransition_HeaderFile
#define _TopCnx_EdgeFaceTransition_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _TopTrans_CurveTransition_HeaderFile
#include <TopTrans_CurveTransition.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _TopAbs_Orientation_HeaderFile
#include <TopAbs_Orientation.hxx>
#endif
class gp_Dir;


//! TheEdgeFaceTransition is an algorithm to   compute <br>
//!          the  cumulated  transition for interferences on an <br>
//!          edge. <br>
class TopCnx_EdgeFaceTransition  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! Creates an empty algorithm. <br>
  Standard_EXPORT   TopCnx_EdgeFaceTransition();
  //! Initialize  the     algorithm    with the    local <br>
//!          description of the edge. <br>
  Standard_EXPORT     void Reset(const gp_Dir& Tgt,const gp_Dir& Norm,const Standard_Real Curv) ;
  //! Initialize the algorithm with a linear Edge. <br>
  Standard_EXPORT     void Reset(const gp_Dir& Tgt) ;
  //! Add a curve  element to the  boundary.  Or  is the <br>
//!          orientation of   the interference on  the boundary <br>
//!          curve. Tr is  the transition  of the interference. <br>
//!          BTr     is   the    boundary  transition    of the <br>
//!          interference. <br>
  Standard_EXPORT     void AddInterference(const Standard_Real Tole,const gp_Dir& Tang,const gp_Dir& Norm,const Standard_Real Curv,const TopAbs_Orientation Or,const TopAbs_Orientation Tr,const TopAbs_Orientation BTr) ;
  //! Returns the current cumulated transition. <br>
  Standard_EXPORT     TopAbs_Orientation Transition() const;
  //! Returns the current cumulated BoundaryTransition. <br>
  Standard_EXPORT     TopAbs_Orientation BoundaryTransition() const;





protected:





private:



TopTrans_CurveTransition myCurveTransition;
Standard_Integer nbBoundForward;
Standard_Integer nbBoundReversed;


};





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


#endif