Files
OCCT/src/XSControl/XSControl_ConnectedShapes.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

67 lines
2.6 KiB
Plaintext

-- Created on: 1999-02-24
-- Created by: Christian CAILLET
-- Copyright (c) 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 License 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 ConnectedShapes from XSControl inherits SelectExplore from IFSelect
---Purpose : From a TopoDS_Shape, or from the entity which has produced it,
-- searches for the shapes, and the entities which have produced
-- them in last transfer, which are adjacent to it by VERTICES
uses AsciiString, Transient, Graph, EntityIterator,
HSequenceOfTransient from TColStd,
Shape from TopoDS, ShapeEnum from TopAbs,
TransientProcess from Transfer, TransferReader from XSControl
is
Create returns ConnectedShapes;
---Purpose : Creates a Selection ConnectedShapes. It remains to be set a
-- TransferReader
Create (TR : TransferReader) returns ConnectedShapes;
---Purpose : Creates a Selection ConnectedShapes, which will work with the
-- current TransferProcess brought by the TransferReader
SetReader (me : mutable; TR : TransferReader);
---Purpose : Sets a TransferReader to sort entities : it brings the
-- TransferProcess which may change, while the TransferReader does not
Explore (me; level : Integer; ent : Transient; G : Graph;
explored : in out EntityIterator)
returns Boolean;
---Purpose : Explores an entity : entities from which are connected to that
-- produced by this entity, including itself
ExploreLabel (me) returns AsciiString from TCollection;
---Purpose : Returns a text defining the criterium.
-- "Connected Entities through produced Shapes"
AdjacentEntities (myclass;
ashape : Shape from TopoDS;
TP : TransientProcess from Transfer;
type : ShapeEnum from TopAbs)
returns HSequenceOfTransient;
---Purpose : This functions considers a shape from a transfer and performs
-- the search function explained above
fields
theTR : TransferReader;
end ConnectedShapes;