Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:11

0001 // Created on: 2000-05-18
0002 // Created by: Peter KURNEV
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _IntTools_Range_HeaderFile
0017 #define _IntTools_Range_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <Standard_Real.hxx>
0024 
0025 
0026 //! The class describes the  1-d range
0027 //! [myFirst, myLast].
0028 class IntTools_Range 
0029 {
0030 public:
0031 
0032   DEFINE_STANDARD_ALLOC
0033 
0034   
0035 
0036   //! Empty constructor
0037   Standard_EXPORT IntTools_Range();
0038   
0039 
0040   //! Initialize me by range boundaries
0041   Standard_EXPORT IntTools_Range(const Standard_Real aFirst, const Standard_Real aLast);
0042   
0043 
0044   //! Modifier
0045   Standard_EXPORT void SetFirst (const Standard_Real aFirst);
0046   
0047 
0048   //! Modifier
0049   Standard_EXPORT void SetLast (const Standard_Real aLast);
0050   
0051 
0052   //! Selector
0053   Standard_EXPORT Standard_Real First() const;
0054   
0055 
0056   //! Selector
0057   Standard_EXPORT Standard_Real Last() const;
0058   
0059 
0060   //! Selector
0061   Standard_EXPORT void Range (Standard_Real& aFirst, Standard_Real& aLast) const;
0062 
0063 
0064 
0065 
0066 protected:
0067 
0068 
0069 
0070 
0071 
0072 private:
0073 
0074 
0075 
0076   Standard_Real myFirst;
0077   Standard_Real myLast;
0078 
0079 
0080 };
0081 
0082 
0083 
0084 
0085 
0086 
0087 
0088 #endif // _IntTools_Range_HeaderFile