0023024: Update headers of OCCT files
[occt.git] / src / gce / gce_MakeParab.cdl
CommitLineData
b311480e 1-- Created on: 1992-08-26
2-- Created by: Remi GILET
3-- Copyright (c) 1992-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22class MakeParab from gce inherits Root from gce
23
24 ---Purpose :This class implements the following algorithms used to
25 -- create Parab from gp.
26 -- Defines the parabola in the parameterization range :
27 -- ]-infinite, +infinite[
28 -- The vertex of the parabola is the "Location" point of the
29 -- local coordinate system (axis placement) of the parabola.
30 --
31 -- The "XDirection" and the "YDirection" of this system define
32 -- the plane of the parabola.
33 --
34 -- The "XAxis" of the parabola ("Location", "XDirection") is
35 -- the axis of symmetry of the parabola. The Xaxis is oriented
36 -- from the vertex of the parabola to the Focus of the parabola.
37 --
38 -- The "YAxis" of the parabola ("Location", "YDirection") is
39 -- parallel to the directrix of the parabola.
40 --
41 -- The equation of the parabola in the local coordinates system is
42 -- Y**2 = (2*P) * X
43 -- P is the distance between the focus and the directrix of the
44 -- parabola (called Parameter).
45 -- The focal length F = P/2 is the distance between the vertex
46 -- and the focus of the parabola.
47 --
48 -- * Creates a parabola with its local coordinate system "A2"
49 -- and it's focal length "Focal".
50 -- * Create a parabola with its directrix and its focus point.
51
52uses Pnt from gp,
53 Parab from gp,
54 Ax2 from gp,
55 Ax1 from gp
56
57raises NotDone from StdFail
58
59is
60
61Create (A2 : Ax2 from gp ;
62 Focal : Real from Standard) returns MakeParab;
63 --- Purpose ;
64 -- Creates a parabola with its local coordinate system "A2"
65 -- and it's focal length "Focal".
66 -- The XDirection of A2 defines the axis of symmetry of the
67 -- parabola. The YDirection of A2 is parallel to the directrix
68 -- of the parabola. The Location point of A2 is the vertex of
69 -- the parabola
70 -- The status is "NullFocusLength" if Focal < 0.0
71
72
73Create (D : Ax1 from gp ;
74 F : Pnt from gp ) returns MakeParab;
75 --- Purpose :
76 -- D is the directrix of the parabola and F the focus point.
77 -- The symmetry axis (XAxis) of the parabola is normal to the
78 -- directrix and pass through the focus point F, but its
79 -- location point is the vertex of the parabola.
80 -- The YAxis of the parabola is parallel to D and its location
81 -- point is the vertex of the parabola. The normal to the plane
82 -- of the parabola is the cross product between the XAxis and the
83 -- YAxis.
84
85Value(me) returns Parab from gp
86 raises NotDone
87 is static;
88 ---C++: return const&
89 ---Purpose: Returns the constructed parabola.
90 -- Exceptions StdFail_NotDone if no parabola is constructed.
91
92Operator(me) returns Parab from gp
93 is static;
94 ---C++: return const&
95 ---C++: alias "Standard_EXPORT operator gp_Parab() const;"
96
97fields
98
99 TheParab : Parab from gp;
100 --The solution from gp.
101
102end MakeParab;
103
104
105
106