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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
// 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 _DrawTrSurf_HeaderFile
#define _DrawTrSurf_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Handle_Geom_Geometry_HeaderFile
#include <Handle_Geom_Geometry.hxx>
#endif
#ifndef _Handle_Geom2d_Curve_HeaderFile
#include <Handle_Geom2d_Curve.hxx>
#endif
#ifndef _Handle_Poly_Triangulation_HeaderFile
#include <Handle_Poly_Triangulation.hxx>
#endif
#ifndef _Handle_Poly_Polygon3D_HeaderFile
#include <Handle_Poly_Polygon3D.hxx>
#endif
#ifndef _Handle_Poly_Polygon2D_HeaderFile
#include <Handle_Poly_Polygon2D.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Geom_Curve_HeaderFile
#include <Handle_Geom_Curve.hxx>
#endif
#ifndef _Handle_Geom_BezierCurve_HeaderFile
#include <Handle_Geom_BezierCurve.hxx>
#endif
#ifndef _Handle_Geom_BSplineCurve_HeaderFile
#include <Handle_Geom_BSplineCurve.hxx>
#endif
#ifndef _Handle_Geom2d_BezierCurve_HeaderFile
#include <Handle_Geom2d_BezierCurve.hxx>
#endif
#ifndef _Handle_Geom2d_BSplineCurve_HeaderFile
#include <Handle_Geom2d_BSplineCurve.hxx>
#endif
#ifndef _Handle_Geom_Surface_HeaderFile
#include <Handle_Geom_Surface.hxx>
#endif
#ifndef _Handle_Geom_BezierSurface_HeaderFile
#include <Handle_Geom_BezierSurface.hxx>
#endif
#ifndef _Handle_Geom_BSplineSurface_HeaderFile
#include <Handle_Geom_BSplineSurface.hxx>
#endif
class gp_Pnt;
class gp_Pnt2d;
class Geom_Geometry;
class Geom2d_Curve;
class Poly_Triangulation;
class Poly_Polygon3D;
class Poly_Polygon2D;
class Geom_Curve;
class Geom_BezierCurve;
class Geom_BSplineCurve;
class Geom2d_BezierCurve;
class Geom2d_BSplineCurve;
class Geom_Surface;
class Geom_BezierSurface;
class Geom_BSplineSurface;
class Draw_Interpretor;
class DrawTrSurf_Drawable;
class DrawTrSurf_Point;
class DrawTrSurf_Curve;
class DrawTrSurf_BSplineCurve;
class DrawTrSurf_BezierCurve;
class DrawTrSurf_Curve2d;
class DrawTrSurf_BSplineCurve2d;
class DrawTrSurf_BezierCurve2d;
class DrawTrSurf_Triangulation2D;
class DrawTrSurf_Surface;
class DrawTrSurf_BSplineSurface;
class DrawTrSurf_BezierSurface;
class DrawTrSurf_Triangulation;
class DrawTrSurf_Polygon3D;
class DrawTrSurf_Polygon2D;
//! This package supports the display of parametric <br>
//! curves and surfaces. <br>
//! <br>
//! The Drawable deferred classes is inherited from <br>
//! the Drawable3D class from the package Draw, it <br>
//! adds methods to draw 3D Curves and Curves on 3D <br>
//! Surfaces. <br>
//! <br>
//! The classes Curve Curve2d and Surface are drawable <br>
//! and can be used to draw a single curve from <br>
//! packages Geom or Geom2d or a surface from Geom. <br>
//! <br>
//! The Triangulation and Polygon from the package <br>
//! Poly are also supported. <br>
class DrawTrSurf {
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);
}
//! Sets <G> in the variable <Name>. Overwrite the <br>
//! variable if already set. <br>
Standard_EXPORT static void Set(const Standard_CString Name,const gp_Pnt& G) ;
//! Sets <G> in the variable <Name>. Overwrite the <br>
//! variable if already set. <br>
Standard_EXPORT static void Set(const Standard_CString Name,const gp_Pnt2d& G) ;
//! Sets <G> in the variable <Name>. Overwrite the <br>
//! variable if already set. <br>
Standard_EXPORT static void Set(const Standard_CString Name,const Handle(Geom_Geometry)& G) ;
//! Sets <C> in the variable <Name>. Overwrite the <br>
//! variable if already set. <br>
Standard_EXPORT static void Set(const Standard_CString Name,const Handle(Geom2d_Curve)& C) ;
//! Sets <T> in the variable <Name>. Overwrite the <br>
//! variable if already set. <br>
Standard_EXPORT static void Set(const Standard_CString Name,const Handle(Poly_Triangulation)& T) ;
//! Sets <P> in the variable <Name>. Overwrite the <br>
//! variable if already set. <br>
Standard_EXPORT static void Set(const Standard_CString Name,const Handle(Poly_Polygon3D)& P) ;
//! Sets <P> in the variable <Name>. Overwrite the <br>
//! variable if already set. <br>
Standard_EXPORT static void Set(const Standard_CString Name,const Handle(Poly_Polygon2D)& P) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom_Geometry Get(Standard_CString& Name) ;
//! Gets the variable. Returns False if none and print <br>
//! a warning message. <br>
Standard_EXPORT static Standard_Boolean GetPoint(Standard_CString& Name,gp_Pnt& P) ;
//! Gets the variable. Returns False if none and print <br>
//! a warning message. <br>
Standard_EXPORT static Standard_Boolean GetPoint2d(Standard_CString& Name,gp_Pnt2d& P) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom_Curve GetCurve(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom_BezierCurve GetBezierCurve(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom_BSplineCurve GetBSplineCurve(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom2d_Curve GetCurve2d(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom2d_BezierCurve GetBezierCurve2d(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom2d_BSplineCurve GetBSplineCurve2d(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom_Surface GetSurface(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom_BezierSurface GetBezierSurface(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Geom_BSplineSurface GetBSplineSurface(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Poly_Triangulation GetTriangulation(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Poly_Polygon3D GetPolygon3D(Standard_CString& Name) ;
//! Get the variable <S>. Returns a null handle if <br>
//! none, and print a warning message. <br>
Standard_EXPORT static Handle_Poly_Polygon2D GetPolygon2D(Standard_CString& Name) ;
//! defines display commands. <br>
Standard_EXPORT static void BasicCommands(Draw_Interpretor& I) ;
protected:
private:
friend class DrawTrSurf_Drawable;
friend class DrawTrSurf_Point;
friend class DrawTrSurf_Curve;
friend class DrawTrSurf_BSplineCurve;
friend class DrawTrSurf_BezierCurve;
friend class DrawTrSurf_Curve2d;
friend class DrawTrSurf_BSplineCurve2d;
friend class DrawTrSurf_BezierCurve2d;
friend class DrawTrSurf_Triangulation2D;
friend class DrawTrSurf_Surface;
friend class DrawTrSurf_BSplineSurface;
friend class DrawTrSurf_BezierSurface;
friend class DrawTrSurf_Triangulation;
friend class DrawTrSurf_Polygon3D;
friend class DrawTrSurf_Polygon2D;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|