0023839: Projection algorithm produces wrong results for set of data
[occt.git] / src / ProjLib / ProjLib_Plane.cdl
CommitLineData
b311480e 1-- Created on: 1993-08-11
2-- Created by: Remi LEQUETTE
3-- Copyright (c) 1993-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
22
23
24class Plane from ProjLib inherits Projector from ProjLib
25
26 ---Purpose: Projects elementary curves on a plane.
27
28uses
29 CurveType from GeomAbs,
30 Pln from gp,
31 Lin from gp,
32 Circ from gp,
33 Elips from gp,
34 Parab from gp,
35 Hypr from gp,
36 Lin2d from gp,
37 Circ2d from gp,
38 Elips2d from gp,
39 Parab2d from gp,
40 Hypr2d from gp
41
42raises
43 NoSuchObject from Standard
44
45is
46
47 Create returns Plane from ProjLib;
48 ---Purpose: Undefined projection.
49
50 Create(Pl : Pln from gp) returns Plane from ProjLib;
51 ---Purpose: Projection on the plane <Pl>.
52
53 Create(Pl : Pln from gp;
54 L : Lin from gp) returns Plane from ProjLib;
55 ---Purpose: Projection of the line <L> on the plane <Pl>.
56
57 Create(Pl : Pln from gp;
58 C : Circ from gp) returns Plane from ProjLib;
59 ---Purpose: Projection of the circle <C> on the plane <Pl>.
60
61 Create(Pl : Pln from gp;
62 E : Elips from gp) returns Plane from ProjLib;
63 ---Purpose: Projection of the ellipse <E> on the plane <Pl>.
64
65 Create(Pl : Pln from gp;
66 P : Parab from gp) returns Plane from ProjLib;
67 ---Purpose: Projection of the parabola <P> on the plane <Pl>.
68
69 Create(Pl : Pln from gp;
70 H : Hypr from gp) returns Plane from ProjLib;
71 ---Purpose: Projection of the hyperbola <H> on the plane <Pl>.
72
73
74 Init(me : in out;
75 Pl : Pln from gp)
76 is static;
77
78 Project(me : in out;
79 L : Lin from gp)
80 is redefined;
81
82 Project(me : in out;
83 C : Circ from gp)
84 is redefined;
85
86 Project(me : in out;
87 E : Elips from gp)
88 is redefined;
89
90 Project(me : in out;
91 P : Parab from gp)
92 is redefined;
93
94 Project(me : in out;
95 H : Hypr from gp)
96 is redefined;
97
98
99fields
100
101 myPlane : Pln from gp;
102
103end Plane;
104
105
106