b311480e |
1 | // Created by: Peter KURNEV |
973c2be1 |
2 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
3 | // |
973c2be1 |
4 | // This file is part of Open CASCADE Technology software library. |
b311480e |
5 | // |
973c2be1 |
6 | // This library is free software; you can redistribute it and / or modify it |
7 | // under the terms of the GNU Lesser General Public version 2.1 as published |
8 | // by the Free Software Foundation, with special exception defined in the file |
9 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
10 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
11 | // |
973c2be1 |
12 | // Alternatively, this file may be used under the terms of Open CASCADE |
13 | // commercial license or contractual agreement. |
7fd59977 |
14 | |
7fd59977 |
15 | //======================================================================= |
4e57c75e |
16 | //function : |
7fd59977 |
17 | //purpose : |
18 | //======================================================================= |
4e57c75e |
19 | inline BOPDS_Pave::BOPDS_Pave() |
7fd59977 |
20 | { |
4e57c75e |
21 | myIndex=-1; |
22 | myParameter=99.; |
7fd59977 |
23 | } |
7fd59977 |
24 | //======================================================================= |
4e57c75e |
25 | //function : ~ |
7fd59977 |
26 | //purpose : |
27 | //======================================================================= |
4e57c75e |
28 | inline BOPDS_Pave::~BOPDS_Pave() |
7fd59977 |
29 | { |
30 | } |
31 | //======================================================================= |
4e57c75e |
32 | //function : SetIndex |
7fd59977 |
33 | //purpose : |
34 | //======================================================================= |
4e57c75e |
35 | inline void BOPDS_Pave::SetIndex(const Standard_Integer theIndex) |
7fd59977 |
36 | { |
4e57c75e |
37 | myIndex=theIndex; |
7fd59977 |
38 | } |
7fd59977 |
39 | //======================================================================= |
4e57c75e |
40 | //function : Index |
7fd59977 |
41 | //purpose : |
42 | //======================================================================= |
4e57c75e |
43 | inline Standard_Integer BOPDS_Pave::Index()const |
7fd59977 |
44 | { |
4e57c75e |
45 | return myIndex; |
7fd59977 |
46 | } |
7fd59977 |
47 | //======================================================================= |
4e57c75e |
48 | //function : SetParameter |
7fd59977 |
49 | //purpose : |
50 | //======================================================================= |
4e57c75e |
51 | inline void BOPDS_Pave::SetParameter(const Standard_Real theParameter) |
7fd59977 |
52 | { |
4e57c75e |
53 | myParameter=theParameter; |
7fd59977 |
54 | } |
55 | |
56 | //======================================================================= |
4e57c75e |
57 | //function : Parameter |
7fd59977 |
58 | //purpose : |
59 | //======================================================================= |
4e57c75e |
60 | inline Standard_Real BOPDS_Pave::Parameter()const |
7fd59977 |
61 | { |
4e57c75e |
62 | return myParameter; |
7fd59977 |
63 | } |
7fd59977 |
64 | //======================================================================= |
4e57c75e |
65 | //function : Contents |
7fd59977 |
66 | //purpose : |
67 | //======================================================================= |
4e57c75e |
68 | inline void BOPDS_Pave::Contents(Standard_Integer& theIndex, |
69 | Standard_Real& theParameter)const |
7fd59977 |
70 | { |
4e57c75e |
71 | theIndex=myIndex; |
72 | theParameter=myParameter; |
7fd59977 |
73 | } |
7fd59977 |
74 | //======================================================================= |
4e57c75e |
75 | //function : IsLess |
7fd59977 |
76 | //purpose : |
77 | //======================================================================= |
4e57c75e |
78 | inline Standard_Boolean BOPDS_Pave::IsLess(const BOPDS_Pave& theOther)const |
7fd59977 |
79 | { |
4e57c75e |
80 | return myParameter<theOther.myParameter; |
81 | } |
82 | //======================================================================= |
83 | //function : IsEqual |
84 | //purpose : |
85 | //======================================================================= |
86 | inline Standard_Boolean BOPDS_Pave::IsEqual(const BOPDS_Pave& theOther)const |
87 | { |
88 | Standard_Boolean bFlag; |
89 | // |
90 | bFlag=((myIndex==theOther.myIndex) && |
91 | (myParameter==theOther.myParameter)); |
92 | return bFlag; |
7fd59977 |
93 | } |