summaryrefslogtreecommitdiff
path: root/inc/TopOpeBRepDS_Curve.hxx
blob: 343b8bef844ca63a55445c8dcffd90ec5dd7e6b8 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
// 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 _TopOpeBRepDS_Curve_HeaderFile
#define _TopOpeBRepDS_Curve_HeaderFile

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

#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _TopoDS_Shape_HeaderFile
#include <TopoDS_Shape.hxx>
#endif
#ifndef _Handle_TopOpeBRepDS_Interference_HeaderFile
#include <Handle_TopOpeBRepDS_Interference.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_Geom2d_Curve_HeaderFile
#include <Handle_Geom2d_Curve.hxx>
#endif
#ifndef _Standard_OStream_HeaderFile
#include <Standard_OStream.hxx>
#endif
class Geom_Curve;
class TopOpeBRepDS_Interference;
class TopoDS_Shape;
class Geom2d_Curve;


//! A Geom point and a tolerance. <br>
class TopOpeBRepDS_Curve  {
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); 
  }

  
  Standard_EXPORT   TopOpeBRepDS_Curve();
  
  Standard_EXPORT   TopOpeBRepDS_Curve(const Handle(Geom_Curve)& P,const Standard_Real T,const Standard_Boolean IsWalk = Standard_False);
  
  Standard_EXPORT     void DefineCurve(const Handle(Geom_Curve)& P,const Standard_Real T,const Standard_Boolean IsWalk) ;
  //! Update the tolerance <br>
  Standard_EXPORT     void Tolerance(const Standard_Real tol) ;
  //! define the interferences face/curve. <br>
  Standard_EXPORT     void SetSCI(const Handle(TopOpeBRepDS_Interference)& I1,const Handle(TopOpeBRepDS_Interference)& I2) ;
  
  Standard_EXPORT    const Handle_TopOpeBRepDS_Interference& GetSCI1() const;
  
  Standard_EXPORT    const Handle_TopOpeBRepDS_Interference& GetSCI2() const;
  
  Standard_EXPORT     void GetSCI(Handle(TopOpeBRepDS_Interference)& I1,Handle(TopOpeBRepDS_Interference)& I2) const;
  
  Standard_EXPORT     void SetShapes(const TopoDS_Shape& S1,const TopoDS_Shape& S2) ;
  
  Standard_EXPORT     void GetShapes(TopoDS_Shape& S1,TopoDS_Shape& S2) const;
  
  Standard_EXPORT    const TopoDS_Shape& Shape1() const;
  
  Standard_EXPORT     TopoDS_Shape& ChangeShape1() ;
  
  Standard_EXPORT    const TopoDS_Shape& Shape2() const;
  
  Standard_EXPORT     TopoDS_Shape& ChangeShape2() ;
  
  Standard_EXPORT    const Handle_Geom_Curve& Curve() const;
  
  Standard_EXPORT     void SetRange(const Standard_Real First,const Standard_Real Last) ;
  
  Standard_EXPORT     Standard_Boolean Range(Standard_Real& First,Standard_Real& Last) const;
  
  Standard_EXPORT     Standard_Real Tolerance() const;
  
  Standard_EXPORT     Handle_Geom_Curve& ChangeCurve() ;
  
  Standard_EXPORT     void Curve(const Handle(Geom_Curve)& C3D,const Standard_Real Tol) ;
  
  Standard_EXPORT    const Handle_Geom2d_Curve& Curve1() const;
  
  Standard_EXPORT     void Curve1(const Handle(Geom2d_Curve)& PC1) ;
  
  Standard_EXPORT    const Handle_Geom2d_Curve& Curve2() const;
  
  Standard_EXPORT     void Curve2(const Handle(Geom2d_Curve)& PC2) ;
  
  Standard_EXPORT     Standard_Boolean IsWalk() const;
  
  Standard_EXPORT     void ChangeIsWalk(const Standard_Boolean B) ;
  
  Standard_EXPORT     Standard_Boolean Keep() const;
  
  Standard_EXPORT     void ChangeKeep(const Standard_Boolean B) ;
  
  Standard_EXPORT     Standard_Integer Mother() const;
  
  Standard_EXPORT     void ChangeMother(const Standard_Integer I) ;
  
  Standard_EXPORT     Standard_Integer DSIndex() const;
  
  Standard_EXPORT     void ChangeDSIndex(const Standard_Integer I) ;
  
  Standard_EXPORT     Standard_OStream& Dump(Standard_OStream& OS,const Standard_Integer index,const Standard_Boolean compact = Standard_True) const;





protected:





private:



Handle_Geom_Curve myCurve;
Standard_Real myFirst;
Standard_Real myLast;
Standard_Boolean myRangeDefined;
Standard_Real myTolerance;
Standard_Boolean myIsWalk;
TopoDS_Shape myS1;
TopoDS_Shape myS2;
Handle_TopOpeBRepDS_Interference mySCI1;
Handle_TopOpeBRepDS_Interference mySCI2;
Standard_Boolean myKeep;
Standard_Integer myMother;
Standard_Integer myDSIndex;


};





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


#endif