Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 //: pdn 05.01.99: renaming method ...Little to ...Small
0015 #include <ShapeExtend.hxx>
0016 #include <ShapeExtend_WireData.hxx>
0017 
0018 //=======================================================================
0019 // function : IsLoaded
0020 // purpose  :
0021 //=======================================================================
0022 
0023 inline Standard_Boolean ShapeAnalysis_Wire::IsLoaded() const
0024 {
0025   return !myWire.IsNull() && myWire->NbEdges() > 0;
0026 }
0027 
0028 //=======================================================================
0029 // function : IsReady
0030 // purpose  :
0031 //=======================================================================
0032 
0033 inline Standard_Boolean ShapeAnalysis_Wire::IsReady() const
0034 {
0035   return IsLoaded() && !myFace.IsNull();
0036 }
0037 
0038 //=======================================================================
0039 // function : Precision
0040 // purpose  :
0041 //=======================================================================
0042 
0043 inline Standard_Real ShapeAnalysis_Wire::Precision() const
0044 {
0045   return myPrecision;
0046 }
0047 
0048 //=======================================================================
0049 // function : WireData
0050 // purpose  :
0051 //=======================================================================
0052 
0053 inline const Handle(ShapeExtend_WireData)& ShapeAnalysis_Wire::WireData() const
0054 {
0055   return myWire;
0056 }
0057 
0058 //=======================================================================
0059 // function : NbEdges
0060 // purpose  :
0061 //=======================================================================
0062 
0063 inline Standard_Integer ShapeAnalysis_Wire::NbEdges() const
0064 {
0065   return myWire.IsNull() ? 0 : myWire->NbEdges();
0066 }
0067 
0068 //=======================================================================
0069 // function : Face
0070 // purpose  :
0071 //=======================================================================
0072 
0073 inline const TopoDS_Face& ShapeAnalysis_Wire::Face() const
0074 {
0075   return myFace;
0076 }
0077 
0078 //=======================================================================
0079 // function : Surface
0080 // purpose  :
0081 //=======================================================================
0082 
0083 inline const Handle(ShapeAnalysis_Surface)& ShapeAnalysis_Wire::Surface() const
0084 {
0085   return mySurf;
0086 }
0087 
0088 //=======================================================================
0089 // function : StatusOrder
0090 // purpose  :
0091 //=======================================================================
0092 
0093 inline Standard_Boolean ShapeAnalysis_Wire::StatusOrder(const ShapeExtend_Status Status) const
0094 {
0095   return ShapeExtend::DecodeStatus(myStatusOrder, Status);
0096 }
0097 
0098 //=======================================================================
0099 // function : StatusConnected
0100 // purpose  :
0101 //=======================================================================
0102 
0103 inline Standard_Boolean ShapeAnalysis_Wire::StatusConnected(const ShapeExtend_Status Status) const
0104 {
0105   return ShapeExtend::DecodeStatus(myStatusConnected, Status);
0106 }
0107 
0108 //=======================================================================
0109 // function : StatusEdgeCurves
0110 // purpose  :
0111 //=======================================================================
0112 
0113 inline Standard_Boolean ShapeAnalysis_Wire::StatusEdgeCurves(const ShapeExtend_Status Status) const
0114 {
0115   return ShapeExtend::DecodeStatus(myStatusEdgeCurves, Status);
0116 }
0117 
0118 //=======================================================================
0119 // function : StatusDegenerated
0120 // purpose  :
0121 //=======================================================================
0122 
0123 inline Standard_Boolean ShapeAnalysis_Wire::StatusDegenerated(const ShapeExtend_Status Status) const
0124 {
0125   return ShapeExtend::DecodeStatus(myStatusDegenerated, Status);
0126 }
0127 
0128 //=======================================================================
0129 // function : StatusClosed
0130 // purpose  :
0131 //=======================================================================
0132 
0133 inline Standard_Boolean ShapeAnalysis_Wire::StatusClosed(const ShapeExtend_Status Status) const
0134 {
0135   return ShapeExtend::DecodeStatus(myStatusClosed, Status);
0136 }
0137 
0138 //=======================================================================
0139 // function : StatusSmall
0140 // purpose  :
0141 //=======================================================================
0142 
0143 inline Standard_Boolean ShapeAnalysis_Wire::StatusSmall(const ShapeExtend_Status Status) const
0144 {
0145   return ShapeExtend::DecodeStatus(myStatusSmall, Status);
0146 }
0147 
0148 //=======================================================================
0149 // function : StatusSelfIntersection
0150 // purpose  :
0151 //=======================================================================
0152 
0153 inline Standard_Boolean ShapeAnalysis_Wire::StatusSelfIntersection(
0154   const ShapeExtend_Status Status) const
0155 {
0156   return ShapeExtend::DecodeStatus(myStatusSelfIntersection, Status);
0157 }
0158 
0159 //=======================================================================
0160 // function : StatusLacking
0161 // purpose  :
0162 //=======================================================================
0163 
0164 inline Standard_Boolean ShapeAnalysis_Wire::StatusLacking(const ShapeExtend_Status Status) const
0165 {
0166   return ShapeExtend::DecodeStatus(myStatusLacking, Status);
0167 }
0168 
0169 //=======================================================================
0170 // function : StatusGaps3d
0171 // purpose  :
0172 //=======================================================================
0173 
0174 inline Standard_Boolean ShapeAnalysis_Wire::StatusGaps3d(const ShapeExtend_Status Status) const
0175 {
0176   return ShapeExtend::DecodeStatus(myStatusGaps3d, Status);
0177 }
0178 
0179 //=======================================================================
0180 // function : StatusGaps2d
0181 // purpose  :
0182 //=======================================================================
0183 
0184 inline Standard_Boolean ShapeAnalysis_Wire::StatusGaps2d(const ShapeExtend_Status Status) const
0185 {
0186   return ShapeExtend::DecodeStatus(myStatusGaps2d, Status);
0187 }
0188 
0189 //=======================================================================
0190 // function : StatusCurveGaps
0191 // purpose  :
0192 //=======================================================================
0193 
0194 inline Standard_Boolean ShapeAnalysis_Wire::StatusCurveGaps(const ShapeExtend_Status Status) const
0195 {
0196   return ShapeExtend::DecodeStatus(myStatusCurveGaps, Status);
0197 }
0198 
0199 //=======================================================================
0200 // function : StatusLoop
0201 // purpose  :
0202 //=======================================================================
0203 
0204 inline Standard_Boolean ShapeAnalysis_Wire::StatusLoop(const ShapeExtend_Status Status) const
0205 {
0206   return ShapeExtend::DecodeStatus(myStatusLoop, Status);
0207 }
0208 
0209 //=======================================================================
0210 // function : Status
0211 // purpose  :
0212 //=======================================================================
0213 
0214 inline Standard_Boolean ShapeAnalysis_Wire::LastCheckStatus(const ShapeExtend_Status Status) const
0215 {
0216   return ShapeExtend::DecodeStatus(myStatus, Status);
0217 }
0218 
0219 //=======================================================================
0220 // function : MinDistance3d
0221 // purpose  :
0222 //=======================================================================
0223 
0224 inline Standard_Real ShapeAnalysis_Wire::MinDistance3d() const
0225 {
0226   return myMin3d;
0227 }
0228 
0229 //=======================================================================
0230 // function : MinDistance2d
0231 // purpose  :
0232 //=======================================================================
0233 
0234 inline Standard_Real ShapeAnalysis_Wire::MinDistance2d() const
0235 {
0236   return myMin2d;
0237 }
0238 
0239 //=======================================================================
0240 // function : MaxDistance3d
0241 // purpose  :
0242 //=======================================================================
0243 
0244 inline Standard_Real ShapeAnalysis_Wire::MaxDistance3d() const
0245 {
0246   return myMax3d;
0247 }
0248 
0249 //=======================================================================
0250 // function : MaxDistance2d
0251 // purpose  :
0252 //=======================================================================
0253 
0254 inline Standard_Real ShapeAnalysis_Wire::MaxDistance2d() const
0255 {
0256   return myMax2d;
0257 }