Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1999-03-05
0002 // Created by: Fabrice SERVANT
0003 // Copyright (c) 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 _IntPolyh_Edge_HeaderFile
0018 #define _IntPolyh_Edge_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 //! The class represents the edge built between the two IntPolyh points.<br>
0025 //! It is linked to two IntPolyh triangles.
0026 class IntPolyh_Edge
0027 {
0028 public:
0029 
0030   DEFINE_STANDARD_ALLOC
0031 
0032   //! Constructor
0033   IntPolyh_Edge() :
0034     myPoint1(-1), myPoint2(-1), myTriangle1(-1), myTriangle2(-1)
0035   {}
0036   //! Constructor
0037   IntPolyh_Edge(const Standard_Integer thePoint1,
0038                 const Standard_Integer thePoint2,
0039                 const Standard_Integer theTriangle1,
0040                 const Standard_Integer theTriangle2)
0041   :
0042     myPoint1(thePoint1),
0043     myPoint2(thePoint2),
0044     myTriangle1(theTriangle1),
0045     myTriangle2(theTriangle2)
0046   {}
0047 
0048   //! Returns the first point
0049   Standard_Integer FirstPoint() const
0050   {
0051     return myPoint1;
0052   }
0053   //! Returns the second point
0054   Standard_Integer SecondPoint() const
0055   {
0056     return myPoint2;
0057   }
0058   //! Returns the first triangle
0059   Standard_Integer FirstTriangle() const
0060   {
0061     return myTriangle1;
0062   }
0063   //! Returns the second triangle
0064   Standard_Integer SecondTriangle() const
0065   {
0066     return myTriangle2;
0067   }
0068   //! Sets the first point
0069   void SetFirstPoint (const Standard_Integer thePoint)
0070   {
0071     myPoint1 = thePoint;
0072   }
0073   //! Sets the second point
0074   void SetSecondPoint (const Standard_Integer thePoint)
0075   {
0076     myPoint2 = thePoint;
0077   }
0078   //! Sets the first triangle
0079   void SetFirstTriangle (const Standard_Integer theTriangle)
0080   {
0081     myTriangle1 = theTriangle;
0082   }
0083   //! Sets the second triangle
0084   void SetSecondTriangle (const Standard_Integer theTriangle)
0085   {
0086     myTriangle2 = theTriangle;
0087   }
0088   
0089   Standard_EXPORT void Dump (const Standard_Integer v) const;
0090 
0091 protected:
0092 
0093 private:
0094 
0095   Standard_Integer myPoint1;
0096   Standard_Integer myPoint2;
0097   Standard_Integer myTriangle1;
0098   Standard_Integer myTriangle2;
0099 };
0100 
0101 #endif // _IntPolyh_Edge_HeaderFile