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 | |
42cf5bc1 |
18 | #include <Standard_Type.hxx> |
19 | #include <StepElement_ElementMaterial.hxx> |
20 | #include <StepElement_Surface3dElementDescriptor.hxx> |
21 | #include <StepElement_SurfaceElementProperty.hxx> |
22 | #include <StepFEA_FeaModel3d.hxx> |
23 | #include <StepFEA_Surface3dElementRepresentation.hxx> |
24 | #include <StepRepr_RepresentationContext.hxx> |
25 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
26 | |
92efcf78 |
27 | IMPLEMENT_STANDARD_RTTIEXT(StepFEA_Surface3dElementRepresentation,StepFEA_ElementRepresentation) |
28 | |
7fd59977 |
29 | //======================================================================= |
30 | //function : StepFEA_Surface3dElementRepresentation |
31 | //purpose : |
32 | //======================================================================= |
7fd59977 |
33 | StepFEA_Surface3dElementRepresentation::StepFEA_Surface3dElementRepresentation () |
34 | { |
35 | } |
36 | |
37 | //======================================================================= |
38 | //function : Init |
39 | //purpose : |
40 | //======================================================================= |
41 | |
42 | void StepFEA_Surface3dElementRepresentation::Init (const Handle(TCollection_HAsciiString) &aRepresentation_Name, |
43 | const Handle(StepRepr_HArray1OfRepresentationItem) &aRepresentation_Items, |
44 | const Handle(StepRepr_RepresentationContext) &aRepresentation_ContextOfItems, |
45 | const Handle(StepFEA_HArray1OfNodeRepresentation) &aElementRepresentation_NodeList, |
46 | const Handle(StepFEA_FeaModel3d) &aModelRef, |
47 | const Handle(StepElement_Surface3dElementDescriptor) &aElementDescriptor, |
48 | const Handle(StepElement_SurfaceElementProperty) &aProperty, |
49 | const Handle(StepElement_ElementMaterial) &aMaterial) |
50 | { |
51 | StepFEA_ElementRepresentation::Init(aRepresentation_Name, |
52 | aRepresentation_Items, |
53 | aRepresentation_ContextOfItems, |
54 | aElementRepresentation_NodeList); |
55 | |
56 | theModelRef = aModelRef; |
57 | |
58 | theElementDescriptor = aElementDescriptor; |
59 | |
60 | theProperty = aProperty; |
61 | |
62 | theMaterial = aMaterial; |
63 | } |
64 | |
65 | //======================================================================= |
66 | //function : ModelRef |
67 | //purpose : |
68 | //======================================================================= |
69 | |
70 | Handle(StepFEA_FeaModel3d) StepFEA_Surface3dElementRepresentation::ModelRef () const |
71 | { |
72 | return theModelRef; |
73 | } |
74 | |
75 | //======================================================================= |
76 | //function : SetModelRef |
77 | //purpose : |
78 | //======================================================================= |
79 | |
80 | void StepFEA_Surface3dElementRepresentation::SetModelRef (const Handle(StepFEA_FeaModel3d) &aModelRef) |
81 | { |
82 | theModelRef = aModelRef; |
83 | } |
84 | |
85 | //======================================================================= |
86 | //function : ElementDescriptor |
87 | //purpose : |
88 | //======================================================================= |
89 | |
90 | Handle(StepElement_Surface3dElementDescriptor) StepFEA_Surface3dElementRepresentation::ElementDescriptor () const |
91 | { |
92 | return theElementDescriptor; |
93 | } |
94 | |
95 | //======================================================================= |
96 | //function : SetElementDescriptor |
97 | //purpose : |
98 | //======================================================================= |
99 | |
100 | void StepFEA_Surface3dElementRepresentation::SetElementDescriptor (const Handle(StepElement_Surface3dElementDescriptor) &aElementDescriptor) |
101 | { |
102 | theElementDescriptor = aElementDescriptor; |
103 | } |
104 | |
105 | //======================================================================= |
106 | //function : Property |
107 | //purpose : |
108 | //======================================================================= |
109 | |
110 | Handle(StepElement_SurfaceElementProperty) StepFEA_Surface3dElementRepresentation::Property () const |
111 | { |
112 | return theProperty; |
113 | } |
114 | |
115 | //======================================================================= |
116 | //function : SetProperty |
117 | //purpose : |
118 | //======================================================================= |
119 | |
120 | void StepFEA_Surface3dElementRepresentation::SetProperty (const Handle(StepElement_SurfaceElementProperty) &aProperty) |
121 | { |
122 | theProperty = aProperty; |
123 | } |
124 | |
125 | //======================================================================= |
126 | //function : Material |
127 | //purpose : |
128 | //======================================================================= |
129 | |
130 | Handle(StepElement_ElementMaterial) StepFEA_Surface3dElementRepresentation::Material () const |
131 | { |
132 | return theMaterial; |
133 | } |
134 | |
135 | //======================================================================= |
136 | //function : SetMaterial |
137 | //purpose : |
138 | //======================================================================= |
139 | |
140 | void StepFEA_Surface3dElementRepresentation::SetMaterial (const Handle(StepElement_ElementMaterial) &aMaterial) |
141 | { |
142 | theMaterial = aMaterial; |
143 | } |