1 -- Created on: 1993-05-26
2 -- Created by: Laurent BOURESCHE
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 deferred generic class Tool from Sweep (TheShape as any)
19 ---Purpose: This is a signature class describing the indexation
20 -- and type analysis services required by the Directing
21 -- and Generating Shapes of Swept Primitives.
26 ShapeEnum from TopAbs,
27 Orientation from TopAbs
31 OutOfRange from Standard
35 Initialize(aShape: TheShape);
36 ---Purpose: Initialize the tool with <aShape>. The IndexTool
37 -- must prepare an indexation for all the subshapes
40 NbShapes(me) returns Integer
41 ---Purpose: Returns the number of subshapes in the shape.
44 Index(me; aShape : TheShape) returns Integer
45 ---Purpose: Returns the index of <aShape>.
48 Shape(me; anIndex : Integer from Standard) returns TheShape
49 ---Purpose: Returns the Shape of index anIndex
52 Type(me; aShape : TheShape) returns ShapeEnum from TopAbs
53 ---Purpose: Returns the type of <aShape>.
56 Orientation(me; aShape : TheShape) returns Orientation from TopAbs
57 ---Purpose: Returns the Orientation of <aShape>.
60 SetOrientation(me; aShape : in out TheShape; Or : Orientation from TopAbs)
61 ---Purpose: Set the Orientation of <aShape> with Or.
64 ------------------------------------------
65 --- Methods used for Directing Shapes only
66 ------------------------------------------
68 HasFirstVertex(me) returns Boolean from Standard
69 ---Purpose: Returns true if there is a First Vertex in the Shape.
72 HasLastVertex(me) returns Boolean from Standard
73 ---Purpose: Returns true if there is a Last Vertex in the Shape.
76 FirstVertex(me) returns TheShape
77 ---Purpose: Returns the first vertex.
80 LastVertex(me) returns TheShape
81 ---Purpose: Returns the last vertex.