1 -- Created by: Peter KURNEV
2 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
4 -- This file is part of Open CASCADE Technology software library.
6 -- This library is free software; you can redistribute it and / or modify it
7 -- under the terms of the GNU Lesser General Public version 2.1 as published
8 -- by the Free Software Foundation, with special exception defined in the file
9 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 -- distribution for complete text of the license and disclaimer of any warranty.
12 -- Alternatively, this file may be used under the terms of Open CASCADE
13 -- commercial license or contractual agreement.
15 class ShapeInfo from BOPDS
18 -- The class BOPDS_ShapeInfo is to store
19 -- handy information about shape
23 BaseAllocator from BOPCol,
24 ListOfInteger from BOPCol,
31 returns ShapeInfo from BOPDS;
32 ---C++: alias "virtual ~BOPDS_ShapeInfo();"
37 Create (theAllocator: BaseAllocator from BOPCol)
38 returns ShapeInfo from BOPDS;
42 --- theAllocator - the allocator to manage the memory
45 theS: Shape from TopoDS);
49 --- Sets the shape <theS>
51 returns Shape from TopoDS;
52 ---C++: return const &
59 theType: ShapeEnum from TopAbs);
63 --- Sets the type of shape theType
66 returns ShapeEnum from TopAbs;
70 --- Returns the type of shape
77 --- Sets the boundung box of the shape theBox
82 ---C++: return const &
86 --- Returns the boundung box of the shape
94 --- Returns the boundung box of the shape
97 returns ListOfInteger from BOPCol;
98 ---C++: return const &
102 --- Returns the list of indices of sub-shapes
104 ChangeSubShapes(me:out)
105 returns ListOfInteger from BOPCol;
109 --- Selector/ Modifier
110 --- Returns the list of indices of sub-shapes
113 theI:Integer from Standard)
114 returns Boolean from Standard;
118 --- Returns true if the shape has sub-shape with
122 returns Boolean from Standard;
125 --- Returns true if the shape has a reference information
128 theI: Integer from Standard);
132 --- Sets the index of a reference information
135 returns Integer from Standard;
139 --- Returns the index of a reference information
142 returns Boolean from Standard;
146 --- Returns true if the shape has boundary representation
149 returns Boolean from Standard;
152 --- Returns true if the shape can be participant of
158 returns Boolean from Standard;
162 --- Returns true if there is flag.
165 theFlag:out Integer from Standard)
166 returns Boolean from Standard;
170 --- Returns true if there is flag.
171 --- Returns the the flag theFlag
174 theI:Integer from Standard);
180 returns Integer from Standard;
188 myShape : Shape from TopoDS is protected;
189 myType : ShapeEnum from TopAbs is protected;
190 myBox : Box from Bnd is protected;
191 mySubShapes: ListOfInteger from BOPCol is protected;
192 myReference: Integer from Standard is protected;
193 myFlag : Integer from Standard is protected;