0024893: CLang warnings -Wlogical-not-parentheses for gce_Done comparisons
[occt.git] / src / GCE2d / GCE2d_MakeArcOfParabola.cdl
CommitLineData
b311480e 1-- Created on: 1992-09-28
2-- Created by: Remi GILET
3-- Copyright (c) 1992-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--
d5f74e42 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
973c2be1 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 MakeArcOfParabola from GCE2d inherits Root from GCE2d
18 ---Purpose: Implements construction algorithms for an arc of
19 -- parabola in the plane. The result is a Geom2d_TrimmedCurve curve.
20 -- A MakeArcOfParabola object provides a framework for:
21 -- - defining the construction of the arc of parabola,
22 -- - implementing the construction algorithm, and
23 -- - consulting the results. In particular, the Value
24 -- function returns the constructed arc of parabola.
25
26uses Pnt2d from gp,
27 Parab2d from gp,
28 Real from Standard,
29 Boolean from Standard,
30 TrimmedCurve from Geom2d
31
32raises NotDone from StdFail
33
34is
35
36Create(Parab : Parab2d from gp ;
37 Alpha1, Alpha2 : Real from Standard ;
38 Sense : Boolean from Standard = Standard_True)
39 returns MakeArcOfParabola;
40 ---Purpose: Make an arc of Parabola (TrimmedCurve from Geom2d) from
41 -- a Parabola between two parameters Alpha1 and Alpha2.
42
43Create(Parab : Parab2d from gp ;
44 P : Pnt2d from gp ;
45 Alpha : Real from Standard ;
46 Sense : Boolean from Standard = Standard_True)
47 returns MakeArcOfParabola;
48 ---Purpose: Make an arc of Parabola (TrimmedCurve from Geom2d) from
49 -- a Parabola between point <P> and the parameter
50 -- Alpha.
51
52Create(Parab : Parab2d from gp ;
53 P1 : Pnt2d from gp ;
54 P2 : Pnt2d from gp ;
55 Sense : Boolean from Standard = Standard_True)
56 returns MakeArcOfParabola;
57 ---Purpose: Make an arc of Parabola (TrimmedCurve from Geom2d) from
58 -- a Parabola between two points P1 and P2.
59 -- Please, note: the orientation of the arc of parabola is:
60 -- - the trigonometric sense if Sense is not defined
61 -- or is true (default value), or
62 -- - the opposite sense if Sense is false.
63 -- - IsDone always returns true.
64
65Value(me) returns TrimmedCurve from Geom2d
66 raises NotDone
67 is static;
68 ---C++: return const&
69 ---Purpose: Returns the constructed arc of parabola.
70
71Operator(me) returns TrimmedCurve from Geom2d
72 is static;
73 ---C++: return const&
74 ---C++: alias "Standard_EXPORT operator Handle_Geom2d_TrimmedCurve() const;"
75
76fields
77
78 TheArc : TrimmedCurve from Geom2d;
79 --The solution from Geom2d.
80
81end MakeArcOfParabola;