0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / IntTools / IntTools_Range.cxx
1 // Created on: 2000-05-18
2 // Created by: Peter KURNEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16
17 #include <IntTools_Range.hxx>
18
19 //=======================================================================
20 //function : IntTools_Range::IntTools_Range
21 //purpose  : 
22 //=======================================================================
23 IntTools_Range::IntTools_Range():myFirst(0.), myLast(0.) {}
24
25 //=======================================================================
26 //function : IntTools_Range::IntTools_Range
27 //purpose  : 
28 //=======================================================================
29   IntTools_Range::IntTools_Range(const Standard_Real aFirst,const Standard_Real aLast)
30 {
31   myFirst=aFirst;
32   myLast=aLast;
33 }
34 //=======================================================================
35 //function : SetFirst
36 //purpose  : 
37 //=======================================================================
38   void IntTools_Range::SetFirst(const Standard_Real aFirst) 
39 {
40   myFirst=aFirst;
41 }
42 //=======================================================================
43 //function : SetLast
44 //purpose  : 
45 //=======================================================================
46   void IntTools_Range::SetLast(const Standard_Real aLast) 
47 {
48   myLast=aLast;
49 }
50 //=======================================================================
51 //function : First
52 //purpose  : 
53 //=======================================================================
54   Standard_Real IntTools_Range::First() const
55 {
56   return myFirst;
57 }
58 //=======================================================================
59 //function : Last
60 //purpose  : 
61 //=======================================================================
62   Standard_Real IntTools_Range::Last() const
63 {
64   return myLast;
65 }
66 //=======================================================================
67 //function : Range
68 //purpose  : 
69 //=======================================================================
70   void IntTools_Range::Range(Standard_Real& aFirst,Standard_Real& aLast) const
71 {
72   aFirst=myFirst;
73   aLast =myLast;
74 }