summaryrefslogtreecommitdiff
path: root/inc/StepAP209_Construct.hxx
blob: cd01d6e4954a5a92ba62b1fa58eadcc26a7fe069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _StepAP209_Construct_HeaderFile
#define _StepAP209_Construct_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _STEPConstruct_Tool_HeaderFile
#include <STEPConstruct_Tool.hxx>
#endif
#ifndef _Handle_XSControl_WorkSession_HeaderFile
#include <Handle_XSControl_WorkSession.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_StepBasic_ProductDefinitionFormation_HeaderFile
#include <Handle_StepBasic_ProductDefinitionFormation.hxx>
#endif
#ifndef _Handle_StepFEA_FeaModel_HeaderFile
#include <Handle_StepFEA_FeaModel.hxx>
#endif
#ifndef _Handle_StepBasic_Product_HeaderFile
#include <Handle_StepBasic_Product.hxx>
#endif
#ifndef _Handle_StepFEA_FeaAxis2Placement3d_HeaderFile
#include <Handle_StepFEA_FeaAxis2Placement3d.hxx>
#endif
#ifndef _Handle_StepShape_ShapeRepresentation_HeaderFile
#include <Handle_StepShape_ShapeRepresentation.hxx>
#endif
#ifndef _Handle_StepElement_HSequenceOfElementMaterial_HeaderFile
#include <Handle_StepElement_HSequenceOfElementMaterial.hxx>
#endif
#ifndef _Handle_StepFEA_HSequenceOfElementGeometricRelationship_HeaderFile
#include <Handle_StepFEA_HSequenceOfElementGeometricRelationship.hxx>
#endif
#ifndef _Handle_StepFEA_HSequenceOfElementRepresentation_HeaderFile
#include <Handle_StepFEA_HSequenceOfElementRepresentation.hxx>
#endif
#ifndef _Handle_Standard_Type_HeaderFile
#include <Handle_Standard_Type.hxx>
#endif
#ifndef _Handle_StepElement_HSequenceOfCurveElementSectionDefinition_HeaderFile
#include <Handle_StepElement_HSequenceOfCurveElementSectionDefinition.hxx>
#endif
#ifndef _Handle_StepFEA_Curve3dElementRepresentation_HeaderFile
#include <Handle_StepFEA_Curve3dElementRepresentation.hxx>
#endif
#ifndef _Handle_StepFEA_ElementRepresentation_HeaderFile
#include <Handle_StepFEA_ElementRepresentation.hxx>
#endif
#ifndef _Handle_StepBasic_ProductDefinition_HeaderFile
#include <Handle_StepBasic_ProductDefinition.hxx>
#endif
#ifndef _Handle_StepData_StepModel_HeaderFile
#include <Handle_StepData_StepModel.hxx>
#endif
#ifndef _Handle_StepRepr_ProductDefinitionShape_HeaderFile
#include <Handle_StepRepr_ProductDefinitionShape.hxx>
#endif
class XSControl_WorkSession;
class StepBasic_ProductDefinitionFormation;
class StepFEA_FeaModel;
class StepBasic_Product;
class StepFEA_FeaAxis2Placement3d;
class StepShape_ShapeRepresentation;
class StepElement_HSequenceOfElementMaterial;
class StepFEA_HSequenceOfElementGeometricRelationship;
class StepFEA_HSequenceOfElementRepresentation;
class Standard_Type;
class StepElement_HSequenceOfCurveElementSectionDefinition;
class StepFEA_Curve3dElementRepresentation;
class StepFEA_ElementRepresentation;
class StepBasic_ProductDefinition;
class StepData_StepModel;
class StepRepr_ProductDefinitionShape;


//! Basic tool for working with AP209 model <br>
class StepAP209_Construct  : public STEPConstruct_Tool {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  //! Creates an empty tool <br>
  Standard_EXPORT   StepAP209_Construct();
  //! Creates a tool and initializes it <br>
  Standard_EXPORT   StepAP209_Construct(const Handle(XSControl_WorkSession)& WS);
  //! Initializes tool; returns True if succeeded <br>
  Standard_EXPORT     Standard_Boolean Init(const Handle(XSControl_WorkSession)& WS) ;
  
  Standard_EXPORT     Standard_Boolean IsDesing(const Handle(StepBasic_ProductDefinitionFormation)& PD) const;
  
  Standard_EXPORT     Standard_Boolean IsAnalys(const Handle(StepBasic_ProductDefinitionFormation)& PD) const;
  
  Standard_EXPORT     Handle_StepFEA_FeaModel FeaModel(const Handle(StepBasic_Product)& Prod) const;
  
