0024428: Implementation of LGPL license
[occt.git] / src / BRepProj / BRepProj_Projection.cdl
CommitLineData
b311480e 1-- Created on: 1998-11-13
2-- Created by: Jean-Michel BOULCOURT
3-- Copyright (c) 1998-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
973c2be1 8-- This library is free software; you can redistribute it and / or modify it
9-- under the terms of the GNU Lesser General Public 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class Projection from BRepProj
18
19 ---Purpose: The Projection class provides conical and
20 -- cylindrical projections of Edge or Wire on
21 -- a Shape from TopoDS. The result will be a Edge
22 -- or Wire from TopoDS.
23
24uses
25 Dir from gp,
26 Pnt from gp,
27 Shape from TopoDS,
28 Edge from TopoDS,
29 Wire from TopoDS,
30 Face from TopoDS,
31 Compound from TopoDS,
32 HSequenceOfShape from TopTools
33
34raises
35 NoSuchObject from Standard,
36 ConstructionError from Standard,
37 NullObject from Standard
38
39is
40
41 Create(Wire, Shape : Shape from TopoDS;
42 D : Dir from gp)
43 returns Projection from BRepProj
44 raises NullObject from Standard,
45 ConstructionError from Standard;
46 ---Purpose: Makes a Cylindrical projection of Wire om Shape
47
48 Create(Wire, Shape : Shape from TopoDS;
49 P : Pnt from gp)
50 returns Projection from BRepProj
51 raises NullObject from Standard,
52 ConstructionError from Standard;
53 ---Purpose: Makes a Conical projection of Wire om Shape
54
55
56 IsDone(me) returns Boolean from Standard
57 ---Purpose: returns False if the section failed
58 ---C++: inline
59 is static;
60
61 Init(me : in out)
62 ---Purpose: Resets the iterator by resulting wires.
63 ---C++: inline
64 is static;
65
66 More(me) returns Boolean from Standard
67 ---Purpose: Returns True if there is a current result wire
68 ---C++: inline
69 is static;
70
71 Next(me : in out)
72 ---Purpose: Move to the next result wire.
73 ---C++: inline
74 is static;
75
76 Current(me)
77 returns Wire from TopoDS
78 ---Purpose: Returns the current result wire.
79 ---C++: inline
80 is static;
81
82 Shape(me)
83 returns Compound from TopoDS
84 ---Purpose: Returns the complete result as compound of wires.
85 ---C++: inline
86 is static;
87
88 BuildSection(me: in out; Shape, Tool: Shape from TopoDS)
89 is private;
90 ---Purpose: Performs section of theShape by theTool
91 --- and stores result in the fields.
92
93fields
94
95 myIsDone : Boolean from Standard;
96 myLsh : Shape from TopoDS;
97 myShape : Compound from TopoDS;
98 mySection : HSequenceOfShape from TopTools;
99 myItr : Integer from Standard;
100
101end Projection;
102