Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:08

0001 // Created on: 2012-02-10
0002 // Created by: Serey ZERCHANINOV
0003 // Copyright (c) 2012-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _Intf_Polygon2d_HeaderFile
0017 #define _Intf_Polygon2d_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <Bnd_Box2d.hxx>
0024 #include <Standard_Boolean.hxx>
0025 class gp_Pnt2d;
0026 
0027 
0028 //! Describes the necessary polygon information to compute
0029 //! the interferences.
0030 class Intf_Polygon2d 
0031 {
0032 public:
0033 
0034   DEFINE_STANDARD_ALLOC
0035 
0036   
0037   //! Returns the bounding box of the polygon.
0038     const Bnd_Box2d& Bounding() const;
0039   
0040   //! Returns True if the polyline is closed.
0041   Standard_EXPORT virtual Standard_Boolean Closed() const;
0042   virtual ~Intf_Polygon2d() {}
0043   
0044   //! Returns the tolerance of the polygon.
0045   Standard_EXPORT virtual Standard_Real DeflectionOverEstimation() const = 0;
0046   
0047   //! Returns the number of Segments in the polyline.
0048   Standard_EXPORT virtual Standard_Integer NbSegments() const = 0;
0049   
0050   //! Returns the points of the segment <Index> in the Polygon.
0051   Standard_EXPORT virtual void Segment (const Standard_Integer theIndex, gp_Pnt2d& theBegin, gp_Pnt2d& theEnd) const = 0;
0052 
0053 
0054 
0055 
0056 protected:
0057 
0058 
0059 
0060   Bnd_Box2d myBox;
0061 
0062 
0063 private:
0064 
0065 
0066 
0067 
0068 
0069 };
0070 
0071 
0072 #include <Intf_Polygon2d.lxx>
0073 
0074 
0075 
0076 
0077 
0078 #endif // _Intf_Polygon2d_HeaderFile