blob: 635c3e89ca825e3de34f1e7d62317fa3328fee7b (
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
|
// 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 _TopoDS_HeaderFile
#define _TopoDS_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
class TopoDS_Vertex;
class TopoDS_Shape;
class TopoDS_Edge;
class TopoDS_Wire;
class TopoDS_Face;
class TopoDS_Shell;
class TopoDS_Solid;
class TopoDS_CompSolid;
class TopoDS_Compound;
class TopoDS_Shape;
class TopoDS_HShape;
class TopoDS_ListOfShape;
class TopoDS_TShape;
class TopoDS_TVertex;
class TopoDS_Vertex;
class TopoDS_TEdge;
class TopoDS_Edge;
class TopoDS_TWire;
class TopoDS_Wire;
class TopoDS_TFace;
class TopoDS_Face;
class TopoDS_TShell;
class TopoDS_Shell;
class TopoDS_TSolid;
class TopoDS_Solid;
class TopoDS_TCompSolid;
class TopoDS_CompSolid;
class TopoDS_TCompound;
class TopoDS_Compound;
class TopoDS_Builder;
class TopoDS_Iterator;
class TopoDS_ListNodeOfListOfShape;
class TopoDS_ListIteratorOfListOfShape;
//! Provides methods to cast objects of class <br>
//! TopoDS_Shape to be onjects of more specialized <br>
//! sub-classes. Types are verified, thus in the example <br>
//! below, the first two blocks are correct but the third is <br>
//! rejected by the compiler. <br>
class TopoDS {
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);
}
static const TopoDS_Vertex& Vertex(const TopoDS_Shape& S) ;
inline static TopoDS_Vertex& Vertex(TopoDS_Shape&);
static const TopoDS_Edge& Edge(const TopoDS_Shape& S) ;
inline static TopoDS_Edge& Edge(TopoDS_Shape&);
static const TopoDS_Wire& Wire(const TopoDS_Shape& S) ;
inline static TopoDS_Wire& Wire(TopoDS_Shape&);
static const TopoDS_Face& Face(const TopoDS_Shape& S) ;
inline static TopoDS_Face& Face(TopoDS_Shape&);
static const TopoDS_Shell& Shell(const TopoDS_Shape& S) ;
inline static TopoDS_Shell& Shell(TopoDS_Shape&);
static const TopoDS_Solid& Solid(const TopoDS_Shape& S) ;
inline static TopoDS_Solid& Solid(TopoDS_Shape&);
static const TopoDS_CompSolid& CompSolid(const TopoDS_Shape& S) ;
inline static TopoDS_CompSolid& CompSolid(TopoDS_Shape&);
static const TopoDS_Compound& Compound(const TopoDS_Shape& S) ;
inline static TopoDS_Compound& Compound(TopoDS_Shape&);
protected:
private:
friend class TopoDS_Shape;
friend class TopoDS_HShape;
friend class TopoDS_ListOfShape;
friend class TopoDS_TShape;
friend class TopoDS_TVertex;
friend class TopoDS_Vertex;
friend class TopoDS_TEdge;
friend class TopoDS_Edge;
friend class TopoDS_TWire;
friend class TopoDS_Wire;
friend class TopoDS_TFace;
friend class TopoDS_Face;
friend class TopoDS_TShell;
friend class TopoDS_Shell;
friend class TopoDS_TSolid;
friend class TopoDS_Solid;
friend class TopoDS_TCompSolid;
friend class TopoDS_CompSolid;
friend class TopoDS_TCompound;
friend class TopoDS_Compound;
friend class TopoDS_Builder;
friend class TopoDS_Iterator;
friend class TopoDS_ListNodeOfListOfShape;
friend class TopoDS_ListIteratorOfListOfShape;
};
#include <TopoDS.lxx>
// other Inline functions and methods (like "C++: function call" methods)
#endif
|