File indexing completed on 2025-01-18 10:04:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IGESToBRep_CurveAndSurface_HeaderFile
0018 #define _IGESToBRep_CurveAndSurface_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Integer.hxx>
0025 #include <Message_ProgressRange.hxx>
0026
0027 class Geom_Surface;
0028 class IGESData_IGESModel;
0029 class Transfer_TransientProcess;
0030 class TopoDS_Shape;
0031 class IGESData_IGESEntity;
0032 class Message_Msg;
0033
0034
0035 class IGESToBRep_CurveAndSurface
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042
0043
0044
0045 Standard_EXPORT IGESToBRep_CurveAndSurface();
0046
0047
0048 Standard_EXPORT IGESToBRep_CurveAndSurface(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized);
0049
0050
0051
0052 Standard_EXPORT void Init();
0053
0054
0055 void SetEpsilon (const Standard_Real eps);
0056
0057
0058 Standard_Real GetEpsilon() const;
0059
0060
0061 void SetEpsCoeff (const Standard_Real eps);
0062
0063
0064 Standard_Real GetEpsCoeff() const;
0065
0066
0067 Standard_EXPORT void SetEpsGeom (const Standard_Real eps);
0068
0069
0070 Standard_Real GetEpsGeom() const;
0071
0072
0073 void SetMinTol (const Standard_Real mintol);
0074
0075
0076 void SetMaxTol (const Standard_Real maxtol);
0077
0078
0079
0080
0081
0082
0083 Standard_EXPORT void UpdateMinMaxTol();
0084
0085
0086 Standard_Real GetMinTol() const;
0087
0088
0089 Standard_Real GetMaxTol() const;
0090
0091
0092 void SetModeApprox (const Standard_Boolean mode);
0093
0094
0095 Standard_Boolean GetModeApprox() const;
0096
0097
0098 void SetModeTransfer (const Standard_Boolean mode);
0099
0100
0101 Standard_Boolean GetModeTransfer() const;
0102
0103
0104 void SetOptimized (const Standard_Boolean optimized);
0105
0106
0107 Standard_Boolean GetOptimized() const;
0108
0109
0110 Standard_Real GetUnitFactor() const;
0111
0112
0113 void SetSurfaceCurve (const Standard_Integer ival);
0114
0115
0116
0117
0118 Standard_Integer GetSurfaceCurve() const;
0119
0120
0121 Standard_EXPORT void SetModel (const Handle(IGESData_IGESModel)& model);
0122
0123
0124 Handle(IGESData_IGESModel) GetModel() const;
0125
0126
0127
0128
0129
0130 void SetContinuity (const Standard_Integer continuity);
0131
0132
0133 Standard_Integer GetContinuity() const;
0134
0135
0136 void SetTransferProcess (const Handle(Transfer_TransientProcess)& TP);
0137
0138
0139 Handle(Transfer_TransientProcess) GetTransferProcess() const;
0140
0141
0142
0143
0144 Standard_EXPORT TopoDS_Shape TransferCurveAndSurface (const Handle(IGESData_IGESEntity)& start,
0145 const Message_ProgressRange& theProgress = Message_ProgressRange());
0146
0147
0148
0149
0150 Standard_EXPORT TopoDS_Shape TransferGeometry (const Handle(IGESData_IGESEntity)& start,
0151 const Message_ProgressRange& theProgress = Message_ProgressRange());
0152
0153
0154 void SendFail (const Handle(IGESData_IGESEntity)& start, const Message_Msg& amsg);
0155
0156
0157 void SendWarning (const Handle(IGESData_IGESEntity)& start, const Message_Msg& amsg);
0158
0159
0160
0161 void SendMsg (const Handle(IGESData_IGESEntity)& start, const Message_Msg& amsg);
0162
0163
0164
0165 Standard_EXPORT Standard_Boolean HasShapeResult (const Handle(IGESData_IGESEntity)& start) const;
0166
0167
0168
0169 Standard_EXPORT TopoDS_Shape GetShapeResult (const Handle(IGESData_IGESEntity)& start) const;
0170
0171
0172 Standard_EXPORT void SetShapeResult (const Handle(IGESData_IGESEntity)& start, const TopoDS_Shape& result);
0173
0174
0175
0176 Standard_EXPORT Standard_Integer NbShapeResult (const Handle(IGESData_IGESEntity)& start) const;
0177
0178
0179
0180 Standard_EXPORT TopoDS_Shape GetShapeResult (const Handle(IGESData_IGESEntity)& start, const Standard_Integer num) const;
0181
0182
0183
0184 Standard_EXPORT void AddShapeResult (const Handle(IGESData_IGESEntity)& start, const TopoDS_Shape& result);
0185
0186 Standard_EXPORT void SetSurface (const Handle(Geom_Surface)& theSurface);
0187
0188 Standard_EXPORT Handle(Geom_Surface) Surface() const;
0189
0190 Standard_EXPORT Standard_Real GetUVResolution();
0191
0192
0193
0194
0195 protected:
0196
0197
0198
0199
0200
0201 private:
0202
0203
0204
0205 Standard_Real myEps;
0206 Standard_Real myEpsCoeff;
0207 Standard_Real myEpsGeom;
0208 Standard_Real myMinTol;
0209 Standard_Real myMaxTol;
0210 Standard_Boolean myModeIsTopo;
0211 Standard_Boolean myModeApprox;
0212 Standard_Boolean myContIsOpti;
0213 Standard_Real myUnitFactor;
0214 Standard_Integer mySurfaceCurve;
0215 Standard_Integer myContinuity;
0216 Handle(Geom_Surface) mySurface;
0217 Standard_Real myUVResolution;
0218 Standard_Boolean myIsResolCom;
0219 Handle(IGESData_IGESModel) myModel;
0220 Handle(Transfer_TransientProcess) myTP;
0221
0222
0223 };
0224
0225
0226 #include <IGESToBRep_CurveAndSurface.lxx>
0227
0228
0229
0230
0231
0232 #endif