Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-29 09:18:11

0001 // Created on: 1992-05-27
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 _BRep_TEdge_HeaderFile
0018 #define _BRep_TEdge_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <BRep_CurveRepresentation.hxx>
0025 #include <NCollection_List.hxx>
0026 #include <TopoDS_TEdge.hxx>
0027 class TopoDS_TShape;
0028 
0029 //! The TEdge from BRep is inherited from the TEdge
0030 //! from TopoDS. It contains the geometric data.
0031 //!
0032 //! The TEdge contains a:
0033 //!
0034 //! * tolerance.
0035 //! * same parameter flag.
0036 //! * same range flag.
0037 //! * Degenerated flag.
0038 //! * list of curve representation.
0039 class BRep_TEdge : public TopoDS_TEdge
0040 {
0041 
0042 public:
0043   //! Creates an empty TEdge.
0044   Standard_EXPORT BRep_TEdge();
0045 
0046   double Tolerance() const;
0047 
0048   void Tolerance(const double T);
0049 
0050   //! Sets the tolerance to the max of <T> and the
0051   //! current tolerance.
0052   void UpdateTolerance(const double T);
0053 
0054   Standard_EXPORT bool SameParameter() const;
0055 
0056   Standard_EXPORT void SameParameter(const bool S);
0057 
0058   Standard_EXPORT bool SameRange() const;
0059 
0060   Standard_EXPORT void SameRange(const bool S);
0061 
0062   Standard_EXPORT bool Degenerated() const;
0063 
0064   Standard_EXPORT void Degenerated(const bool S);
0065 
0066   const NCollection_List<occ::handle<BRep_CurveRepresentation>>& Curves() const;
0067 
0068   NCollection_List<occ::handle<BRep_CurveRepresentation>>& ChangeCurves();
0069 
0070   //! Returns a copy of the TShape with no sub-shapes.
0071   Standard_EXPORT occ::handle<TopoDS_TShape> EmptyCopy() const override;
0072 
0073   //! Dumps the content of me into the stream
0074   Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
0075 
0076   DEFINE_STANDARD_RTTIEXT(BRep_TEdge, TopoDS_TEdge)
0077 
0078 private:
0079   double                                                  myTolerance;
0080   int                                                     myFlags;
0081   NCollection_List<occ::handle<BRep_CurveRepresentation>> myCurves;
0082 };
0083 
0084 #include <BRep_TEdge.lxx>
0085 
0086 #endif // _BRep_TEdge_HeaderFile