Back to home page

EIC code displayed by LXR

 
 

    


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

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_ListOfCurveRepresentation.hxx>
0025 #include <TopoDS_TEdge.hxx>
0026 class TopoDS_TShape;
0027 
0028 
0029 class BRep_TEdge;
0030 DEFINE_STANDARD_HANDLE(BRep_TEdge, TopoDS_TEdge)
0031 
0032 //! The TEdge from BRep is  inherited from  the  TEdge
0033 //! from TopoDS. It contains the geometric data.
0034 //!
0035 //! The TEdge contains :
0036 //!
0037 //! * A tolerance.
0038 //!
0039 //! * A same parameter flag.
0040 //!
0041 //! * A same range flag.
0042 //!
0043 //! * A Degenerated flag.
0044 //!
0045 //! *  A  list   of curve representation.
0046 class BRep_TEdge : public TopoDS_TEdge
0047 {
0048 
0049 public:
0050 
0051   
0052   //! Creates an empty TEdge.
0053   Standard_EXPORT BRep_TEdge();
0054   
0055     Standard_Real Tolerance() const;
0056   
0057     void Tolerance (const Standard_Real T);
0058   
0059   //! Sets the tolerance  to the   max  of <T>  and  the
0060   //! current  tolerance.
0061     void UpdateTolerance (const Standard_Real T);
0062   
0063   Standard_EXPORT Standard_Boolean SameParameter() const;
0064   
0065   Standard_EXPORT void SameParameter (const Standard_Boolean S);
0066   
0067   Standard_EXPORT Standard_Boolean SameRange() const;
0068   
0069   Standard_EXPORT void SameRange (const Standard_Boolean S);
0070   
0071   Standard_EXPORT Standard_Boolean Degenerated() const;
0072   
0073   Standard_EXPORT void Degenerated (const Standard_Boolean S);
0074   
0075     const BRep_ListOfCurveRepresentation& Curves() const;
0076   
0077     BRep_ListOfCurveRepresentation& ChangeCurves();
0078   
0079   //! Returns a copy  of the  TShape  with no sub-shapes.
0080   Standard_EXPORT Handle(TopoDS_TShape) EmptyCopy() const Standard_OVERRIDE;
0081 
0082   //! Dumps the content of me into the stream
0083   Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0084 
0085 
0086 
0087 
0088   DEFINE_STANDARD_RTTIEXT(BRep_TEdge,TopoDS_TEdge)
0089 
0090 protected:
0091 
0092 
0093 
0094 
0095 private:
0096 
0097 
0098   Standard_Real myTolerance;
0099   Standard_Integer myFlags;
0100   BRep_ListOfCurveRepresentation myCurves;
0101 
0102 
0103 };
0104 
0105 
0106 #include <BRep_TEdge.lxx>
0107 
0108 
0109 
0110 
0111 
0112 #endif // _BRep_TEdge_HeaderFile