1 -- Created by: Peter KURNEV
2 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
4 -- The content of this file is subject to the Open CASCADE Technology Public
5 -- License Version 6.5 (the "License"). You may not use the content of this file
6 -- except in compliance with the License. Please obtain a copy of the License
7 -- at http://www.opencascade.org and read it completely before using this file.
9 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12 -- The Original Code and all software distributed under the License is
13 -- distributed on an "AS IS" basis, without warranty of any kind, and the
14 -- Initial Developer hereby disclaims all such warranties, including without
15 -- limitation, any warranties of merchantability, fitness for a particular
16 -- purpose or non-infringement. Please see the License for the specific terms
17 -- and conditions governing the rights and limitations under the License.
20 class ShapeInfo from BOPDS
23 -- The class BOPDS_ShapeInfo is to store
24 -- handy information about shape
28 BaseAllocator from BOPCol,
29 ListOfInteger from BOPCol,
36 returns ShapeInfo from BOPDS;
37 ---C++: alias "virtual ~BOPDS_ShapeInfo();"
42 Create (theAllocator: BaseAllocator from BOPCol)
43 returns ShapeInfo from BOPDS;
47 --- theAllocator - the allocator to manage the memory
50 theS: Shape from TopoDS);
54 --- Sets the shape <theS>
56 returns Shape from TopoDS;
57 ---C++: return const &
64 theType: ShapeEnum from TopAbs);
68 --- Sets the type of shape theType
71 returns ShapeEnum from TopAbs;
75 --- Returns the type of shape
82 --- Sets the boundung box of the shape theBox
87 ---C++: return const &
91 --- Returns the boundung box of the shape
99 --- Returns the boundung box of the shape
102 returns ListOfInteger from BOPCol;
103 ---C++: return const &
107 --- Returns the list of indices of sub-shapes
109 ChangeSubShapes(me:out)
110 returns ListOfInteger from BOPCol;
114 --- Selector/ Modifier
115 --- Returns the list of indices of sub-shapes
118 theI:Integer from Standard)
119 returns Boolean from Standard;
123 --- Returns true if the shape has sub-shape with
127 returns Boolean from Standard;
130 --- Returns true if the shape has a reference information
133 theI: Integer from Standard);
137 --- Sets the index of a reference information
140 returns Integer from Standard;
144 --- Returns the index of a reference information
147 returns Boolean from Standard;
151 --- Returns true if the shape has boundary representation
156 returns Boolean from Standard;
160 --- Returns true if there is flag.
163 theFlag:out Integer from Standard)
164 returns Boolean from Standard;
168 --- Returns true if there is flag.
169 --- Returns the the flag theFlag
172 theI:Integer from Standard);
178 returns Integer from Standard;
186 myShape : Shape from TopoDS is protected;
187 myType : ShapeEnum from TopAbs is protected;
188 myBox : Box from Bnd is protected;
189 mySubShapes: ListOfInteger from BOPCol is protected;
190 myReference: Integer from Standard is protected;
191 myFlag : Integer from Standard is protected;