Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/BOPDS_Point.lxx is written in an unsupported language. File is not indexed.

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 //=================================================================================================
0016 
0017 inline BOPDS_Point::BOPDS_Point()
0018 {
0019   myPnt.SetCoord(99., 99., 99.);
0020   myPnt2D1.SetCoord(99., 99.);
0021   myPnt2D2 = myPnt2D1;
0022   myIndex  = -1;
0023 }
0024 
0025 //=================================================================================================
0026 
0027 inline BOPDS_Point::~BOPDS_Point() = default;
0028 
0029 //=================================================================================================
0030 
0031 inline void BOPDS_Point::SetIndex(const int theIndex)
0032 {
0033   myIndex = theIndex;
0034 }
0035 
0036 //=================================================================================================
0037 
0038 inline int BOPDS_Point::Index() const
0039 {
0040   return myIndex;
0041 }
0042 
0043 //=================================================================================================
0044 
0045 inline void BOPDS_Point::SetPnt(const gp_Pnt& thePnt)
0046 {
0047   myPnt = thePnt;
0048 }
0049 
0050 //=================================================================================================
0051 
0052 inline const gp_Pnt& BOPDS_Point::Pnt() const
0053 {
0054   return myPnt;
0055 }
0056 
0057 //=================================================================================================
0058 
0059 inline void BOPDS_Point::SetPnt2D1(const gp_Pnt2d& thePnt)
0060 {
0061   myPnt2D1 = thePnt;
0062 }
0063 
0064 //=================================================================================================
0065 
0066 inline const gp_Pnt2d& BOPDS_Point::Pnt2D1() const
0067 {
0068   return myPnt2D1;
0069 }
0070 
0071 //=================================================================================================
0072 
0073 inline void BOPDS_Point::SetPnt2D2(const gp_Pnt2d& thePnt)
0074 {
0075   myPnt2D2 = thePnt;
0076 }
0077 
0078 //=================================================================================================
0079 
0080 inline const gp_Pnt2d& BOPDS_Point::Pnt2D2() const
0081 {
0082   return myPnt2D2;
0083 }