0024624: Lost word in license statement in source files
[occt.git] / src / GC / GC_MakeLine.cdl
1 -- Created on: 1992-09-28
2 -- Created by: Remi GILET
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class MakeLine from GC inherits Root from GC
18
19     ---Purpose : This class implements the following algorithms used 
20     --           to create a Line from Geom.
21     --           * Create a Line parallel to another and passing 
22     --             through a point.
23     --           * Create a Line passing through 2 points.
24     -- A MakeLine object provides a framework for:
25     -- -   defining the construction of the line,
26     -- -   implementing the construction algorithm, and
27     -- -   consulting the results. In particular, the Value
28     --   function returns the constructed line.
29         
30 uses Pnt       from gp,
31      Lin       from gp,
32      Ax1       from gp,
33      Dir       from gp,
34      Line      from Geom,
35      Real      from Standard
36
37 raises NotDone from StdFail
38
39 is
40
41 Create (A1 : Ax1 from gp) returns MakeLine;
42     --- Purpose :
43     --  Creates a line located in 3D space with the axis placement A1.
44     --  The Location of A1 is the origin of the line. 
45
46 Create (L : Lin from gp) returns MakeLine;
47     --- Purpose :
48     --  Creates a line from a non persistent line from package gp.
49
50 Create (P : Pnt from gp;
51         V : Dir from gp) returns MakeLine;
52     --- Purpose :
53     --  P is the origin and V is the direction of the line.
54
55 Create(Lin    :     Lin from gp;
56        Point  :     Pnt from gp) returns MakeLine;
57     ---Purpose : Make a Line from Geom <TheLin> parallel to another 
58     --           Lin <Lin> and passing through a Pnt <Point>.
59
60 Create(P1     :     Pnt from gp;
61        P2     :     Pnt from gp) returns MakeLine;
62     ---Purpose : Make a Line from Geom <TheLin> passing through 2 
63     --           Pnt <P1>,<P2>.
64     --           It returns false if <p1> and <P2> are confused.
65     -- Warning
66     -- If the points P1 and P2 are coincident (that is, when
67     -- IsDone returns false), the Status function returns gce_ConfusedPoints.
68         
69 Value(me) returns Line from Geom
70     raises NotDone
71     is static;
72     ---Purpose:  Returns the constructed line.
73     -- Exceptions StdFail_NotDone if no line is constructed.
74     ---C++: return const&
75
76 Operator(me) returns Line from Geom
77     is static;
78     ---C++: return const&
79     ---C++: alias "Standard_EXPORT operator Handle_Geom_Line() const;"
80
81 fields
82
83     TheLine : Line from Geom;
84     --The solution from Geom.
85     
86 end MakeLine;
87
88