Warning, /include/opencascade/BOPDS_Pave.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 // function :
0017 // purpose :
0018 //=======================================================================
0019 inline BOPDS_Pave::BOPDS_Pave()
0020 {
0021 myIndex = -1;
0022 myParameter = 99.;
0023 }
0024
0025 //=======================================================================
0026 // function : SetIndex
0027 // purpose :
0028 //=======================================================================
0029 inline void BOPDS_Pave::SetIndex(const Standard_Integer theIndex)
0030 {
0031 myIndex = theIndex;
0032 }
0033
0034 //=======================================================================
0035 // function : Index
0036 // purpose :
0037 //=======================================================================
0038 inline Standard_Integer BOPDS_Pave::Index() const
0039 {
0040 return myIndex;
0041 }
0042
0043 //=======================================================================
0044 // function : SetParameter
0045 // purpose :
0046 //=======================================================================
0047 inline void BOPDS_Pave::SetParameter(const Standard_Real theParameter)
0048 {
0049 myParameter = theParameter;
0050 }
0051
0052 //=======================================================================
0053 // function : Parameter
0054 // purpose :
0055 //=======================================================================
0056 inline Standard_Real BOPDS_Pave::Parameter() const
0057 {
0058 return myParameter;
0059 }
0060
0061 //=======================================================================
0062 // function : Contents
0063 // purpose :
0064 //=======================================================================
0065 inline void BOPDS_Pave::Contents(Standard_Integer& theIndex, Standard_Real& theParameter) const
0066 {
0067 theIndex = myIndex;
0068 theParameter = myParameter;
0069 }
0070
0071 //=======================================================================
0072 // function : IsLess
0073 // purpose :
0074 //=======================================================================
0075 inline Standard_Boolean BOPDS_Pave::IsLess(const BOPDS_Pave& theOther) const
0076 {
0077 return myParameter < theOther.myParameter;
0078 }
0079
0080 //=======================================================================
0081 // function : IsEqual
0082 // purpose :
0083 //=======================================================================
0084 inline Standard_Boolean BOPDS_Pave::IsEqual(const BOPDS_Pave& theOther) const
0085 {
0086 Standard_Boolean bFlag;
0087 //
0088 bFlag = ((myIndex == theOther.myIndex) && (myParameter == theOther.myParameter));
0089 return bFlag;
0090 }