Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:12

0001 // Created on: 1998-01-29
0002 // Created by: Laurent BOURESCHE
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 _BRepFilletAPI_LocalOperation_HeaderFile
0018 #define _BRepFilletAPI_LocalOperation_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <BRepBuilderAPI_MakeShape.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <ChFiDS_SecHArray1.hxx>
0027 class TopoDS_Edge;
0028 class TopoDS_Vertex;
0029 
0030 
0031 //! Construction of fillets on the edges of a Shell.
0032 class BRepFilletAPI_LocalOperation  : public BRepBuilderAPI_MakeShape
0033 {
0034 public:
0035 
0036   DEFINE_STANDARD_ALLOC
0037 
0038   
0039   //! Adds a  contour in  the  builder  (builds a
0040   //! contour  of tangent edges).
0041   Standard_EXPORT virtual void Add (const TopoDS_Edge& E) = 0;
0042   
0043   //! Reset the contour of index IC, there is nomore
0044   //! information in the contour.
0045   Standard_EXPORT virtual void ResetContour (const Standard_Integer IC) = 0;
0046   
0047   //! Number of contours.
0048   Standard_EXPORT virtual Standard_Integer NbContours() const = 0;
0049   
0050   //! Returns the index of  the  contour containing the edge
0051   //! E, returns 0 if E doesn't belong to any contour.
0052   Standard_EXPORT virtual Standard_Integer Contour (const TopoDS_Edge& E) const = 0;
0053   
0054   //! Number of Edges in the contour I.
0055   Standard_EXPORT virtual Standard_Integer NbEdges (const Standard_Integer I) const = 0;
0056   
0057   //! Returns the Edge J in the contour I.
0058   Standard_EXPORT virtual const TopoDS_Edge& Edge (const Standard_Integer I, const Standard_Integer J) const = 0;
0059   
0060   //! remove the contour containing the Edge E.
0061   Standard_EXPORT virtual void Remove (const TopoDS_Edge& E) = 0;
0062   
0063   //! returns the length the contour of index IC.
0064   Standard_EXPORT virtual Standard_Real Length (const Standard_Integer IC) const = 0;
0065   
0066   //! Returns the first Vertex of the contour of index IC.
0067   Standard_EXPORT virtual TopoDS_Vertex FirstVertex (const Standard_Integer IC) const = 0;
0068   
0069   //! Returns the last Vertex of the contour of index IC.
0070   Standard_EXPORT virtual TopoDS_Vertex LastVertex (const Standard_Integer IC) const = 0;
0071   
0072   //! returns the abscissa of the vertex V on
0073   //! the contour of index IC.
0074   Standard_EXPORT virtual Standard_Real Abscissa (const Standard_Integer IC, const TopoDS_Vertex& V) const = 0;
0075   
0076   //! returns the relative abscissa([0.,1.]) of the
0077   //! vertex V on the contour of index IC.
0078   Standard_EXPORT virtual Standard_Real RelativeAbscissa (const Standard_Integer IC, const TopoDS_Vertex& V) const = 0;
0079   
0080   //! returns true if the contour of index IC is closed
0081   //! an tangent.
0082   Standard_EXPORT virtual Standard_Boolean ClosedAndTangent (const Standard_Integer IC) const = 0;
0083   
0084   //! returns true if the contour of index IC is closed
0085   Standard_EXPORT virtual Standard_Boolean Closed (const Standard_Integer IC) const = 0;
0086   
0087   //! Reset all the fields updated   by Build operation  and
0088   //! leave the  algorithm in  the  same state  than  before
0089   //! build    call.  It   allows   contours    and   radius
0090   //! modifications  to build the result another time.
0091   Standard_EXPORT virtual void Reset() = 0;
0092   
0093   Standard_EXPORT virtual void Simulate (const Standard_Integer IC) = 0;
0094   
0095   Standard_EXPORT virtual Standard_Integer NbSurf (const Standard_Integer IC) const = 0;
0096   
0097   Standard_EXPORT virtual Handle(ChFiDS_SecHArray1) Sect (const Standard_Integer IC, const Standard_Integer IS) const = 0;
0098 
0099 
0100 
0101 
0102 protected:
0103 
0104 
0105 
0106 
0107 
0108 private:
0109 
0110 
0111 
0112 
0113 
0114 };
0115 
0116 
0117 
0118 
0119 
0120 
0121 
0122 #endif // _BRepFilletAPI_LocalOperation_HeaderFile