0024157: Parallelization of assembly part of BO
[occt.git] / src / TopOpeBRepTool / TopOpeBRepTool_HBoxTool.cdl
1 -- Created on: 1993-07-08
2 -- Created by: Jean Yves LEBEY
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
5 --
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
10 --
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 --
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
20
21
22 class HBoxTool from TopOpeBRepTool inherits TShared from MMgt
23
24 uses
25
26     Box from Bnd,
27     Shape from TopoDS,
28     ShapeEnum from TopAbs,
29     IndexedDataMapOfShapeBox from TopOpeBRepTool
30     
31 is
32     
33     Create returns mutable HBoxTool from TopOpeBRepTool;
34     Clear(me:mutable);
35     AddBoxes(me:mutable;S:Shape;TS:ShapeEnum;TA:ShapeEnum=TopAbs_SHAPE);
36     AddBox(me:mutable;S:Shape);
37
38     ComputeBox(myclass;S:Shape;B:out Box from Bnd);
39     ComputeBoxOnVertices(myclass;S:Shape;B:out Box from Bnd);
40     DumpB(myclass;B:Box from Bnd);
41
42     Box(me:mutable;S:Shape) returns Box from Bnd;---C++: return const &
43     Box(me; I:Integer) returns Box from Bnd;---C++: return const &
44     HasBox(me; S:Shape) returns Boolean;
45     Shape(me; I:Integer) returns Shape;---C++: return const &
46     Index(me; S:Shape) returns Integer;
47     Extent(me) returns Integer;
48     ChangeIMS(me:mutable) returns IndexedDataMapOfShapeBox;---C++:return &
49     IMS(me) returns IndexedDataMapOfShapeBox;---C++:return const &
50     
51 fields
52
53     myIMS:IndexedDataMapOfShapeBox from TopOpeBRepTool;
54
55 end HBoxTool;