b311480e |
1 | // Created on: 2002-12-10 |
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) V2.0 |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <Standard_Transient.hxx> |
19 | #include <StepData_SelectMember.hxx> |
20 | #include <StepFEA_SymmetricTensor23d.hxx> |
7fd59977 |
21 | #include <StepFEA_SymmetricTensor23dMember.hxx> |
22 | #include <TCollection_HAsciiString.hxx> |
23 | |
24 | //======================================================================= |
25 | //function : StepFEA_SymmetricTensor23d |
26 | //purpose : |
27 | //======================================================================= |
7fd59977 |
28 | StepFEA_SymmetricTensor23d::StepFEA_SymmetricTensor23d () |
29 | { |
30 | } |
31 | |
32 | //======================================================================= |
33 | //function : CaseNum |
34 | //purpose : |
35 | //======================================================================= |
36 | |
35e08fe8 |
37 | Standard_Integer StepFEA_SymmetricTensor23d::CaseNum (const Handle(Standard_Transient)& /*ent*/) const |
7fd59977 |
38 | { |
39 | return 0; |
40 | } |
41 | |
42 | //======================================================================= |
43 | //function : CaseMem |
44 | //purpose : |
45 | //======================================================================= |
46 | |
47 | Standard_Integer StepFEA_SymmetricTensor23d::CaseMem (const Handle(StepData_SelectMember)& ent) const |
48 | { |
49 | if(ent.IsNull()) return 0; |
50 | if(ent->Matches("ISOTROPIC_SYMMETRIC_TENSOR2_3D")) return 1; |
51 | else if(ent->Matches("ORTHOTROPIC_SYMMETRIC_TENSOR2_3D")) return 2; |
52 | else if(ent->Matches("ANISOTROPIC_SYMMETRIC_TENSOR2_3D")) return 3; |
53 | else return 0; |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : NewMember |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | Handle(StepData_SelectMember) StepFEA_SymmetricTensor23d::NewMember() const |
62 | { |
63 | return new StepFEA_SymmetricTensor23dMember; |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : SetIsotropicSymmetricTensor23d |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | void StepFEA_SymmetricTensor23d::SetIsotropicSymmetricTensor23d (const Standard_Real val) |
72 | { |
73 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
74 | if(SelMem.IsNull()) return; |
75 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ISOTROPIC_SYMMETRIC_TENSOR2_3D"); |
76 | SelMem->SetName(name->ToCString()); |
77 | SelMem->SetReal(val); |
78 | } |
79 | |
80 | //======================================================================= |
81 | //function : IsotropicSymmetricTensor23d |
82 | //purpose : |
83 | //======================================================================= |
84 | |
85 | Standard_Real StepFEA_SymmetricTensor23d::IsotropicSymmetricTensor23d () const |
86 | { |
87 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
88 | if(SelMem.IsNull()) return 0; |
89 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString; |
90 | name->AssignCat(SelMem->Name()); |
91 | Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ISOTROPIC_SYMMETRIC_TENSOR2_3D"); |
92 | if(name->IsDifferent(nameitem)) return 0; |
93 | Standard_Real val = SelMem->Real(); |
94 | return val; |
95 | } |
96 | |
97 | //======================================================================= |
98 | //function : SetOrthotropicSymmetricTensor23d |
99 | //purpose : |
100 | //======================================================================= |
101 | |
35e08fe8 |
102 | void StepFEA_SymmetricTensor23d::SetOrthotropicSymmetricTensor23d (const Handle(TColStd_HArray1OfReal)& /*val*/) |
7fd59977 |
103 | { |
104 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
105 | if(SelMem.IsNull()) return; |
106 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ORTHOTROPIC_SYMMETRIC_TENSOR2_3D"); |
107 | SelMem->SetName(name->ToCString()); |
108 | // SelMem->SetHArray1OfReal(val); |
109 | } |
110 | |
111 | //======================================================================= |
112 | //function : OrthotropicSymmetricTensor23d |
113 | //purpose : |
114 | //======================================================================= |
115 | |
116 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor23d::OrthotropicSymmetricTensor23d () const |
117 | { |
118 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
119 | if(SelMem.IsNull()) return 0; |
120 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString; |
121 | name->AssignCat(SelMem->Name()); |
122 | Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ORTHOTROPIC_SYMMETRIC_TENSOR2_3D"); |
123 | if(name->IsDifferent(nameitem)) return 0; |
124 | Handle(TColStd_HArray1OfReal) val/* = SelMem->HArray1OfReal()*/; |
125 | return val; |
126 | } |
127 | |
128 | //======================================================================= |
129 | //function : SetAnisotropicSymmetricTensor23d |
130 | //purpose : |
131 | //======================================================================= |
132 | |
35e08fe8 |
133 | void StepFEA_SymmetricTensor23d::SetAnisotropicSymmetricTensor23d (const Handle(TColStd_HArray1OfReal)& /*val*/) |
7fd59977 |
134 | { |
135 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
136 | if(SelMem.IsNull()) return; |
137 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ANISOTROPIC_SYMMETRIC_TENSOR2_3D"); |
138 | SelMem->SetName(name->ToCString()); |
139 | // SelMem->SetHArray1OfReal(val); |
140 | } |
141 | |
142 | //======================================================================= |
143 | //function : AnisotropicSymmetricTensor23d |
144 | //purpose : |
145 | //======================================================================= |
146 | |
147 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor23d::AnisotropicSymmetricTensor23d () const |
148 | { |
149 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
150 | if(SelMem.IsNull()) return 0; |
151 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString; |
152 | name->AssignCat(SelMem->Name()); |
153 | Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ANISOTROPIC_SYMMETRIC_TENSOR2_3D"); |
154 | if(name->IsDifferent(nameitem)) return 0; |
155 | Handle(TColStd_HArray1OfReal) val /*= SelMem->HArray1OfReal()*/; |
156 | return val; |
157 | } |