File indexing completed on 2025-01-18 10:05:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _StepData_ConfParameters_HeaderFile
0015 #define _StepData_ConfParameters_HeaderFile
0016
0017 #include <Resource_FormatType.hxx>
0018 #include <STEPControl_StepModelType.hxx>
0019 #include <TCollection_AsciiString.hxx>
0020 #include <UnitsMethods_LengthUnit.hxx>
0021
0022 class StepData_ConfParameters
0023 {
0024
0025 public:
0026
0027 enum ReadMode_BSplineContinuity
0028 {
0029 ReadMode_BSplineContinuity_C0 = 0,
0030 ReadMode_BSplineContinuity_C1,
0031 ReadMode_BSplineContinuity_C2
0032 };
0033 enum ReadMode_Precision
0034 {
0035 ReadMode_Precision_File = 0,
0036 ReadMode_Precision_User
0037 };
0038 enum ReadMode_MaxPrecision
0039 {
0040 ReadMode_MaxPrecision_Preferred = 0,
0041 ReadMode_MaxPrecision_Forced
0042 };
0043 enum ReadMode_SurfaceCurve
0044 {
0045 ReadMode_SurfaceCurve_Default = 0,
0046 ReadMode_SurfaceCurve_2DUse_Preferred = 2,
0047 ReadMode_SurfaceCurve_2DUse_Forced = -2,
0048 ReadMode_SurfaceCurve_3DUse_Preferred = 3,
0049 ReadMode_SurfaceCurve_3DUse_Forced = -3
0050 };
0051 enum AngleUnitMode
0052 {
0053 AngleUnitMode_File = 0,
0054 AngleUnitMode_Rad,
0055 AngleUnitMode_Deg
0056 };
0057 enum ReadMode_ProductContext
0058 {
0059 ReadMode_ProductContext_All = 1,
0060 ReadMode_ProductContext_Design,
0061 ReadMode_ProductContext_Analysis
0062 };
0063 enum ReadMode_ShapeRepr
0064 {
0065 ReadMode_ShapeRepr_All = 1,
0066 ReadMode_ShapeRepr_ABSR,
0067 ReadMode_ShapeRepr_MSSR,
0068 ReadMode_ShapeRepr_GBSSR,
0069 ReadMode_ShapeRepr_FBSR,
0070 ReadMode_ShapeRepr_EBWSR,
0071 ReadMode_ShapeRepr_GBWSR
0072 };
0073 enum ReadMode_AssemblyLevel
0074 {
0075 ReadMode_AssemblyLevel_All = 1,
0076 ReadMode_AssemblyLevel_Assembly,
0077 ReadMode_AssemblyLevel_Structure,
0078 ReadMode_AssemblyLevel_Shape
0079 };
0080 enum RWMode_Tessellated
0081 {
0082 RWMode_Tessellated_Off = 0,
0083 RWMode_Tessellated_On,
0084 RWMode_Tessellated_OnNoBRep
0085 };
0086 enum WriteMode_PrecisionMode
0087 {
0088 WriteMode_PrecisionMode_Least = -1,
0089 WriteMode_PrecisionMode_Average = 0,
0090 WriteMode_PrecisionMode_Greatest = 1,
0091 WriteMode_PrecisionMode_Session = 2
0092 };
0093 enum WriteMode_Assembly
0094 {
0095 WriteMode_Assembly_Off = 0,
0096 WriteMode_Assembly_On,
0097 WriteMode_Assembly_Auto
0098 };
0099 enum WriteMode_StepSchema
0100 {
0101 WriteMode_StepSchema_AP214CD = 1,
0102 WriteMode_StepSchema_AP214DIS,
0103 WriteMode_StepSchema_AP203,
0104 WriteMode_StepSchema_AP214IS,
0105 WriteMode_StepSchema_AP242DIS
0106 };
0107 enum WriteMode_VertexMode
0108 {
0109 WriteMode_VertexMode_OneCompound = 0,
0110 WriteMode_VertexMode_SingleVertex
0111 };
0112
0113 Standard_EXPORT StepData_ConfParameters();
0114
0115
0116 Standard_EXPORT void InitFromStatic();
0117
0118
0119 Standard_EXPORT void Reset();
0120
0121 Standard_EXPORT TCollection_AsciiString GetString(const ReadMode_ProductContext theMode)
0122 {
0123 switch (theMode)
0124 {
0125 case ReadMode_ProductContext_All:
0126 return "all";
0127 case ReadMode_ProductContext_Design:
0128 return "design";
0129 case ReadMode_ProductContext_Analysis:
0130 return "analysis";
0131 default:
0132 return "";
0133 }
0134 }
0135
0136 public:
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 AngleUnitMode AngleUnit = AngleUnitMode_File;
0147
0148
0149 TCollection_AsciiString ReadResourceName = "STEP";
0150 TCollection_AsciiString ReadSequence = "FromSTEP";
0151 bool ReadProductMode = true;
0152 ReadMode_ProductContext ReadProductContext = ReadMode_ProductContext_All;
0153 ReadMode_ShapeRepr ReadShapeRepr = ReadMode_ShapeRepr_All;
0154 RWMode_Tessellated ReadTessellated = RWMode_Tessellated_On;
0155 ReadMode_AssemblyLevel ReadAssemblyLevel = ReadMode_AssemblyLevel_All;
0156 bool ReadRelationship = true;
0157 bool ReadShapeAspect = true;
0158 bool ReadConstrRelation = false;
0159 bool ReadSubshapeNames = false;
0160 Resource_FormatType ReadCodePage = Resource_FormatType_UTF8;
0161 bool ReadNonmanifold = false;
0162 bool ReadIdeas = false;
0163 bool ReadAllShapes = false;
0164 bool ReadRootTransformation = true;
0165 bool ReadColor = true;
0166 bool ReadName = true;
0167 bool ReadLayer = true;
0168 bool ReadProps = true;
0169
0170
0171 WriteMode_PrecisionMode WritePrecisionMode = WriteMode_PrecisionMode_Average;
0172 double WritePrecisionVal = 0.0001;
0173 WriteMode_Assembly WriteAssembly = WriteMode_Assembly_Off;
0174 WriteMode_StepSchema WriteSchema = WriteMode_StepSchema_AP214CD;
0175 RWMode_Tessellated WriteTessellated = RWMode_Tessellated_OnNoBRep;
0176 TCollection_AsciiString WriteProductName;
0177 bool WriteSurfaceCurMode = true;
0178 UnitsMethods_LengthUnit WriteUnit = UnitsMethods_LengthUnit_Millimeter;
0179 TCollection_AsciiString WriteResourceName = "STEP";
0180 TCollection_AsciiString WriteSequence = "ToSTEP";
0181 WriteMode_VertexMode WriteVertexMode = WriteMode_VertexMode_OneCompound;
0182 bool WriteSubshapeNames = false;
0183 bool WriteColor = true;
0184 bool WriteNonmanifold = false;
0185 bool WriteName = true;
0186 bool WriteLayer = true;
0187 bool WriteProps = true;
0188 STEPControl_StepModelType WriteModelType = STEPControl_AsIs;
0189 };
0190
0191 #endif