b311480e |
1 | // Created on: 2002-12-12 |
2 | // Created by: data exchange team |
973c2be1 |
3 | // Copyright (c) 2002-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
7fd59977 |
16 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 |
7fd59977 |
17 | |
18 | #include <RWStepFEA_RWFeaMaterialPropertyRepresentation.ixx> |
ec357c5c |
19 | #include <StepRepr_PropertyDefinition.hxx> |
20 | #include <StepRepr_Representation.hxx> |
21 | #include <StepRepr_DataEnvironment.hxx> |
7fd59977 |
22 | |
23 | //======================================================================= |
24 | //function : RWStepFEA_RWFeaMaterialPropertyRepresentation |
25 | //purpose : |
26 | //======================================================================= |
27 | |
28 | RWStepFEA_RWFeaMaterialPropertyRepresentation::RWStepFEA_RWFeaMaterialPropertyRepresentation () |
29 | { |
30 | } |
31 | |
32 | //======================================================================= |
33 | //function : ReadStep |
34 | //purpose : |
35 | //======================================================================= |
36 | |
37 | void RWStepFEA_RWFeaMaterialPropertyRepresentation::ReadStep (const Handle(StepData_StepReaderData)& data, |
38 | const Standard_Integer num, |
39 | Handle(Interface_Check)& ach, |
40 | const Handle(StepFEA_FeaMaterialPropertyRepresentation) &ent) const |
41 | { |
42 | // Check number of parameters |
43 | if ( ! data->CheckNbParams(num,3,ach,"fea_material_property_representation") ) return; |
44 | |
45 | // Inherited fields of PropertyDefinitionRepresentation |
46 | |
47 | Handle(StepRepr_PropertyDefinition) aPropertyDefinitionRepresentation_Definition; |
48 | data->ReadEntity (num, 1, "property_definition_representation.definition", ach, STANDARD_TYPE(StepRepr_PropertyDefinition), aPropertyDefinitionRepresentation_Definition); |
49 | StepRepr_RepresentedDefinition aDefinition; |
50 | aDefinition.SetValue(aPropertyDefinitionRepresentation_Definition); |
51 | |
52 | Handle(StepRepr_Representation) aPropertyDefinitionRepresentation_UsedRepresentation; |
53 | data->ReadEntity (num, 2, "property_definition_representation.used_representation", ach, STANDARD_TYPE(StepRepr_Representation), aPropertyDefinitionRepresentation_UsedRepresentation); |
54 | |
55 | // Inherited fields of MaterialPropertyRepresentation |
56 | |
57 | Handle(StepRepr_DataEnvironment) aMaterialPropertyRepresentation_DependentEnvironment; |
58 | data->ReadEntity (num, 3, "material_property_representation.dependent_environment", ach, STANDARD_TYPE(StepRepr_DataEnvironment), aMaterialPropertyRepresentation_DependentEnvironment); |
59 | |
60 | // Initialize entity |
61 | ent->Init(aDefinition, |
62 | aPropertyDefinitionRepresentation_UsedRepresentation, |
63 | aMaterialPropertyRepresentation_DependentEnvironment); |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : WriteStep |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | void RWStepFEA_RWFeaMaterialPropertyRepresentation::WriteStep (StepData_StepWriter& SW, |
72 | const Handle(StepFEA_FeaMaterialPropertyRepresentation) &ent) const |
73 | { |
74 | |
75 | // Inherited fields of PropertyDefinitionRepresentation |
76 | |
77 | SW.Send (ent->StepRepr_PropertyDefinitionRepresentation::Definition().PropertyDefinition()); |
78 | |
79 | SW.Send (ent->StepRepr_PropertyDefinitionRepresentation::UsedRepresentation()); |
80 | |
81 | // Inherited fields of MaterialPropertyRepresentation |
82 | |
83 | SW.Send (ent->StepRepr_MaterialPropertyRepresentation::DependentEnvironment()); |
84 | } |
85 | |
86 | //======================================================================= |
87 | //function : Share |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | void RWStepFEA_RWFeaMaterialPropertyRepresentation::Share (const Handle(StepFEA_FeaMaterialPropertyRepresentation) &ent, |
92 | Interface_EntityIterator& iter) const |
93 | { |
94 | |
95 | // Inherited fields of PropertyDefinitionRepresentation |
96 | |
97 | iter.AddItem (ent->StepRepr_PropertyDefinitionRepresentation::Definition().PropertyDefinition()); |
98 | |
99 | iter.AddItem (ent->StepRepr_PropertyDefinitionRepresentation::UsedRepresentation()); |
100 | |
101 | // Inherited fields of MaterialPropertyRepresentation |
102 | |
103 | iter.AddItem (ent->StepRepr_MaterialPropertyRepresentation::DependentEnvironment()); |
104 | } |