mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-04 19:46:45 +08:00
The copying permission statements at the beginning of source files updated to refer to LGPL. Copyright dates extended till 2014 in advance.
58 lines
2.1 KiB
Plaintext
58 lines
2.1 KiB
Plaintext
-- Created on: 1992-09-30
|
|
-- Created by: Christian CAILLET
|
|
-- Copyright (c) 1992-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and / or modify it
|
|
-- under the terms of the GNU Lesser General Public version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class AllShared from IFGraph inherits GraphContent
|
|
|
|
---Purpose : this class determines all Entities shared by some specific
|
|
-- ones, at any level (those which will be lead in a Transfer
|
|
-- for instance)
|
|
|
|
uses Transient, EntityIterator, Graph
|
|
|
|
is
|
|
|
|
Create (agraph : Graph) returns AllShared;
|
|
---Purpose : creates an AllShared from a graph, empty ready to be filled
|
|
|
|
Create (agraph : Graph; ent : any Transient)
|
|
returns AllShared;
|
|
---Purpose : creates an AllShared which memrizes Entities shared by a given
|
|
-- one, at any level, including itself
|
|
|
|
GetFromEntity (me : in out; ent : any Transient);
|
|
---Purpose : adds an entity and its shared ones to the list (allows to
|
|
-- cumulate all Entities shared by some ones)
|
|
|
|
GetFromIter (me : in out; iter : EntityIterator);
|
|
---Purpose : Adds Entities from an EntityIterator and all their shared
|
|
-- ones at any level
|
|
|
|
ResetData (me : in out);
|
|
---Purpose : Allows to restart on a new data set
|
|
|
|
-- -- Results -- --
|
|
-- More-Next-Value give all entities noted as shared,
|
|
-- including the entities given for construction or to GetFromEntity
|
|
|
|
Evaluate (me : in out) is redefined;
|
|
---Purpose : does the specific evaluation (shared entities atall levels)
|
|
|
|
fields
|
|
|
|
thegraph : Graph;
|
|
|
|
end AllShared;
|