File indexing completed on 2025-01-18 10:03:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _IGESCAFControl_ConfigurationNode_HeaderFile
0015 #define _IGESCAFControl_ConfigurationNode_HeaderFile
0016
0017 #include <DE_ConfigurationNode.hxx>
0018 #include <UnitsMethods_LengthUnit.hxx>
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 class IGESCAFControl_ConfigurationNode : public DE_ConfigurationNode
0031 {
0032 DEFINE_STANDARD_RTTIEXT(IGESCAFControl_ConfigurationNode, DE_ConfigurationNode)
0033 public:
0034
0035
0036 Standard_EXPORT IGESCAFControl_ConfigurationNode();
0037
0038
0039
0040 Standard_EXPORT IGESCAFControl_ConfigurationNode(const Handle(IGESCAFControl_ConfigurationNode)& theNode);
0041
0042
0043
0044
0045 Standard_EXPORT virtual bool Load(const Handle(DE_ConfigurationContext)& theResource) Standard_OVERRIDE;
0046
0047
0048
0049 Standard_EXPORT virtual TCollection_AsciiString Save() const Standard_OVERRIDE;
0050
0051
0052
0053 Standard_EXPORT virtual Handle(DE_ConfigurationNode) Copy() const Standard_OVERRIDE;
0054
0055
0056
0057
0058 Standard_EXPORT virtual Handle(DE_Provider) BuildProvider() Standard_OVERRIDE;
0059
0060 public:
0061
0062
0063
0064 Standard_EXPORT virtual bool IsImportSupported() const Standard_OVERRIDE;
0065
0066
0067
0068 Standard_EXPORT virtual bool IsExportSupported() const Standard_OVERRIDE;
0069
0070
0071
0072 Standard_EXPORT virtual TCollection_AsciiString GetFormat() const Standard_OVERRIDE;
0073
0074
0075
0076 Standard_EXPORT virtual TCollection_AsciiString GetVendor() const Standard_OVERRIDE;
0077
0078
0079
0080 Standard_EXPORT virtual TColStd_ListOfAsciiString GetExtensions() const Standard_OVERRIDE;
0081
0082
0083
0084
0085 Standard_EXPORT virtual bool CheckContent(const Handle(NCollection_Buffer)& theBuffer) const Standard_OVERRIDE;
0086
0087 public:
0088
0089 enum ReadMode_BSplineContinuity
0090 {
0091 ReadMode_BSplineContinuity_C0 = 0,
0092 ReadMode_BSplineContinuity_C1,
0093 ReadMode_BSplineContinuity_C2
0094 };
0095 enum ReadMode_Precision
0096 {
0097 ReadMode_Precision_File = 0,
0098 ReadMode_Precision_User
0099 };
0100 enum ReadMode_MaxPrecision
0101 {
0102 ReadMode_MaxPrecision_Preferred = 0,
0103 ReadMode_MaxPrecision_Forced
0104 };
0105 enum ReadMode_SurfaceCurve
0106 {
0107 ReadMode_SurfaceCurve_Default = 0,
0108 ReadMode_SurfaceCurve_2DUse_Preferred = 2,
0109 ReadMode_SurfaceCurve_2DUse_Forced = -2,
0110 ReadMode_SurfaceCurve_3DUse_Preferred = 3,
0111 ReadMode_SurfaceCurve_3DUse_Forced = -3
0112 };
0113 enum WriteMode_BRep
0114 {
0115 WriteMode_BRep_Faces = 0,
0116 WriteMode_BRep_BRep
0117 };
0118 enum WriteMode_ConvertSurface
0119 {
0120 WriteMode_ConvertSurface_Off = 0,
0121 WriteMode_ConvertSurface_On
0122 };
0123 enum WriteMode_PrecisionMode
0124 {
0125 WriteMode_PrecisionMode_Least = -1,
0126 WriteMode_PrecisionMode_Average = 0,
0127 WriteMode_PrecisionMode_Greatest = 1,
0128 WriteMode_PrecisionMode_Session = 2
0129 };
0130 enum WriteMode_PlaneMode
0131 {
0132 WriteMode_PlaneMode_Plane = 0,
0133 WriteMode_PlaneMode_BSpline
0134 };
0135 struct IGESCAFControl_InternalSection
0136 {
0137
0138 ReadMode_BSplineContinuity ReadBSplineContinuity = ReadMode_BSplineContinuity_C1;
0139 ReadMode_Precision ReadPrecisionMode = ReadMode_Precision_File;
0140 double ReadPrecisionVal = 0.0001;
0141 ReadMode_MaxPrecision ReadMaxPrecisionMode = ReadMode_MaxPrecision_Preferred;
0142 double ReadMaxPrecisionVal = 1;
0143 bool ReadSameParamMode = false;
0144 ReadMode_SurfaceCurve ReadSurfaceCurveMode = ReadMode_SurfaceCurve_Default;
0145 double EncodeRegAngle = 0.57295779513;
0146
0147
0148 bool ReadApproxd1 = false;
0149 TCollection_AsciiString ReadResourceName = "IGES";
0150 TCollection_AsciiString ReadSequence = "FromIGES";
0151 bool ReadFaultyEntities = false;
0152 bool ReadOnlyVisible = false;
0153 bool ReadColor = true;
0154 bool ReadName = true;
0155 bool ReadLayer = true;
0156
0157
0158 WriteMode_BRep WriteBRepMode = WriteMode_BRep_Faces;
0159 WriteMode_ConvertSurface WriteConvertSurfaceMode = WriteMode_ConvertSurface_Off;
0160 UnitsMethods_LengthUnit WriteUnit = UnitsMethods_LengthUnit_Millimeter;
0161 TCollection_AsciiString WriteHeaderAuthor;
0162 TCollection_AsciiString WriteHeaderCompany;
0163 TCollection_AsciiString WriteHeaderProduct;
0164 TCollection_AsciiString WriteHeaderReciever;
0165 TCollection_AsciiString WriteResourceName = "IGES";
0166 TCollection_AsciiString WriteSequence = "ToIGES";
0167 WriteMode_PrecisionMode WritePrecisionMode = WriteMode_PrecisionMode_Average;
0168 double WritePrecisionVal = 0.0001;
0169 WriteMode_PlaneMode WritePlaneMode = WriteMode_PlaneMode_Plane;
0170 bool WriteOffsetMode = false;
0171 bool WriteColor = true;
0172 bool WriteName = true;
0173 bool WriteLayer = true;
0174 } InternalParameters;
0175
0176 };
0177
0178 #endif