File indexing completed on 2025-01-18 10:05:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _StepData_StepModel_HeaderFile
0018 #define _StepData_StepModel_HeaderFile
0019
0020 #include <Interface_EntityList.hxx>
0021 #include <TColStd_HArray1OfInteger.hxx>
0022 #include <Interface_InterfaceModel.hxx>
0023 #include <Resource_FormatType.hxx>
0024 #include <StepData_Factors.hxx>
0025 #include <StepData_ConfParameters.hxx>
0026
0027 class Standard_Transient;
0028 class Interface_EntityIterator;
0029 class Interface_Check;
0030 class TCollection_HAsciiString;
0031
0032 class StepData_StepModel;
0033 DEFINE_STANDARD_HANDLE(StepData_StepModel, Interface_InterfaceModel)
0034
0035
0036
0037
0038 class StepData_StepModel : public Interface_InterfaceModel
0039 {
0040
0041 public:
0042
0043
0044
0045 Standard_EXPORT StepData_StepModel();
0046
0047
0048
0049 Standard_EXPORT Handle(Standard_Transient) Entity (const Standard_Integer num) const;
0050
0051
0052 Standard_EXPORT void GetFromAnother (const Handle(Interface_InterfaceModel)& other) Standard_OVERRIDE;
0053
0054
0055 Standard_EXPORT Handle(Interface_InterfaceModel) NewEmptyModel() const Standard_OVERRIDE;
0056
0057
0058 Standard_EXPORT Interface_EntityIterator Header() const;
0059
0060
0061 Standard_EXPORT Standard_Boolean HasHeaderEntity (const Handle(Standard_Type)& atype) const;
0062
0063
0064 Standard_EXPORT Handle(Standard_Transient) HeaderEntity (const Handle(Standard_Type)& atype) const;
0065
0066
0067 Standard_EXPORT void ClearHeader() Standard_OVERRIDE;
0068
0069
0070 Standard_EXPORT void AddHeaderEntity (const Handle(Standard_Transient)& ent);
0071
0072
0073 Standard_EXPORT virtual void VerifyCheck (Handle(Interface_Check)& ach) const Standard_OVERRIDE;
0074
0075
0076
0077
0078
0079
0080 Standard_EXPORT void DumpHeader (Standard_OStream& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
0081
0082
0083 Standard_EXPORT void ClearLabels() Standard_OVERRIDE;
0084
0085
0086
0087 Standard_EXPORT void SetIdentLabel (const Handle(Standard_Transient)& ent, const Standard_Integer ident);
0088
0089
0090 Standard_EXPORT Standard_Integer IdentLabel (const Handle(Standard_Transient)& ent) const;
0091
0092
0093
0094
0095 Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, Standard_OStream& S) const Standard_OVERRIDE;
0096
0097
0098
0099 Standard_EXPORT Handle(TCollection_HAsciiString) StringLabel (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
0100
0101
0102
0103 Resource_FormatType SourceCodePage() const { return InternalParameters.ReadCodePage; }
0104
0105
0106 void SetSourceCodePage (Resource_FormatType theCode) { InternalParameters.ReadCodePage = theCode; }
0107
0108
0109 Standard_EXPORT void SetLocalLengthUnit(const Standard_Real theUnit);
0110
0111
0112 Standard_EXPORT Standard_Real LocalLengthUnit() const;
0113
0114
0115 Standard_EXPORT void SetWriteLengthUnit(const Standard_Real theUnit);
0116
0117
0118 Standard_EXPORT Standard_Real WriteLengthUnit() const;
0119
0120
0121
0122
0123 Standard_Boolean IsInitializedUnit() const { return myReadUnitIsInitialized; }
0124
0125 public:
0126
0127 StepData_ConfParameters InternalParameters;
0128
0129 DEFINE_STANDARD_RTTIEXT(StepData_StepModel,Interface_InterfaceModel)
0130
0131 protected:
0132
0133
0134
0135
0136 private:
0137
0138
0139 Interface_EntityList theheader;
0140 Handle(TColStd_HArray1OfInteger) theidnums;
0141 Standard_Boolean myReadUnitIsInitialized;
0142 Standard_Real myWriteUnit;
0143 Standard_Real myLocalLengthUnit;
0144 };
0145
0146
0147
0148
0149
0150
0151
0152 #endif