7fd59977 |
1 | // File: StepElement_ElementMaterial.cxx |
2 | // Created: Thu Dec 12 17:29:01 2002 |
3 | // Author: data exchange team |
4 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 |
5 | // Copyright: Open CASCADE 2002 |
6 | |
7 | #include <StepElement_ElementMaterial.ixx> |
8 | |
9 | //======================================================================= |
10 | //function : StepElement_ElementMaterial |
11 | //purpose : |
12 | //======================================================================= |
13 | |
14 | StepElement_ElementMaterial::StepElement_ElementMaterial () |
15 | { |
16 | } |
17 | |
18 | //======================================================================= |
19 | //function : Init |
20 | //purpose : |
21 | //======================================================================= |
22 | |
23 | void StepElement_ElementMaterial::Init (const Handle(TCollection_HAsciiString) &aMaterialId, |
24 | const Handle(TCollection_HAsciiString) &aDescription, |
25 | const Handle(StepRepr_HArray1OfMaterialPropertyRepresentation) &aProperties) |
26 | { |
27 | |
28 | theMaterialId = aMaterialId; |
29 | |
30 | theDescription = aDescription; |
31 | |
32 | theProperties = aProperties; |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : MaterialId |
37 | //purpose : |
38 | //======================================================================= |
39 | |
40 | Handle(TCollection_HAsciiString) StepElement_ElementMaterial::MaterialId () const |
41 | { |
42 | return theMaterialId; |
43 | } |
44 | |
45 | //======================================================================= |
46 | //function : SetMaterialId |
47 | //purpose : |
48 | //======================================================================= |
49 | |
50 | void StepElement_ElementMaterial::SetMaterialId (const Handle(TCollection_HAsciiString) &aMaterialId) |
51 | { |
52 | theMaterialId = aMaterialId; |
53 | } |
54 | |
55 | //======================================================================= |
56 | //function : Description |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | Handle(TCollection_HAsciiString) StepElement_ElementMaterial::Description () const |
61 | { |
62 | return theDescription; |
63 | } |
64 | |
65 | //======================================================================= |
66 | //function : SetDescription |
67 | //purpose : |
68 | //======================================================================= |
69 | |
70 | void StepElement_ElementMaterial::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
71 | { |
72 | theDescription = aDescription; |
73 | } |
74 | |
75 | //======================================================================= |
76 | //function : Properties |
77 | //purpose : |
78 | //======================================================================= |
79 | |
80 | Handle(StepRepr_HArray1OfMaterialPropertyRepresentation) StepElement_ElementMaterial::Properties () const |
81 | { |
82 | return theProperties; |
83 | } |
84 | |
85 | //======================================================================= |
86 | //function : SetProperties |
87 | //purpose : |
88 | //======================================================================= |
89 | |
90 | void StepElement_ElementMaterial::SetProperties (const Handle(StepRepr_HArray1OfMaterialPropertyRepresentation) &aProperties) |
91 | { |
92 | theProperties = aProperties; |
93 | } |