1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/src/IFGraph/IFGraph_Cumulate.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

78 lines
3.0 KiB
Plaintext
Executable File

-- Created on: 1992-09-23
-- Created by: Christian CAILLET
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
class Cumulate from IFGraph inherits GraphContent
---Purpose : this class evaluates effect of cumulated sub-parts :
-- overlapping, forgotten entities
-- Results are kept in a Graph, several question can be set
-- Basic Iteration gives entities which are part of Cumulation
uses Transient, EntityIterator, Graph
is
Create (agraph : Graph) returns Cumulate;
---Purpose : creates empty Cumulate, ready to work
GetFromEntity (me : in out; ent : any Transient);
---Purpose : adds an entity and its shared ones to the list
GetFromIter (me : in out; iter : EntityIterator);
---Purpose : adds a list of entities (as an iterator) as such, that is,
-- without their shared entities (use AllShared to have them)
ResetData (me : in out);
---Purpose : Allows to restart on a new data set
-- -- Results -- --
-- More-Next-Value-Entity give all entities taken into the Cumulation
-- other informations are provided, as EntityIterator : hence they
-- are available for other evaluations
Evaluate (me : in out) is redefined;
---Purpose : Evaluates the result of cumulation
Overlapped (me) returns EntityIterator;
---Purpose : returns entities which are taken several times
Forgotten (me) returns EntityIterator;
---Purpose : returns entities which are not taken
PerCount (me; count : Integer = 1) returns EntityIterator;
---Purpose : Returns entities taken a given count of times
-- (0 : same as Forgotten, 1 : same as no Overlap : default)
NbTimes (me; ent : Transient) returns Integer;
---Purpose : returns number of times an Entity has been counted
-- (0 means forgotten, more than 1 means overlap, 1 is normal)
HighestNbTimes (me) returns Integer;
---Purpose : Returns the highest number of times recorded for every Entity
-- (0 means empty, 1 means no overlap)
fields
thegraph : Graph;
end Cumulate;