Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:55

0001 // Created on: 2003-12-10
0002 // Created by: Sergey KUUL
0003 // Copyright (c) 2003-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _ShapeCustom_SweptToElementary_HeaderFile
0017 #define _ShapeCustom_SweptToElementary_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <ShapeCustom_Modification.hxx>
0023 #include <GeomAbs_Shape.hxx>
0024 class TopoDS_Face;
0025 class Geom_Surface;
0026 class TopLoc_Location;
0027 class TopoDS_Edge;
0028 class Geom_Curve;
0029 class TopoDS_Vertex;
0030 class gp_Pnt;
0031 class Geom2d_Curve;
0032 
0033 
0034 class ShapeCustom_SweptToElementary;
0035 DEFINE_STANDARD_HANDLE(ShapeCustom_SweptToElementary, ShapeCustom_Modification)
0036 
0037 //! implements a modification for the BRepTools
0038 //! Modifier algorithm. Converts all elementary
0039 //! surfaces into surfaces of revolution.
0040 class ShapeCustom_SweptToElementary : public ShapeCustom_Modification
0041 {
0042 
0043 public:
0044 
0045   
0046   Standard_EXPORT ShapeCustom_SweptToElementary();
0047   
0048   //! Returns Standard_True if the face <F> has  been
0049   //! modified. In this case, <S> is the new geometric
0050   //! support of the face, <L> the new location,  <Tol>
0051   //! the new tolerance.  Otherwise, returns
0052   //! Standard_False, and <S>, <L>, <Tol> are  not
0053   //! significant.
0054   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;
0055   
0056   //! Returns Standard_True  if  the edge  <E> has  been
0057   //! modified.  In this case,  <C> is the new geometric
0058   //! support of the  edge, <L> the  new location, <Tol>
0059   //! the         new    tolerance.   Otherwise, returns
0060   //! Standard_False,    and  <C>,  <L>,   <Tol> are not
0061   //! significant.
0062   Standard_EXPORT Standard_Boolean NewCurve (const TopoDS_Edge& E, Handle(Geom_Curve)& C, TopLoc_Location& L, Standard_Real& Tol) Standard_OVERRIDE;
0063   
0064   //! Returns  Standard_True if the  vertex <V> has been
0065   //! modified.  In this  case, <P> is the new geometric
0066   //! support of the vertex,   <Tol> the new  tolerance.
0067   //! Otherwise, returns Standard_False, and <P>,  <Tol>
0068   //! are not significant.
0069   Standard_EXPORT Standard_Boolean NewPoint (const TopoDS_Vertex& V, gp_Pnt& P, Standard_Real& Tol) Standard_OVERRIDE;
0070   
0071   //! Returns Standard_True if  the edge  <E> has a  new
0072   //! curve on surface on the face <F>.In this case, <C>
0073   //! is the new geometric support of  the edge, <L> the
0074   //! new location, <Tol> the new tolerance.
0075   //!
0076   //! Otherwise, returns  Standard_False, and <C>,  <L>,
0077   //! <Tol> are not significant.
0078   //!
0079   //! <NewE> is the new  edge created from  <E>.  <NewF>
0080   //! is the new face created from <F>. They may be useful.
0081   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;
0082   
0083   //! Returns Standard_True if the Vertex  <V> has a new
0084   //! parameter on the  edge <E>. In  this case,  <P> is
0085   //! the parameter,    <Tol>  the     new    tolerance.
0086   //! Otherwise, returns Standard_False, and <P>,  <Tol>
0087   //! are not significant.
0088   Standard_EXPORT Standard_Boolean NewParameter (const TopoDS_Vertex& V, const TopoDS_Edge& E, Standard_Real& P, Standard_Real& Tol) Standard_OVERRIDE;
0089   
0090   //! Returns the  continuity of  <NewE> between <NewF1>
0091   //! and <NewF2>.
0092   //!
0093   //! <NewE> is the new  edge created from <E>.  <NewF1>
0094   //! (resp. <NewF2>) is the new  face created from <F1>
0095   //! (resp. <F2>).
0096   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;
0097 
0098 
0099 
0100 
0101   DEFINE_STANDARD_RTTIEXT(ShapeCustom_SweptToElementary,ShapeCustom_Modification)
0102 
0103 protected:
0104 
0105 
0106 
0107 
0108 private:
0109 
0110 
0111 
0112 
0113 };
0114 
0115 
0116 
0117 
0118 
0119 
0120 
0121 #endif // _ShapeCustom_SweptToElementary_HeaderFile