0024171: Eliminate CLang compiler warning -Wreorder
[occt.git] / src / ShapeCustom / ShapeCustom_ConvertToRevolution.cdl
CommitLineData
b311480e 1-- Created on: 1999-05-08
2-- Created by: Andrey BETENEV
3-- Copyright (c) 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
23private class ConvertToRevolution from ShapeCustom inherits Modification from BRepTools
24
25 ---Purpose: implements a modification for the BRepTools
26 -- Modifier algortihm. Converts all elementary
27 -- surfaces into surfaces of revolution.
28
29uses
30 Vertex from TopoDS,
31 Edge from TopoDS,
32 Face from TopoDS,
33 Location from TopLoc,
34
35 Shape from GeomAbs,
36
37 Pnt from gp,
38 Curve from Geom,
39 Curve from Geom2d,
40 Surface from Geom
41
42is
43
44 Create returns mutable ConvertToRevolution from ShapeCustom;
45
46 NewSurface(me: mutable; F : Face from TopoDS;
47 S : out Surface from Geom;
48 L : out Location from TopLoc;
49 Tol: out Real from Standard;
50 RevWires : out Boolean from Standard;
51 RevFace : out Boolean from Standard)
52 returns Boolean from Standard;
53 ---Purpose: Returns Standard_True if the face <F> has been
54 -- modified. In this case, <S> is the new geometric
55 -- support of the face, <L> the new location, <Tol>
56 -- the new tolerance. Otherwise, returns
57 -- Standard_False, and <S>, <L>, <Tol> are not
58 -- significant.
59
60 NewCurve(me: mutable; E : Edge from TopoDS;
61 C : out Curve from Geom;
62 L : out Location from TopLoc;
63 Tol: out Real from Standard)
64 returns Boolean from Standard;
65 ---Purpose: Returns Standard_True if the edge <E> has been
66 -- modified. In this case, <C> is the new geometric
67 -- support of the edge, <L> the new location, <Tol>
68 -- the new tolerance. Otherwise, returns
69 -- Standard_False, and <C>, <L>, <Tol> are not
70 -- significant.
71
72 NewPoint(me: mutable; V : Vertex from TopoDS;
73 P : out Pnt from gp;
74 Tol: out Real from Standard)
75 returns Boolean from Standard;
76 ---Purpose: Returns Standard_True if the vertex <V> has been
77 -- modified. In this case, <P> is the new geometric
78 -- support of the vertex, <Tol> the new tolerance.
79 -- Otherwise, returns Standard_False, and <P>, <Tol>
80 -- are not significant.
81
82 NewCurve2d(me: mutable; E : Edge from TopoDS;
83 F : Face from TopoDS;
84 NewE : Edge from TopoDS;
85 NewF : Face from TopoDS;
86 C : out Curve from Geom2d;
87 Tol : out Real from Standard)
88 returns Boolean from Standard;
89 ---Purpose: Returns Standard_True if the edge <E> has a new
90 -- curve on surface on the face <F>.In this case, <C>
91 -- is the new geometric support of the edge, <L> the
92 -- new location, <Tol> the new tolerance.
93 --
94 -- Otherwise, returns Standard_False, and <C>, <L>,
95 -- <Tol> are not significant.
96 --
97 -- <NewE> is the new edge created from <E>. <NewF>
98 -- is the new face created from <F>. They may be usefull.
99
100 NewParameter(me: mutable; V : Vertex from TopoDS;
101 E : Edge from TopoDS;
102 P : out Real from Standard;
103 Tol: out Real from Standard)
104 returns Boolean from Standard;
105 ---Purpose: Returns Standard_True if the Vertex <V> has a new
106 -- parameter on the edge <E>. In this case, <P> is
107 -- the parameter, <Tol> the new tolerance.
108 -- Otherwise, returns Standard_False, and <P>, <Tol>
109 -- are not significant.
110
111 Continuity(me: mutable; E : Edge from TopoDS;
112 F1,F2 : Face from TopoDS;
113 NewE : Edge from TopoDS;
114 NewF1,NewF2: Face from TopoDS)
115 returns Shape from GeomAbs;
116 ---Purpose: Returns the continuity of <NewE> between <NewF1>
117 -- and <NewF2>.
118 --
119 -- <NewE> is the new edge created from <E>. <NewF1>
120 -- (resp. <NewF2>) is the new face created from <F1>
121 -- (resp. <F2>).
122
123end ConvertToRevolution;