File indexing completed on 2025-01-18 10:05:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _STEPConstruct_ContextTool_HeaderFile
0018 #define _STEPConstruct_ContextTool_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TColStd_SequenceOfInteger.hxx>
0025 #include <STEPConstruct_AP203Context.hxx>
0026 #include <StepData_Factors.hxx>
0027 #include <StepData_StepModel.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <TColStd_HSequenceOfTransient.hxx>
0030 class StepBasic_ApplicationProtocolDefinition;
0031 class StepGeom_Axis2Placement3d;
0032 class TCollection_HAsciiString;
0033 class STEPConstruct_Part;
0034 class STEPConstruct_Assembly;
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044 class STEPConstruct_ContextTool
0045 {
0046 public:
0047
0048 DEFINE_STANDARD_ALLOC
0049
0050
0051 Standard_EXPORT STEPConstruct_ContextTool();
0052
0053 Standard_EXPORT STEPConstruct_ContextTool(const Handle(StepData_StepModel)& aStepModel);
0054
0055
0056
0057 Standard_EXPORT void SetModel (const Handle(StepData_StepModel)& aStepModel);
0058
0059 Standard_EXPORT void SetGlobalFactor(const StepData_Factors& theGlobalFactor);
0060
0061 Standard_EXPORT Handle(StepBasic_ApplicationProtocolDefinition) GetAPD();
0062
0063 Standard_EXPORT void AddAPD (const Standard_Boolean enforce = Standard_False);
0064
0065
0066 Standard_EXPORT Standard_Boolean IsAP203() const;
0067
0068
0069 Standard_EXPORT Standard_Boolean IsAP214() const;
0070
0071
0072 Standard_EXPORT Standard_Boolean IsAP242() const;
0073
0074 Standard_EXPORT Handle(TCollection_HAsciiString) GetACstatus();
0075
0076 Standard_EXPORT Handle(TCollection_HAsciiString) GetACschemaName();
0077
0078 Standard_EXPORT Standard_Integer GetACyear();
0079
0080 Standard_EXPORT Handle(TCollection_HAsciiString) GetACname();
0081
0082 Standard_EXPORT void SetACstatus (const Handle(TCollection_HAsciiString)& status);
0083
0084 Standard_EXPORT void SetACschemaName (const Handle(TCollection_HAsciiString)& schemaName);
0085
0086 Standard_EXPORT void SetACyear (const Standard_Integer year);
0087
0088 Standard_EXPORT void SetACname (const Handle(TCollection_HAsciiString)& name);
0089
0090
0091 Standard_EXPORT Handle(StepGeom_Axis2Placement3d) GetDefaultAxis();
0092
0093
0094 Standard_EXPORT STEPConstruct_AP203Context& AP203Context();
0095
0096
0097 Standard_EXPORT Standard_Integer Level() const;
0098
0099 Standard_EXPORT void NextLevel();
0100
0101 Standard_EXPORT void PrevLevel();
0102
0103
0104 Standard_EXPORT void SetLevel (const Standard_Integer lev);
0105
0106
0107 Standard_EXPORT Standard_Integer Index() const;
0108
0109 Standard_EXPORT void NextIndex();
0110
0111 Standard_EXPORT void PrevIndex();
0112
0113
0114 Standard_EXPORT void SetIndex (const Standard_Integer ind);
0115
0116
0117
0118 Standard_EXPORT Handle(TCollection_HAsciiString) GetProductName() const;
0119
0120
0121
0122 Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GetRootsForPart (const STEPConstruct_Part& SDRTool);
0123
0124
0125
0126 Standard_EXPORT Handle(TColStd_HSequenceOfTransient) GetRootsForAssemblyLink (const STEPConstruct_Assembly& assembly);
0127
0128
0129
0130
0131 protected:
0132
0133
0134
0135
0136
0137 private:
0138
0139
0140
0141 TColStd_SequenceOfInteger myLevel;
0142 Handle(StepBasic_ApplicationProtocolDefinition) theAPD;
0143 STEPConstruct_AP203Context theAP203;
0144 Handle(StepGeom_Axis2Placement3d) myAxis;
0145 StepData_Factors myGlobalFactor;
0146 StepData_ConfParameters::WriteMode_StepSchema mySchema;
0147 TCollection_AsciiString myProductName;
0148
0149 };
0150
0151
0152
0153
0154
0155
0156
0157 #endif