Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-25 08:17:21

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