0022627: Change OCCT memory management defaults
[occt.git] / src / BooleanOperations / BooleanOperations_Explorer.cdl
CommitLineData
7fd59977 1-- File: BooleanOperations_Explorer.cdl
2-- Created: Mon Sep 4 11:04:51 2000
3-- Author: Vincent DELOS
4-- <vds@bulox.paris1.matra-dtv.fr>
5---Copyright: Matra Datavision 2000
6
7
8class Explorer from BooleanOperations
9
10 ---Purpose: the explorer associated to the Data Structure to
11 -- retrieve subshapes of a given shape stored in
12 -- ShapesDataStructure.
13
14uses
15 Shape from TopoDS,
16 ShapeEnum from TopAbs,
17 ShapesDataStructure from BooleanOperations,
18 PShapesDataStructure from BooleanOperations
19
20is
21 Create (SDS: ShapesDataStructure)
22 returns Explorer from BooleanOperations;
23
24 --modified by NIZNHY-PKV Sun Dec 15 16:24:39 2002 f
25 Delete(me: out)
26 is virtual;
27 ---C++: alias "Standard_EXPORT virtual ~BooleanOperations_Explorer() {Delete();}"
28 --modified by NIZNHY-PKV Sun Dec 15 16:27:53 2002 t
29
30 Init (me:in out;
31 aShape: Integer;
32 TargetToFind: ShapeEnum;
33 TargetToAvoid: ShapeEnum = TopAbs_SHAPE) is virtual;
34
35 Next (me:in out)
36 is virtual;
37
38 More (me)
39 returns Boolean;
40
41 Current (me:in out)
42 returns Integer is virtual;
43
44 Dump (me; S : in out OStream)
45 is virtual;
46
47
48fields
49
50myShapesDataStructure: PShapesDataStructure is protected;
51---Purpose: the data structure we're working on.
52
53myStack : Address is protected;
54---Purpose: contains all the numbers associated to the shapes.
55myTopOfStack : Integer is protected;
56---Purpose: gives the position of the highest element in the stack,
57-- i.e. the index of the number of the current shape.
58mySizeOfStack : Integer is protected;
59---Purpose: gives the number of elements in the stack.
60
61myTargetToFind : ShapeEnum is protected;
62---Purpose: the kind of shape we are looking for.
63myTargetToAvoid: ShapeEnum is protected;
64---Purpose: the kind of shape we want to avoid.
65
66hasMore : Boolean is protected;
67---Purpose: if we still have a new shape to return.
68
69end Explorer;