blob: abc6ee33128eb9c5ba3494710ddc851e0d9b29b4 (
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
|
-- File: TopoDS_TShape.cdl
-- Created: Thu Dec 13 15:30:10 1990
-- Author: Remi Lequette
---Copyright: Matra Datavision 1990, 1992
deferred class TShape from TopoDS inherits TShared from MMgt
---Purpose: A TShape is a topological structure describing a
-- set of points in a 2D or 3D space.
--
-- TShapes are defined by their optional domain
-- (geometry) and their components (other TShapes
-- with Locations and Orientations). The components
-- are stored in a List of Shapes.
--
-- A TShape contains the following boolean flags :
--
-- - Free : Free or Frozen.
-- - Modified : Has been modified.
-- - Checked : Has been checked.
-- - Orientable : Can be oriented.
-- - Closed : Is closed.
-- - Infinite : Is infinite.
-- - Convex : Is convex.
--
--
-- Users have no direct access to the classes derived
-- from TShape. They handle them with the classes
-- derived from Shape.
uses
ShapeEnum from TopAbs,
ListOfShape from TopoDS
raises
ConstructionError from Standard
is
Initialize;
---C++: inline
---Purpose: Constructs an empty TShape.
-- Free : True
-- Modified : True
-- Checked : False
-- Orientable : True
-- Closed : False
-- Infinite : False
-- Convex : False
Free(me) returns Boolean
---C++: inline
---Purpose: Returns the free flag.
is static;
Free(me : mutable; F : Boolean)
---C++: inline
---Purpose: Sets the free flag.
is static;
Modified(me) returns Boolean
---C++: inline
---Purpose: Returns the modification flag.
is static;
Modified(me : mutable; M : Boolean)
---C++: inline
---Purpose: Sets the modification flag.
is static;
Checked(me) returns Boolean
---C++: inline
---Purpose: Returns the checked flag.
is static;
Checked(me : mutable; C : Boolean)
---C++: inline
---Purpose: Sets the checked flag.
is static;
Orientable(me) returns Boolean
---C++: inline
---Purpose: Returns the orientability flag.
is static;
Orientable(me : mutable; C : Boolean)
---C++: inline
---Purpose: Sets the orientability flag.
is static;
Closed(me) returns Boolean
---C++: inline
---Purpose: Returns the closedness flag.
is static;
Closed(me : mutable; C : Boolean)
---C++: inline
---Purpose: Sets the closedness flag.
is static;
Infinite(me) returns Boolean
---C++: inline
---Purpose: Returns the infinity flag.
is static;
Infinite(me : mutable; C : Boolean)
---C++: inline
---Purpose: Sets the infinity flag.
is static;
Convex(me) returns Boolean
---C++: inline
---Purpose: Returns the convexness flag.
is static;
Convex(me : mutable; C : Boolean)
---C++: inline
---Purpose: Sets the convexness flag.
is static;
ShapeType(me) returns ShapeEnum from TopAbs
---Purpose: Returns the type as a term of the ShapeEnum enum :
-- VERTEX, EDGE, WIRE, FACE, ....
is deferred;
EmptyCopy(me) returns mutable TShape from TopoDS
---Purpose: Returns a copy of the TShape with no sub-shapes.
is deferred;
--
-- Methods to access the list of shapes
-- Used by the Builder and the Iterator
--
Shapes(me) returns ListOfShape from TopoDS
---C++: return const &
---C++: inline
is static private;
ChangeShapes(me : mutable) returns ListOfShape from TopoDS
---C++: return &
---C++: inline
is static private;
fields
myShapes : ListOfShape from TopoDS;
myFlags : Integer from Standard;
friends
class Iterator from TopoDS,
class Builder from TopoDS
end TShape;
|