b311480e |
1 | // Created on: 2002-12-10 |
2 | // Created by: data exchange team |
3 | // Copyright (c) 2002-2012 OPEN CASCADE SAS |
4 | // |
5 | // The content of this file is subject to the Open CASCADE Technology Public |
6 | // License Version 6.5 (the "License"). You may not use the content of this file |
7 | // except in compliance with the License. Please obtain a copy of the License |
8 | // at http://www.opencascade.org and read it completely before using this file. |
9 | // |
10 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | // |
13 | // The Original Code and all software distributed under the License is |
14 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | // Initial Developer hereby disclaims all such warranties, including without |
16 | // limitation, any warranties of merchantability, fitness for a particular |
17 | // purpose or non-infringement. Please see the License for the specific terms |
18 | // and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V2.0 |
7fd59977 |
21 | |
22 | #include <StepFEA_SymmetricTensor23d.ixx> |
23 | #include <StepFEA_SymmetricTensor23dMember.hxx> |
24 | #include <TCollection_HAsciiString.hxx> |
25 | |
26 | //======================================================================= |
27 | //function : StepFEA_SymmetricTensor23d |
28 | //purpose : |
29 | //======================================================================= |
30 | |
31 | StepFEA_SymmetricTensor23d::StepFEA_SymmetricTensor23d () |
32 | { |
33 | } |
34 | |
35 | //======================================================================= |
36 | //function : CaseNum |
37 | //purpose : |
38 | //======================================================================= |
39 | |
35e08fe8 |
40 | Standard_Integer StepFEA_SymmetricTensor23d::CaseNum (const Handle(Standard_Transient)& /*ent*/) const |
7fd59977 |
41 | { |
42 | return 0; |
43 | } |
44 | |
45 | //======================================================================= |
46 | //function : CaseMem |
47 | //purpose : |
48 | //======================================================================= |
49 | |
50 | Standard_Integer StepFEA_SymmetricTensor23d::CaseMem (const Handle(StepData_SelectMember)& ent) const |
51 | { |
52 | if(ent.IsNull()) return 0; |
53 | if(ent->Matches("ISOTROPIC_SYMMETRIC_TENSOR2_3D")) return 1; |
54 | else if(ent->Matches("ORTHOTROPIC_SYMMETRIC_TENSOR2_3D")) return 2; |
55 | else if(ent->Matches("ANISOTROPIC_SYMMETRIC_TENSOR2_3D")) return 3; |
56 | else return 0; |
57 | } |
58 | |
59 | //======================================================================= |
60 | //function : NewMember |
61 | //purpose : |
62 | //======================================================================= |
63 | |
64 | Handle(StepData_SelectMember) StepFEA_SymmetricTensor23d::NewMember() const |
65 | { |
66 | return new StepFEA_SymmetricTensor23dMember; |
67 | } |
68 | |
69 | //======================================================================= |
70 | //function : SetIsotropicSymmetricTensor23d |
71 | //purpose : |
72 | //======================================================================= |
73 | |
74 | void StepFEA_SymmetricTensor23d::SetIsotropicSymmetricTensor23d (const Standard_Real val) |
75 | { |
76 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
77 | if(SelMem.IsNull()) return; |
78 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ISOTROPIC_SYMMETRIC_TENSOR2_3D"); |
79 | SelMem->SetName(name->ToCString()); |
80 | SelMem->SetReal(val); |
81 | } |
82 | |
83 | //======================================================================= |
84 | //function : IsotropicSymmetricTensor23d |
85 | //purpose : |
86 | //======================================================================= |
87 | |
88 | Standard_Real StepFEA_SymmetricTensor23d::IsotropicSymmetricTensor23d () const |
89 | { |
90 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
91 | if(SelMem.IsNull()) return 0; |
92 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString; |
93 | name->AssignCat(SelMem->Name()); |
94 | Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ISOTROPIC_SYMMETRIC_TENSOR2_3D"); |
95 | if(name->IsDifferent(nameitem)) return 0; |
96 | Standard_Real val = SelMem->Real(); |
97 | return val; |
98 | } |
99 | |
100 | //======================================================================= |
101 | //function : SetOrthotropicSymmetricTensor23d |
102 | //purpose : |
103 | //======================================================================= |
104 | |
35e08fe8 |
105 | void StepFEA_SymmetricTensor23d::SetOrthotropicSymmetricTensor23d (const Handle(TColStd_HArray1OfReal)& /*val*/) |
7fd59977 |
106 | { |
107 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
108 | if(SelMem.IsNull()) return; |
109 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ORTHOTROPIC_SYMMETRIC_TENSOR2_3D"); |
110 | SelMem->SetName(name->ToCString()); |
111 | // SelMem->SetHArray1OfReal(val); |
112 | } |
113 | |
114 | //======================================================================= |
115 | //function : OrthotropicSymmetricTensor23d |
116 | //purpose : |
117 | //======================================================================= |
118 | |
119 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor23d::OrthotropicSymmetricTensor23d () const |
120 | { |
121 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
122 | if(SelMem.IsNull()) return 0; |
123 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString; |
124 | name->AssignCat(SelMem->Name()); |
125 | Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ORTHOTROPIC_SYMMETRIC_TENSOR2_3D"); |
126 | if(name->IsDifferent(nameitem)) return 0; |
127 | Handle(TColStd_HArray1OfReal) val/* = SelMem->HArray1OfReal()*/; |
128 | return val; |
129 | } |
130 | |
131 | //======================================================================= |
132 | //function : SetAnisotropicSymmetricTensor23d |
133 | //purpose : |
134 | //======================================================================= |
135 | |
35e08fe8 |
136 | void StepFEA_SymmetricTensor23d::SetAnisotropicSymmetricTensor23d (const Handle(TColStd_HArray1OfReal)& /*val*/) |
7fd59977 |
137 | { |
138 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
139 | if(SelMem.IsNull()) return; |
140 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString("ANISOTROPIC_SYMMETRIC_TENSOR2_3D"); |
141 | SelMem->SetName(name->ToCString()); |
142 | // SelMem->SetHArray1OfReal(val); |
143 | } |
144 | |
145 | //======================================================================= |
146 | //function : AnisotropicSymmetricTensor23d |
147 | //purpose : |
148 | //======================================================================= |
149 | |
150 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor23d::AnisotropicSymmetricTensor23d () const |
151 | { |
152 | Handle(StepFEA_SymmetricTensor23dMember) SelMem = Handle(StepFEA_SymmetricTensor23dMember)::DownCast(Value()); |
153 | if(SelMem.IsNull()) return 0; |
154 | Handle(TCollection_HAsciiString) name = new TCollection_HAsciiString; |
155 | name->AssignCat(SelMem->Name()); |
156 | Handle(TCollection_HAsciiString) nameitem = new TCollection_HAsciiString("ANISOTROPIC_SYMMETRIC_TENSOR2_3D"); |
157 | if(name->IsDifferent(nameitem)) return 0; |
158 | Handle(TColStd_HArray1OfReal) val /*= SelMem->HArray1OfReal()*/; |
159 | return val; |
160 | } |