  Standard_EXPORT     Handle_StepFEA_FeaModel FeaModel(const Handle(StepBasic_ProductDefinitionFormation)& PDF) const;
  
  Standard_EXPORT     Handle_StepFEA_FeaAxis2Placement3d GetFeaAxis2Placement3d(const Handle(StepFEA_FeaModel)& theFeaModel) const;
  
  Standard_EXPORT     Handle_StepShape_ShapeRepresentation IdealShape(const Handle(StepBasic_Product)& Prod) const;
  
  Standard_EXPORT     Handle_StepShape_ShapeRepresentation IdealShape(const Handle(StepBasic_ProductDefinitionFormation)& PDF) const;
  
  Standard_EXPORT     Handle_StepShape_ShapeRepresentation NominShape(const Handle(StepBasic_Product)& Prod) const;
  
  Standard_EXPORT     Handle_StepShape_ShapeRepresentation NominShape(const Handle(StepBasic_ProductDefinitionFormation)& PDF) const;
  
  Standard_EXPORT     Handle_StepElement_HSequenceOfElementMaterial GetElementMaterial() const;
  
  Standard_EXPORT     Handle_StepFEA_HSequenceOfElementGeometricRelationship GetElemGeomRelat() const;
  
  Standard_EXPORT     Handle_StepFEA_HSequenceOfElementRepresentation GetElements1D(const Handle(StepFEA_FeaModel)& theFeaModel) const;
  
  Standard_EXPORT     Handle_StepFEA_HSequenceOfElementRepresentation GetElements2D(const Handle(StepFEA_FeaModel)& theFEAModel) const;
  
  Standard_EXPORT     Handle_StepFEA_HSequenceOfElementRepresentation GetElements3D(const Handle(StepFEA_FeaModel)& theFEAModel) const;
  //! Getting list of curve_element_section_definitions <br>
//!          for given element_representation <br>
  Standard_EXPORT     Handle_StepElement_HSequenceOfCurveElementSectionDefinition GetCurElemSection(const Handle(StepFEA_Curve3dElementRepresentation)& ElemRepr) const;
  
  Standard_EXPORT     Handle_StepShape_ShapeRepresentation GetShReprForElem(const Handle(StepFEA_ElementRepresentation)& ElemRepr) const;
  //! Create empty structure for idealized_analysis_shape <br>
  Standard_EXPORT     Standard_Boolean CreateAnalysStructure(const Handle(StepBasic_Product)& Prod) const;
  //! Create fea structure <br>
  Standard_EXPORT     Standard_Boolean CreateFeaStructure(const Handle(StepBasic_Product)& Prod) const;
  //! Put into model entities Applied... for AP209 instead of <br>
//!           entities CcDesing... from AP203. <br>
  Standard_EXPORT     Standard_Boolean ReplaceCcDesingToApplied() const;
  //! Create approval.. , date.. , time.. , person.. and <br>
//!           organization.. entities for analysis structure <br>
  Standard_EXPORT     Standard_Boolean CreateAddingEntities(const Handle(StepBasic_ProductDefinition)& AnaPD) const;
  //! Create AP203 structure from existing AP209 structure <br>
  Standard_EXPORT     Handle_StepData_StepModel CreateAP203Structure() const;
  //! Create approval.. , date.. , time.. , person.. and <br>
//!           organization.. entities for 203 structure <br>
  Standard_EXPORT     Standard_Boolean CreateAdding203Entities(const Handle(StepBasic_ProductDefinition)& PD,Handle(StepData_StepModel)& aModel) const;
  
  Standard_EXPORT     Handle_StepFEA_FeaModel FeaModel(const Handle(StepRepr_ProductDefinitionShape)& PDS) const;
  
  Standard_EXPORT     Handle_StepFEA_FeaModel FeaModel(const Handle(StepBasic_ProductDefinition)& PD) const;
  
  Standard_EXPORT     Handle_StepShape_ShapeRepresentation IdealShape(const Handle(StepBasic_ProductDefinition)& PD) const;
  
  Standard_EXPORT     Handle_StepShape_ShapeRepresentation IdealShape(const Handle(StepRepr_ProductDefinitionShape)& PDS) const;





protected:

  
  Standard_EXPORT     Handle_StepFEA_HSequenceOfElementRepresentation GetFeaElements(const Handle(StepFEA_FeaModel)& theFeaModel,const Handle(Standard_Type)& theType) const;




private:





};





// other Inline functions and methods (like "C++: function call" methods)


#endif