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
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 class MakeLine from GC inherits Root from GC
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
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.
37 raises NotDone from StdFail
41 Create (A1 : Ax1 from gp) returns MakeLine;
43 -- Creates a line located in 3D space with the axis placement A1.
44 -- The Location of A1 is the origin of the line.
46 Create (L : Lin from gp) returns MakeLine;
48 -- Creates a line from a non persistent line from package gp.
50 Create (P : Pnt from gp;
51 V : Dir from gp) returns MakeLine;
53 -- P is the origin and V is the direction of the line.
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>.
60 Create(P1 : Pnt from gp;
61 P2 : Pnt from gp) returns MakeLine;
62 ---Purpose : Make a Line from Geom <TheLin> passing through 2
64 -- It returns false if <p1> and <P2> are confused.
66 -- If the points P1 and P2 are coincident (that is, when
67 -- IsDone returns false), the Status function returns gce_ConfusedPoints.
69 Value(me) returns Line from Geom
72 ---Purpose: Returns the constructed line.
73 -- Exceptions StdFail_NotDone if no line is constructed.
76 Operator(me) returns Line from Geom
79 ---C++: alias "Standard_EXPORT operator Handle_Geom_Line() const;"
83 TheLine : Line from Geom;
84 --The solution from Geom.