Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1992-11-19
0002 // Created by: Remi LEQUETTE
0003 // Copyright (c) 1992-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 _BRepClass_Edge_HeaderFile
0018 #define _BRepClass_Edge_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 #include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
0024 
0025 #include <TopoDS_Edge.hxx>
0026 #include <TopoDS_Face.hxx>
0027 
0028 
0029 //! This class  is used to send  the  description of an
0030 //! Edge to the classifier. It  contains  an Edge and a
0031 //! Face. So the PCurve of the Edge can be found.
0032 class BRepClass_Edge 
0033 {
0034 public:
0035 
0036   DEFINE_STANDARD_ALLOC
0037 
0038   
0039   Standard_EXPORT BRepClass_Edge();
0040   
0041   Standard_EXPORT BRepClass_Edge(const TopoDS_Edge& E, const TopoDS_Face& F);
0042   
0043   //! Returns the current Edge  
0044   TopoDS_Edge& Edge();
0045 const TopoDS_Edge& Edge() const;
0046   
0047   //! Returns the Face for the current Edge
0048   TopoDS_Face& Face();
0049 const TopoDS_Face& Face() const;
0050 
0051   //! Returns the next Edge
0052   const TopoDS_Edge& NextEdge() const
0053   {
0054     return myNextEdge;
0055   }
0056 
0057   //! Finds and sets the next Edge for the current
0058   Standard_EXPORT void SetNextEdge(const TopTools_IndexedDataMapOfShapeListOfShape& theMapVE);
0059 
0060   //! Returns the maximum tolerance
0061   Standard_Real MaxTolerance() const
0062   {
0063     return myMaxTolerance;
0064   }
0065 
0066   //! Sets the maximum tolerance at 
0067   //! which to start checking in the intersector
0068   void SetMaxTolerance(const Standard_Real theValue)
0069   {
0070     myMaxTolerance = theValue;
0071   }
0072 
0073   //! Returns true if we are using boxes
0074   //! in the intersector
0075   Standard_Boolean UseBndBox() const
0076   {
0077     return myUseBndBox;
0078   }
0079 
0080   //! Sets the status of whether we are
0081   //! using boxes or not
0082   void SetUseBndBox(const Standard_Boolean theValue)
0083   {
0084     myUseBndBox = theValue;
0085   }
0086 
0087 
0088 protected:
0089 
0090 
0091 
0092 
0093 
0094 private:
0095 
0096 
0097 
0098   TopoDS_Edge myEdge;
0099   TopoDS_Face myFace;
0100   TopoDS_Edge myNextEdge;
0101   Standard_Real myMaxTolerance;
0102   Standard_Boolean myUseBndBox;
0103 
0104 };
0105 
0106 
0107 #include <BRepClass_Edge.lxx>
0108 
0109 
0110 
0111 
0112 
0113 #endif // _BRepClass_Edge_HeaderFile