Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-04 08:31:44

0001 // Created by: Peter KURNEV
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 #ifndef _BOPDS_Point_HeaderFile
0016 #define _BOPDS_Point_HeaderFile
0017 
0018 #include <Standard.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020 
0021 #include <gp_Pnt.hxx>
0022 #include <gp_Pnt2d.hxx>
0023 #include <Standard_Integer.hxx>
0024 class gp_Pnt;
0025 class gp_Pnt2d;
0026 
0027 //! The class BOPDS_Point is to store
0028 //! the information about intersection point
0029 class BOPDS_Point
0030 {
0031 public:
0032   DEFINE_STANDARD_ALLOC
0033 
0034   //! Empty constructor
0035   BOPDS_Point();
0036   virtual ~BOPDS_Point();
0037 
0038   //! Modifier
0039   //! Sets 3D point <thePnt>
0040   void SetPnt(const gp_Pnt& thePnt);
0041 
0042   //! Selector
0043   //! Returns 3D point
0044   const gp_Pnt& Pnt() const;
0045 
0046   //! Modifier
0047   //! Sets 2D point on the first face <thePnt>
0048   void SetPnt2D1(const gp_Pnt2d& thePnt);
0049 
0050   //! Selector
0051   //! Returns 2D point on the first face <thePnt>
0052   const gp_Pnt2d& Pnt2D1() const;
0053 
0054   //! Modifier
0055   //! Sets 2D point on the second face <thePnt>
0056   void SetPnt2D2(const gp_Pnt2d& thePnt);
0057 
0058   //! Selector
0059   //! Returns 2D point on the second face <thePnt>
0060   const gp_Pnt2d& Pnt2D2() const;
0061 
0062   //! Modifier
0063   //! Sets the index of the vertex <theIndex>
0064   void SetIndex(const Standard_Integer theIndex);
0065 
0066   //! Selector
0067   //! Returns index of the vertex
0068   Standard_Integer Index() const;
0069 
0070 protected:
0071   gp_Pnt           myPnt;
0072   gp_Pnt2d         myPnt2D1;
0073   gp_Pnt2d         myPnt2D2;
0074   Standard_Integer myIndex;
0075 
0076 private:
0077 };
0078 
0079 #include <BOPDS_Point.lxx>
0080 
0081 #endif // _BOPDS_Point_HeaderFile