1 #include <IGESAppli_SpecificModule.ixx>
2 #include <Interface_Macros.hxx>
4 #include <IGESAppli_DrilledHole.hxx>
5 #include <IGESAppli_ElementResults.hxx>
6 #include <IGESAppli_FiniteElement.hxx>
7 #include <IGESAppli_Flow.hxx>
8 #include <IGESAppli_FlowLineSpec.hxx>
9 #include <IGESAppli_LevelFunction.hxx>
10 #include <IGESAppli_LevelToPWBLayerMap.hxx>
11 #include <IGESAppli_LineWidening.hxx>
12 #include <IGESAppli_NodalConstraint.hxx>
13 #include <IGESAppli_NodalDisplAndRot.hxx>
14 #include <IGESAppli_NodalResults.hxx>
15 #include <IGESAppli_Node.hxx>
16 #include <IGESAppli_PWBArtworkStackup.hxx>
17 #include <IGESAppli_PWBDrilledHole.hxx>
18 #include <IGESAppli_PartNumber.hxx>
19 #include <IGESAppli_PinNumber.hxx>
20 #include <IGESAppli_PipingFlow.hxx>
21 #include <IGESAppli_ReferenceDesignator.hxx>
22 #include <IGESAppli_RegionRestriction.hxx>
24 #include <IGESAppli_ToolDrilledHole.hxx>
25 #include <IGESAppli_ToolElementResults.hxx>
26 #include <IGESAppli_ToolFiniteElement.hxx>
27 #include <IGESAppli_ToolFlow.hxx>
28 #include <IGESAppli_ToolFlowLineSpec.hxx>
29 #include <IGESAppli_ToolLevelFunction.hxx>
30 #include <IGESAppli_ToolLevelToPWBLayerMap.hxx>
31 #include <IGESAppli_ToolLineWidening.hxx>
32 #include <IGESAppli_ToolNodalConstraint.hxx>
33 #include <IGESAppli_ToolNodalDisplAndRot.hxx>
34 #include <IGESAppli_ToolNodalResults.hxx>
35 #include <IGESAppli_ToolNode.hxx>
36 #include <IGESAppli_ToolPWBArtworkStackup.hxx>
37 #include <IGESAppli_ToolPWBDrilledHole.hxx>
38 #include <IGESAppli_ToolPartNumber.hxx>
39 #include <IGESAppli_ToolPinNumber.hxx>
40 #include <IGESAppli_ToolPipingFlow.hxx>
41 #include <IGESAppli_ToolReferenceDesignator.hxx>
42 #include <IGESAppli_ToolRegionRestriction.hxx>
46 // Each Module is attached to a Protocol : it must interprete Case Numbers
47 // (arguments <CN> of various methods) in accordance to values returned by
48 // the method TypeNumber from this Protocol
51 IGESAppli_SpecificModule::IGESAppli_SpecificModule() { }
54 void IGESAppli_SpecificModule::OwnDump
55 (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
56 const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
57 const Standard_Integer own) const
61 DeclareAndCast(IGESAppli_DrilledHole,anent,ent);
62 if (anent.IsNull()) return;
63 IGESAppli_ToolDrilledHole tool;
64 tool.OwnDump(anent,dumper,S,own);
68 DeclareAndCast(IGESAppli_ElementResults,anent,ent);
69 if (anent.IsNull()) return;
70 IGESAppli_ToolElementResults tool;
71 tool.OwnDump(anent,dumper,S,own);
75 DeclareAndCast(IGESAppli_FiniteElement,anent,ent);
76 if (anent.IsNull()) return;
77 IGESAppli_ToolFiniteElement tool;
78 tool.OwnDump(anent,dumper,S,own);
82 DeclareAndCast(IGESAppli_Flow,anent,ent);
83 if (anent.IsNull()) return;
84 IGESAppli_ToolFlow tool;
85 tool.OwnDump(anent,dumper,S,own);
89 DeclareAndCast(IGESAppli_FlowLineSpec,anent,ent);
90 if (anent.IsNull()) return;
91 IGESAppli_ToolFlowLineSpec tool;
92 tool.OwnDump(anent,dumper,S,own);
96 DeclareAndCast(IGESAppli_LevelFunction,anent,ent);
97 if (anent.IsNull()) return;
98 IGESAppli_ToolLevelFunction tool;
99 tool.OwnDump(anent,dumper,S,own);
103 DeclareAndCast(IGESAppli_LevelToPWBLayerMap,anent,ent);
104 if (anent.IsNull()) return;
105 IGESAppli_ToolLevelToPWBLayerMap tool;
106 tool.OwnDump(anent,dumper,S,own);
110 DeclareAndCast(IGESAppli_LineWidening,anent,ent);
111 if (anent.IsNull()) return;
112 IGESAppli_ToolLineWidening tool;
113 tool.OwnDump(anent,dumper,S,own);
117 DeclareAndCast(IGESAppli_NodalConstraint,anent,ent) ;
118 if (anent.IsNull()) return;
119 IGESAppli_ToolNodalConstraint tool;
120 tool.OwnDump(anent,dumper,S,own);
124 DeclareAndCast(IGESAppli_NodalDisplAndRot,anent,ent);
125 if (anent.IsNull()) return;
126 IGESAppli_ToolNodalDisplAndRot tool;
127 tool.OwnDump(anent,dumper,S,own);
131 DeclareAndCast(IGESAppli_NodalResults,anent,ent);
132 if (anent.IsNull()) return;
133 IGESAppli_ToolNodalResults tool;
134 tool.OwnDump(anent,dumper,S,own);
138 DeclareAndCast(IGESAppli_Node,anent,ent);
139 if (anent.IsNull()) return;
140 IGESAppli_ToolNode tool;
141 tool.OwnDump(anent,dumper,S,own);
145 DeclareAndCast(IGESAppli_PWBArtworkStackup,anent,ent);
146 if (anent.IsNull()) return;
147 IGESAppli_ToolPWBArtworkStackup tool;
148 tool.OwnDump(anent,dumper,S,own);
152 DeclareAndCast(IGESAppli_PWBDrilledHole,anent,ent);
153 if (anent.IsNull()) return;
154 IGESAppli_ToolPWBDrilledHole tool;
155 tool.OwnDump(anent,dumper,S,own);
159 DeclareAndCast(IGESAppli_PartNumber,anent,ent);
160 if (anent.IsNull()) return;
161 IGESAppli_ToolPartNumber tool;
162 tool.OwnDump(anent,dumper,S,own);
166 DeclareAndCast(IGESAppli_PinNumber,anent,ent);
167 if (anent.IsNull()) return;
168 IGESAppli_ToolPinNumber tool;
169 tool.OwnDump(anent,dumper,S,own);
173 DeclareAndCast(IGESAppli_PipingFlow,anent,ent);
174 if (anent.IsNull()) return;
175 IGESAppli_ToolPipingFlow tool;
176 tool.OwnDump(anent,dumper,S,own);
180 DeclareAndCast(IGESAppli_ReferenceDesignator,anent,ent);
181 if (anent.IsNull()) return;
182 IGESAppli_ToolReferenceDesignator tool;
183 tool.OwnDump(anent,dumper,S,own);
187 DeclareAndCast(IGESAppli_RegionRestriction,anent,ent);
188 if (anent.IsNull()) return;
189 IGESAppli_ToolRegionRestriction tool;
190 tool.OwnDump(anent,dumper,S,own);
198 Standard_Boolean IGESAppli_SpecificModule::OwnCorrect
199 (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const
201 // Applies only on some types
204 DeclareAndCast(IGESAppli_DrilledHole,anent,ent);
205 if (anent.IsNull()) break;
206 IGESAppli_ToolDrilledHole tool;
207 return tool.OwnCorrect(anent);
210 DeclareAndCast(IGESAppli_Flow,anent,ent);
211 if (anent.IsNull()) break;
212 IGESAppli_ToolFlow tool;
213 return tool.OwnCorrect(anent);
216 DeclareAndCast(IGESAppli_LevelFunction,anent,ent);
217 if (anent.IsNull()) break;
218 IGESAppli_ToolLevelFunction tool;
219 return tool.OwnCorrect(anent);
222 DeclareAndCast(IGESAppli_LineWidening,anent,ent);
223 if (anent.IsNull()) break;
224 IGESAppli_ToolLineWidening tool;
225 return tool.OwnCorrect(anent);
228 DeclareAndCast(IGESAppli_PWBDrilledHole,anent,ent);
229 if (anent.IsNull()) break;
230 IGESAppli_ToolPWBDrilledHole tool;
231 return tool.OwnCorrect(anent);
234 DeclareAndCast(IGESAppli_PartNumber,anent,ent);
235 if (anent.IsNull()) break;
236 IGESAppli_ToolPartNumber tool;
237 return tool.OwnCorrect(anent);
240 DeclareAndCast(IGESAppli_PinNumber,anent,ent);
241 if (anent.IsNull()) break;
242 IGESAppli_ToolPinNumber tool;
243 return tool.OwnCorrect(anent);
246 DeclareAndCast(IGESAppli_PipingFlow,anent,ent);
247 if (anent.IsNull()) break;
248 IGESAppli_ToolPipingFlow tool;
249 return tool.OwnCorrect(anent);
252 DeclareAndCast(IGESAppli_ReferenceDesignator,anent,ent);
253 if (anent.IsNull()) break;
254 IGESAppli_ToolReferenceDesignator tool;
255 return tool.OwnCorrect(anent);
258 DeclareAndCast(IGESAppli_RegionRestriction,anent,ent);
259 if (anent.IsNull()) break;
260 IGESAppli_ToolRegionRestriction tool;
261 return tool.OwnCorrect(anent);
265 return Standard_False;