Warning, /include/opencascade/HLRBRep_Surface.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1992-03-13
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1992-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 <BRepAdaptor_Surface.hxx>
0018 #include <HLRBRep_BSurfaceTool.hxx>
0019
0020 //=======================================================================
0021 //function : Surface
0022 //purpose :
0023 //=======================================================================
0024
0025 inline BRepAdaptor_Surface & HLRBRep_Surface::Surface()
0026 { return mySurf; }
0027
0028 //=======================================================================
0029 //function : FirstUParameter
0030 //purpose :
0031 //=======================================================================
0032
0033 inline Standard_Real HLRBRep_Surface::FirstUParameter()const
0034 { return HLRBRep_BSurfaceTool::FirstUParameter(mySurf); }
0035
0036 //=======================================================================
0037 //function : LastUParameter
0038 //purpose :
0039 //=======================================================================
0040
0041 inline Standard_Real HLRBRep_Surface::LastUParameter()const
0042 { return HLRBRep_BSurfaceTool::LastUParameter(mySurf); }
0043
0044 //=======================================================================
0045 //function : FirstVParameter
0046 //purpose :
0047 //=======================================================================
0048
0049 inline Standard_Real HLRBRep_Surface::FirstVParameter()const
0050 { return HLRBRep_BSurfaceTool::FirstVParameter(mySurf); }
0051
0052 //=======================================================================
0053 //function : LastVParameter
0054 //purpose :
0055 //=======================================================================
0056
0057 inline Standard_Real HLRBRep_Surface::LastVParameter()const
0058 { return HLRBRep_BSurfaceTool::LastVParameter(mySurf); }
0059
0060 //=======================================================================
0061 //function : UContinuity
0062 //purpose :
0063 //=======================================================================
0064
0065 inline GeomAbs_Shape HLRBRep_Surface::UContinuity()const
0066 { return HLRBRep_BSurfaceTool::UContinuity(mySurf); }
0067
0068 //=======================================================================
0069 //function : VContinuity
0070 //purpose :
0071 //=======================================================================
0072
0073 inline GeomAbs_Shape HLRBRep_Surface::VContinuity()const
0074 { return HLRBRep_BSurfaceTool::VContinuity(mySurf); }
0075
0076 //=======================================================================
0077 //function : NbUIntervals
0078 //purpose :
0079 //=======================================================================
0080
0081 inline Standard_Integer
0082 HLRBRep_Surface::NbUIntervals(const GeomAbs_Shape S)
0083 { return HLRBRep_BSurfaceTool::NbUIntervals(mySurf,S); }
0084
0085 //=======================================================================
0086 //function : NbVIntervals
0087 //purpose :
0088 //=======================================================================
0089
0090 inline Standard_Integer
0091 HLRBRep_Surface::NbVIntervals(const GeomAbs_Shape S)
0092 { return HLRBRep_BSurfaceTool::NbVIntervals(mySurf,S); }
0093
0094 //=======================================================================
0095 //function : IsUClosed
0096 //purpose :
0097 //=======================================================================
0098
0099 inline Standard_Boolean HLRBRep_Surface::IsUClosed()const
0100 { return HLRBRep_BSurfaceTool::IsUClosed(mySurf); }
0101
0102 //=======================================================================
0103 //function : IsVClosed
0104 //purpose :
0105 //=======================================================================
0106
0107 inline Standard_Boolean HLRBRep_Surface::IsVClosed()const
0108 { return HLRBRep_BSurfaceTool::IsVClosed(mySurf); }
0109
0110 //=======================================================================
0111 //function : IsUPeriodic
0112 //purpose :
0113 //=======================================================================
0114
0115 inline Standard_Boolean HLRBRep_Surface::IsUPeriodic()const
0116 { return HLRBRep_BSurfaceTool::IsUPeriodic(mySurf); }
0117
0118 //=======================================================================
0119 //function : UPeriod
0120 //purpose :
0121 //=======================================================================
0122
0123 inline Standard_Real HLRBRep_Surface::UPeriod()const
0124 { return HLRBRep_BSurfaceTool::UPeriod(mySurf); }
0125
0126 //=======================================================================
0127 //function : IsVPeriodic
0128 //purpose :
0129 //=======================================================================
0130
0131 inline Standard_Boolean HLRBRep_Surface::IsVPeriodic()const
0132 { return HLRBRep_BSurfaceTool::IsVPeriodic(mySurf); }
0133
0134 //=======================================================================
0135 //function : VPeriod
0136 //purpose :
0137 //=======================================================================
0138
0139 inline Standard_Real HLRBRep_Surface::VPeriod()const
0140 { return HLRBRep_BSurfaceTool::VPeriod(mySurf); }
0141
0142 //=======================================================================
0143 //function : D0
0144 //purpose :
0145 //=======================================================================
0146
0147 inline void HLRBRep_Surface::D0(const Standard_Real U,
0148 const Standard_Real V,
0149 gp_Pnt& P) const
0150 { HLRBRep_BSurfaceTool::D0(mySurf,U,V,P); }
0151
0152 //=======================================================================
0153 //function : D1
0154 //purpose :
0155 //=======================================================================
0156
0157 inline void HLRBRep_Surface::D1(const Standard_Real U,
0158 const Standard_Real V,
0159 gp_Pnt& P,
0160 gp_Vec& D1U,
0161 gp_Vec& D1V) const
0162 { HLRBRep_BSurfaceTool::D1(mySurf,U,V,P,D1U,D1V); }
0163
0164 //=======================================================================
0165 //function : D2
0166 //purpose :
0167 //=======================================================================
0168
0169 inline void HLRBRep_Surface::D2(const Standard_Real U,
0170 const Standard_Real V,
0171 gp_Pnt& P,
0172 gp_Vec& D1U,
0173 gp_Vec& D1V,
0174 gp_Vec& D2U,
0175 gp_Vec& D2V,
0176 gp_Vec& D2UV) const
0177 { HLRBRep_BSurfaceTool::D2(mySurf,U,V,P,D1U,D1V,D2U,D2V,D2UV); }
0178
0179 //=======================================================================
0180 //function : D3
0181 //purpose :
0182 //=======================================================================
0183
0184 inline void HLRBRep_Surface::D3(const Standard_Real U,
0185 const Standard_Real V,
0186 gp_Pnt& P,
0187 gp_Vec& D1U,
0188 gp_Vec& D1V,
0189 gp_Vec& D2U,
0190 gp_Vec& D2V,
0191 gp_Vec& D2UV,
0192 gp_Vec& D3U,
0193 gp_Vec& D3V,
0194 gp_Vec& D3UUV,
0195 gp_Vec& D3UVV) const
0196 { HLRBRep_BSurfaceTool::D3
0197 (mySurf,U,V,P,D1U,D1V,D2U,D2V,D2UV,D3U,D3V,D3UUV,D3UVV); }
0198
0199 //=======================================================================
0200 //function : DN
0201 //purpose :
0202 //=======================================================================
0203
0204 inline gp_Vec HLRBRep_Surface::DN(const Standard_Real U,
0205 const Standard_Real V,
0206 const Standard_Integer Nu,
0207 const Standard_Integer Nv) const
0208 { return HLRBRep_BSurfaceTool::DN(mySurf,U,V,Nu,Nv); }
0209
0210 //=======================================================================
0211 //function : GetType
0212 //purpose :
0213 //=======================================================================
0214
0215 inline GeomAbs_SurfaceType HLRBRep_Surface::GetType()const
0216 { return myType; }
0217
0218 //=======================================================================
0219 //function : Cylinder
0220 //purpose :
0221 //=======================================================================
0222
0223 inline gp_Cylinder HLRBRep_Surface::Cylinder()const
0224 { return HLRBRep_BSurfaceTool::Cylinder(mySurf); }
0225
0226 //=======================================================================
0227 //function : Cone
0228 //purpose :
0229 //=======================================================================
0230
0231 inline gp_Cone HLRBRep_Surface::Cone()const
0232 { return HLRBRep_BSurfaceTool::Cone(mySurf); }
0233
0234 //=======================================================================
0235 //function : Sphere
0236 //purpose :
0237 //=======================================================================
0238
0239 inline gp_Sphere HLRBRep_Surface::Sphere()const
0240 { return HLRBRep_BSurfaceTool::Sphere(mySurf); }
0241
0242 //=======================================================================
0243 //function : Torus
0244 //purpose :
0245 //=======================================================================
0246
0247 inline gp_Torus HLRBRep_Surface::Torus()const
0248 { return HLRBRep_BSurfaceTool::Torus(mySurf); }
0249
0250 //=======================================================================
0251 //function : UDegree
0252 //purpose :
0253 //=======================================================================
0254
0255 inline Standard_Integer HLRBRep_Surface::UDegree()const
0256 { return HLRBRep_BSurfaceTool::UDegree(mySurf); }
0257
0258 //=======================================================================
0259 //function : NbUPoles
0260 //purpose :
0261 //=======================================================================
0262
0263 inline Standard_Integer HLRBRep_Surface::NbUPoles()const
0264 { return HLRBRep_BSurfaceTool::NbUPoles(mySurf); }
0265
0266 //=======================================================================
0267 //function : VDegree
0268 //purpose :
0269 //=======================================================================
0270
0271 inline Standard_Integer HLRBRep_Surface::VDegree()const
0272 { return HLRBRep_BSurfaceTool::VDegree(mySurf); }
0273
0274 //=======================================================================
0275 //function : NbVPoles
0276 //purpose :
0277 //=======================================================================
0278
0279 inline Standard_Integer HLRBRep_Surface::NbVPoles()const
0280 { return HLRBRep_BSurfaceTool::NbVPoles(mySurf); }
0281
0282
0283 //=======================================================================
0284 //function : NbUKnots
0285 //purpose :
0286 //=======================================================================
0287
0288 inline Standard_Integer HLRBRep_Surface::NbUKnots()const
0289 { return HLRBRep_BSurfaceTool::NbUKnots(mySurf); }
0290
0291
0292 //=======================================================================
0293 //function : NbVKnots
0294 //purpose :
0295 //=======================================================================
0296
0297 inline Standard_Integer HLRBRep_Surface::NbVKnots()const
0298 { return HLRBRep_BSurfaceTool::NbVKnots(mySurf); }
0299
0300 //=======================================================================
0301 //function : Axis
0302 //purpose :
0303 //=======================================================================
0304
0305 inline gp_Ax1 HLRBRep_Surface::Axis()const
0306 { return HLRBRep_BSurfaceTool::AxeOfRevolution(mySurf); }