0024624: Lost word in license statement in source files
[occt.git] / src / IFGraph / IFGraph_Cumulate.cdl
CommitLineData
b311480e 1-- Created on: 1992-09-23
2-- Created by: Christian CAILLET
3-- Copyright (c) 1992-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.
7fd59977 16
17class Cumulate from IFGraph inherits GraphContent
18
19 ---Purpose : this class evaluates effect of cumulated sub-parts :
20 -- overlapping, forgotten entities
21 -- Results are kept in a Graph, several question can be set
22 -- Basic Iteration gives entities which are part of Cumulation
23
24uses Transient, EntityIterator, Graph
25
26is
27
28 Create (agraph : Graph) returns Cumulate;
29 ---Purpose : creates empty Cumulate, ready to work
30
31 GetFromEntity (me : in out; ent : any Transient);
32 ---Purpose : adds an entity and its shared ones to the list
33
34 GetFromIter (me : in out; iter : EntityIterator);
35 ---Purpose : adds a list of entities (as an iterator) as such, that is,
36 -- without their shared entities (use AllShared to have them)
37
38 ResetData (me : in out);
39 ---Purpose : Allows to restart on a new data set
40
41 -- -- Results -- --
42 -- More-Next-Value-Entity give all entities taken into the Cumulation
43 -- other informations are provided, as EntityIterator : hence they
44 -- are available for other evaluations
45
46 Evaluate (me : in out) is redefined;
47 ---Purpose : Evaluates the result of cumulation
48
49 Overlapped (me) returns EntityIterator;
50 ---Purpose : returns entities which are taken several times
51
52 Forgotten (me) returns EntityIterator;
53 ---Purpose : returns entities which are not taken
54
55 PerCount (me; count : Integer = 1) returns EntityIterator;
56 ---Purpose : Returns entities taken a given count of times
57 -- (0 : same as Forgotten, 1 : same as no Overlap : default)
58
59 NbTimes (me; ent : Transient) returns Integer;
60 ---Purpose : returns number of times an Entity has been counted
61 -- (0 means forgotten, more than 1 means overlap, 1 is normal)
62
63 HighestNbTimes (me) returns Integer;
64 ---Purpose : Returns the highest number of times recorded for every Entity
65 -- (0 means empty, 1 means no overlap)
66
67fields
68
69 thegraph : Graph;
70
71end Cumulate;