b311480e |
1 | -- Created on: 1990-12-13 |
2 | -- Created by: Remi Lequette |
3 | -- Copyright (c) 1990-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
b311480e |
16 | |
7fd59977 |
17 | -- Update: Frederic Maupas |
7fd59977 |
18 | |
19 | |
20 | deferred class TShape from PTopoDS inherits Persistent from Standard |
21 | |
22 | ---Purpose: A TShape is a topological structure describing a |
23 | -- set of points in a 2D or 3D space. |
ff8178ef |
24 | -- This is a deferred class used to support |
25 | -- topological objects. |
7fd59977 |
26 | |
27 | -- All the information stored are potentially frozen. So has |
28 | -- the "free" information no sense in the D.B. context. A |
29 | -- Shape from PTopoDS translated in a Shape from TopoDS will |
30 | -- be automatically frozen (not free). |
31 | |
32 | uses |
33 | HArray1OfHShape from PTopoDS, |
34 | HShape from PTopoDS, |
35 | ShapeEnum from TopAbs |
36 | |
37 | is |
38 | Initialize; |
39 | ---Level: Internal |
40 | |
41 | ShapeType(me) returns ShapeEnum from TopAbs |
42 | ---Purpose: Returns the type as a term of the ShapeEnum enum : |
43 | -- VERTEX, EDGE, WIRE, FACE, .... |
44 | ---Level: Internal |
45 | is deferred; |
46 | |
47 | Modified(me) returns Boolean |
48 | ---Purpose: Returns the modification flag. |
49 | ---Level: Internal |
50 | is static; |
51 | |
52 | Modified(me : mutable; M : Boolean) |
53 | ---Purpose: Sets the modification flag. |
54 | ---Level: Internal |
55 | is static; |
56 | |
57 | Checked(me) returns Boolean |
58 | ---Purpose: Returns the checked flag. |
59 | ---Level: Internal |
60 | is static; |
61 | |
62 | Checked(me : mutable; C : Boolean) |
63 | ---Purpose: Sets the checked flag. |
64 | ---Level: Internal |
65 | is static; |
66 | |
67 | Orientable(me) returns Boolean |
68 | ---Purpose: Returns the orientability flag. |
69 | ---Level: Internal |
70 | is static; |
71 | |
72 | Orientable(me : mutable; C : Boolean) |
73 | ---Purpose: Sets the orientability flag. |
74 | ---Level: Internal |
75 | is static; |
76 | |
77 | Closed(me) returns Boolean |
78 | ---Purpose: Returns the closedness flag. |
79 | ---Level: Internal |
80 | is static; |
81 | |
82 | Closed(me : mutable; C : Boolean) |
83 | ---Purpose: Sets the closedness flag. |
84 | ---Level: Internal |
85 | is static; |
86 | |
87 | Infinite(me) returns Boolean |
88 | ---Purpose: Returns the infinity flag. |
89 | ---Level: Internal |
90 | is static; |
91 | |
92 | Infinite(me : mutable; C : Boolean) |
93 | ---Purpose: Sets the infinity flag. |
94 | ---Level: Internal |
95 | is static; |
96 | |
97 | Convex(me) returns Boolean |
98 | ---Purpose: Returns the convexness flag. |
99 | ---Level: Internal |
100 | is static; |
101 | |
102 | Convex(me : mutable; C : Boolean) |
103 | ---Purpose: Sets the convexness flag. |
104 | ---Level: Internal |
105 | is static; |
106 | |
107 | |
108 | Shapes(me) returns HArray1OfHShape from PTopoDS |
109 | ---Purpose: Sets the hshape list |
110 | ---Level: Internal |
111 | is static; |
112 | |
113 | Shapes(me; I : Integer from Standard) returns HShape from PTopoDS |
114 | ---Purpose: Sets the i th element of the HShape list |
115 | ---Level: Internal |
116 | is static; |
117 | |
118 | Shapes(me: mutable; S : HArray1OfHShape from PTopoDS) |
119 | ---Purpose: Returns the HShape list |
120 | ---Level: Internal |
121 | is static; |
122 | |
123 | Shapes(me: mutable; I : Integer from Standard; S : HShape from PTopoDS) |
124 | ---Purpose: Returns the i th element of the hshape list |
125 | ---Level: Internal |
126 | is static; |
127 | |
128 | |
129 | fields |
130 | |
131 | myShapes : HArray1OfHShape from PTopoDS; |
132 | myFlags : Integer from Standard; |
133 | |
134 | end TShape; |
135 | |