Files
OCCT/src/TopOpeBRepTool/TopOpeBRepTool_ShapeExplorer.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

79 lines
2.5 KiB
Plaintext

-- Created on: 1995-07-13
-- Created by: Jean Yves LEBEY
-- Copyright (c) 1995-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 ShapeExplorer from TopOpeBRepTool
uses
Explorer from TopExp,
ShapeEnum from TopAbs,
Shape from TopoDS
is
Create returns ShapeExplorer from TopOpeBRepTool;
---Purpose: Creates an empty explorer, becomes usefull after Init.
Create(S : Shape from TopoDS;
ToFind : ShapeEnum from TopAbs;
ToAvoid : ShapeEnum from TopAbs = TopAbs_SHAPE)
returns ShapeExplorer from TopOpeBRepTool;
---Purpose: Creates an Explorer on the Shape <S>.
--
-- <ToFind> is the type of shapes to search.
-- TopAbs_VERTEX, TopAbs_EDGE, ...
--
-- <ToAvoid> is the type of shape to skip in the
-- exploration. If <ToAvoid> is equal or less
-- complex than <ToFind> or if <ToAVoid> is SHAPE it
-- has no effect on the exploration.
--
Init(me : in out; S : Shape from TopoDS;
ToFind : ShapeEnum from TopAbs;
ToAvoid : ShapeEnum from TopAbs = TopAbs_SHAPE)
is static;
More(me) returns Boolean
---Purpose: Returns True if there are more shapes in the
-- exploration.
is static;
Next(me : in out)
---Purpose: Moves to the next Shape in the exploration.
is static;
Current(me) returns Shape from TopoDS
---Purpose: Returns the current shape in the exploration.
---C++: return const &
is static;
-- debug
NbShapes(me) returns Integer from Standard is static;
Index(me) returns Integer from Standard is static;
DumpCurrent(me; OS : in out OStream) returns OStream
---C++: return &
is static;
fields
myExplorer : Explorer from TopExp;
myIndex : Integer from Standard;
myNbShapes : Integer from Standard;
end ShapeExplorer from TopOpeBRepTool;