0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / ShapeCustom / ShapeCustom_SweptToElementary.hxx
1 // Created on: 2003-12-10
2 // Created by: Sergey KUUL
3 // Copyright (c) 2003-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _ShapeCustom_SweptToElementary_HeaderFile
17 #define _ShapeCustom_SweptToElementary_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
22 #include <ShapeCustom_Modification.hxx>
23 #include <Standard_Boolean.hxx>
24 #include <Standard_Real.hxx>
25 #include <GeomAbs_Shape.hxx>
26 class TopoDS_Face;
27 class Geom_Surface;
28 class TopLoc_Location;
29 class TopoDS_Edge;
30 class Geom_Curve;
31 class TopoDS_Vertex;
32 class gp_Pnt;
33 class Geom2d_Curve;
34
35
36 class ShapeCustom_SweptToElementary;
37 DEFINE_STANDARD_HANDLE(ShapeCustom_SweptToElementary, ShapeCustom_Modification)
38
39 //! implements a modification for the BRepTools
40 //! Modifier algortihm. Converts all elementary
41 //! surfaces into surfaces of revolution.
42 class ShapeCustom_SweptToElementary : public ShapeCustom_Modification
43 {
44
45 public:
46
47   
48   Standard_EXPORT ShapeCustom_SweptToElementary();
49   
50   //! Returns Standard_True if the face <F> has  been
51   //! modified. In this case, <S> is the new geometric
52   //! support of the face, <L> the new location,  <Tol>
53   //! the new tolerance.  Otherwise, returns
54   //! Standard_False, and <S>, <L>, <Tol> are  not
55   //! significant.
56   Standard_EXPORT Standard_Boolean NewSurface (const TopoDS_Face& F, Handle(Geom_Surface)& S, TopLoc_Location& L, Standard_Real& Tol, Standard_Boolean& RevWires, Standard_Boolean& RevFace) Standard_OVERRIDE;
57   
58   //! Returns Standard_True  if  the edge  <E> has  been
59   //! modified.  In this case,  <C> is the new geometric
60   //! support of the  edge, <L> the  new location, <Tol>
61   //! the         new    tolerance.   Otherwise, returns
62   //! Standard_False,    and  <C>,  <L>,   <Tol> are not
63   //! significant.
64   Standard_EXPORT Standard_Boolean NewCurve (const TopoDS_Edge& E, Handle(Geom_Curve)& C, TopLoc_Location& L, Standard_Real& Tol) Standard_OVERRIDE;
65   
66   //! Returns  Standard_True if the  vertex <V> has been
67   //! modified.  In this  case, <P> is the new geometric
68   //! support of the vertex,   <Tol> the new  tolerance.
69   //! Otherwise, returns Standard_False, and <P>,  <Tol>
70   //! are not significant.
71   Standard_EXPORT Standard_Boolean NewPoint (const TopoDS_Vertex& V, gp_Pnt& P, Standard_Real& Tol) Standard_OVERRIDE;
72   
73   //! Returns Standard_True if  the edge  <E> has a  new
74   //! curve on surface on the face <F>.In this case, <C>
75   //! is the new geometric support of  the edge, <L> the
76   //! new location, <Tol> the new tolerance.
77   //!
78   //! Otherwise, returns  Standard_False, and <C>,  <L>,
79   //! <Tol> are not significant.
80   //!
81   //! <NewE> is the new  edge created from  <E>.  <NewF>
82   //! is the new face created from <F>. They may be usefull.
83   Standard_EXPORT Standard_Boolean NewCurve2d (const TopoDS_Edge& E, const TopoDS_Face& F, const TopoDS_Edge& NewE, const TopoDS_Face& NewF, Handle(Geom2d_Curve)& C, Standard_Real& Tol) Standard_OVERRIDE;
84   
85   //! Returns Standard_True if the Vertex  <V> has a new
86   //! parameter on the  edge <E>. In  this case,  <P> is
87   //! the parameter,    <Tol>  the     new    tolerance.
88   //! Otherwise, returns Standard_False, and <P>,  <Tol>
89   //! are not significant.
90   Standard_EXPORT Standard_Boolean NewParameter (const TopoDS_Vertex& V, const TopoDS_Edge& E, Standard_Real& P, Standard_Real& Tol) Standard_OVERRIDE;
91   
92   //! Returns the  continuity of  <NewE> between <NewF1>
93   //! and <NewF2>.
94   //!
95   //! <NewE> is the new  edge created from <E>.  <NewF1>
96   //! (resp. <NewF2>) is the new  face created from <F1>
97   //! (resp. <F2>).
98   Standard_EXPORT GeomAbs_Shape Continuity (const TopoDS_Edge& E, const TopoDS_Face& F1, const TopoDS_Face& F2, const TopoDS_Edge& NewE, const TopoDS_Face& NewF1, const TopoDS_Face& NewF2) Standard_OVERRIDE;
99
100
101
102
103   DEFINE_STANDARD_RTTIEXT(ShapeCustom_SweptToElementary,ShapeCustom_Modification)
104
105 protected:
106
107
108
109
110 private:
111
112
113
114
115 };
116
117
118
119
120
121
122
123 #endif // _ShapeCustom_SweptToElementary_HeaderFile