1 // Created on: 1992-05-27
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _BRep_TEdge_HeaderFile
18 #define _BRep_TEdge_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Real.hxx>
24 #include <Standard_Integer.hxx>
25 #include <BRep_ListOfCurveRepresentation.hxx>
26 #include <TopoDS_TEdge.hxx>
27 #include <Standard_Boolean.hxx>
32 DEFINE_STANDARD_HANDLE(BRep_TEdge, TopoDS_TEdge)
34 //! The TEdge from BRep is inherited from the TEdge
35 //! from TopoDS. It contains the geometric data.
37 //! The TEdge contains :
41 //! * A same parameter flag.
43 //! * A same range flag.
45 //! * A Degenerated flag.
47 //! * A list of curve representation.
48 class BRep_TEdge : public TopoDS_TEdge
54 //! Creates an empty TEdge.
55 Standard_EXPORT BRep_TEdge();
57 Standard_Real Tolerance() const;
59 void Tolerance (const Standard_Real T);
61 //! Sets the tolerance to the max of <T> and the
62 //! current tolerance.
63 void UpdateTolerance (const Standard_Real T);
65 Standard_EXPORT Standard_Boolean SameParameter() const;
67 Standard_EXPORT void SameParameter (const Standard_Boolean S);
69 Standard_EXPORT Standard_Boolean SameRange() const;
71 Standard_EXPORT void SameRange (const Standard_Boolean S);
73 Standard_EXPORT Standard_Boolean Degenerated() const;
75 Standard_EXPORT void Degenerated (const Standard_Boolean S);
77 const BRep_ListOfCurveRepresentation& Curves() const;
79 BRep_ListOfCurveRepresentation& ChangeCurves();
81 //! Returns a copy of the TShape with no sub-shapes.
82 Standard_EXPORT Handle(TopoDS_TShape) EmptyCopy() const Standard_OVERRIDE;
87 DEFINE_STANDARD_RTTIEXT(BRep_TEdge,TopoDS_TEdge)
97 Standard_Real myTolerance;
98 Standard_Integer myFlags;
99 BRep_ListOfCurveRepresentation myCurves;
105 #include <BRep_TEdge.lxx>
111 #endif // _BRep_TEdge_HeaderFile