Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1998-08-17
0002 // Created by: Pavel DURANDIN
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #include <ShapeAnalysis_HSequenceOfFreeBounds.hxx>
0018 
0019 //=======================================================================
0020 //function : Shape
0021 //purpose  : Returns shape
0022 //=======================================================================
0023 
0024 inline  TopoDS_Shape ShapeAnalysis_FreeBoundsProperties::Shape() const
0025 {
0026   return myShape;
0027 }
0028 
0029  
0030 //=======================================================================
0031 //function : IsLoaded
0032 //purpose  : Returns True if shape is loaded 
0033 //=======================================================================
0034 
0035 inline  Standard_Boolean ShapeAnalysis_FreeBoundsProperties::IsLoaded() const
0036 {
0037   return !(myShape.IsNull());
0038 }
0039 
0040  
0041 //=======================================================================
0042 //function : Tolerance
0043 //purpose  : Returns tolerance
0044 //=======================================================================
0045 
0046 inline  Standard_Real ShapeAnalysis_FreeBoundsProperties::Tolerance() const
0047 {
0048   return myTolerance;
0049 }
0050 
0051  
0052 //=======================================================================
0053 //function : NbFreeBounds
0054 //purpose  : Returns number of free bounds
0055 //=======================================================================
0056 
0057 inline  Standard_Integer ShapeAnalysis_FreeBoundsProperties::NbFreeBounds() const
0058 {
0059   return (myClosedFreeBounds->Length() + myOpenFreeBounds->Length());
0060 }
0061 
0062 
0063 //=======================================================================
0064 //function : NbClosedFreeBounds
0065 //purpose  : Returns number of closed free bounds
0066 //=======================================================================
0067 
0068 inline  Standard_Integer ShapeAnalysis_FreeBoundsProperties::NbClosedFreeBounds() const
0069 {
0070   return myClosedFreeBounds->Length();
0071 }
0072 
0073 
0074 //=======================================================================
0075 //function : NbOpenFreeBounds
0076 //purpose  : Returns number of open free bounds
0077 //=======================================================================
0078 
0079 inline  Standard_Integer ShapeAnalysis_FreeBoundsProperties::NbOpenFreeBounds() const
0080 {
0081   return myOpenFreeBounds->Length();
0082 }
0083 
0084 
0085 //=======================================================================
0086 //function : ClosedFreeBounds
0087 //purpose  : Returns all closed free bounds
0088 //=======================================================================
0089 
0090 inline  Handle(ShapeAnalysis_HSequenceOfFreeBounds) ShapeAnalysis_FreeBoundsProperties::ClosedFreeBounds() const
0091 {
0092   return myClosedFreeBounds;
0093 }
0094 
0095 //=======================================================================
0096 //function : OpenFreeBounds
0097 //purpose  : Returns all open free bounds
0098 //=======================================================================
0099 
0100 inline  Handle(ShapeAnalysis_HSequenceOfFreeBounds) ShapeAnalysis_FreeBoundsProperties::OpenFreeBounds() const
0101 {
0102   return myOpenFreeBounds;
0103 }
0104 
0105 //=======================================================================
0106 //function : ClosedFreeBound
0107 //purpose  : Returns properties of closed free bound specified by its rank
0108 //           number
0109 //=======================================================================
0110 
0111 inline Handle(ShapeAnalysis_FreeBoundData) ShapeAnalysis_FreeBoundsProperties::ClosedFreeBound(const Standard_Integer index) const
0112 {
0113   return myClosedFreeBounds->Value(index);
0114 }
0115 
0116 //=======================================================================
0117 //function : OpenFreeBound
0118 //purpose  : Returns properties of open free bound specified by its rank
0119 //           number
0120 //=======================================================================
0121 
0122 inline Handle(ShapeAnalysis_FreeBoundData) ShapeAnalysis_FreeBoundsProperties::OpenFreeBound(const Standard_Integer index) const
0123 {
0124   return myOpenFreeBounds->Value(index);
0125 }
0126 
0127