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_Transient.hxx> |
19 | #include <StepData_SelectMember.hxx> |
20 | #include <StepFEA_SymmetricTensor43d.hxx> |
7fd59977 |
21 | #include <StepFEA_SymmetricTensor43dMember.hxx> |
22 | #include <TCollection_HAsciiString.hxx> |
ec357c5c |
23 | #include <TColStd_HArray1OfReal.hxx> |
7fd59977 |
24 | |
25 | //======================================================================= |
26 | //function : StepFEA_SymmetricTensor43d |
27 | //purpose : |
28 | //======================================================================= |
7fd59977 |
29 | StepFEA_SymmetricTensor43d::StepFEA_SymmetricTensor43d () |
30 | { |
31 | } |
32 | |
33 | //======================================================================= |
34 | //function : CaseNum |
35 | //purpose : |
36 | //======================================================================= |
37 | |
35e08fe8 |
38 | Standard_Integer StepFEA_SymmetricTensor43d::CaseNum (const Handle(Standard_Transient)& /*ent*/) const |
7fd59977 |
39 | { |
40 | return 0; |
41 | } |
42 | |
43 | //======================================================================= |
44 | //function : CaseMem |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | Standard_Integer StepFEA_SymmetricTensor43d::CaseMem (const Handle(StepData_SelectMember)& ent) const |
49 | { |
50 | if(ent.IsNull()) return 0; |
51 | if(ent->Matches("ANISOTROPIC_SYMMETRIC_TENSOR4_3D")) return 1; |
52 | else if(ent->Matches("FEA_ISOTROPIC_SYMMETRIC_TENSOR4_3D")) return 2; |
53 | else if(ent->Matches("FEA_ISO_ORTHOTROPIC_SYMMETRIC_TENSOR4_3D")) return 3; |
54 | else if(ent->Matches("FEA_TRANSVERSE_ISOTROPIC_SYMMETRIC_TENSOR4_3D")) return 4; |
55 | else if(ent->Matches("FEA_COLUMN_NORMALISED_ORTHOTROPIC_SYMMETRIC_TENSOR4_3D")) return 5; |
56 | else if(ent->Matches("FEA_COLUMN_NORMALISED_MONOCLINIC_SYMMETRIC_TENSOR4_3D")) return 6; |
57 | else return 0; |
58 | } |
59 | |
60 | //======================================================================= |
61 | //function : NewMember |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | Handle(StepData_SelectMember) StepFEA_SymmetricTensor43d::NewMember() const |
66 | { |
67 | //Handle(StepData_SelectMember) dummy; |
68 | //return dummy; |
69 | return new StepFEA_SymmetricTensor43dMember; |
70 | } |
71 | |
72 | //======================================================================= |
73 | //function : AnisotropicSymmetricTensor43d |
74 | //purpose : |
75 | //======================================================================= |
76 | |
77 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::AnisotropicSymmetricTensor43d () const |
78 | { |
79 | Handle(TColStd_HArray1OfReal) anArr; // = new TColStd_HArray1OfReal(1,1); |
80 | Handle(StepFEA_SymmetricTensor43dMember) SelMem = |
81 | Handle(StepFEA_SymmetricTensor43dMember)::DownCast(Value()); |
82 | if(SelMem.IsNull()) return anArr; |
83 | //Handle(TColStd_HSequenceOfReal) aSeq = SelMem->SeqReal(); |
84 | return anArr; |
85 | //return Handle(TColStd_HArray1OfReal)::DownCast(Value()); |
86 | } |
87 | |
88 | //======================================================================= |
89 | //function : FeaIsotropicSymmetricTensor43d |
90 | //purpose : |
91 | //======================================================================= |
92 | |
93 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaIsotropicSymmetricTensor43d () const |
94 | { |
95 | Handle(TColStd_HArray1OfReal) anArr; // = new TColStd_HArray1OfReal(1,1); |
96 | Handle(StepFEA_SymmetricTensor43dMember) SelMem = |
97 | Handle(StepFEA_SymmetricTensor43dMember)::DownCast(Value()); |
98 | if(SelMem.IsNull()) return anArr; |
99 | //Handle(TColStd_HSequenceOfReal) aSeq = SelMem->SeqReal(); |
100 | return anArr; |
101 | //return Handle(TColStd_HArray1OfReal)::DownCast(Value()); |
102 | } |
103 | |
104 | //======================================================================= |
105 | //function : FeaIsoOrthotropicSymmetricTensor43d |
106 | //purpose : |
107 | //======================================================================= |
108 | |
109 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaIsoOrthotropicSymmetricTensor43d () const |
110 | { |
111 | return Handle(TColStd_HArray1OfReal)::DownCast(Value()); |
112 | } |
113 | |
114 | //======================================================================= |
115 | //function : FeaTransverseIsotropicSymmetricTensor43d |
116 | //purpose : |
117 | //======================================================================= |
118 | |
119 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaTransverseIsotropicSymmetricTensor43d () const |
120 | { |
121 | return Handle(TColStd_HArray1OfReal)::DownCast(Value()); |
122 | } |
123 | |
124 | //======================================================================= |
125 | //function : FeaColumnNormalisedOrthotropicSymmetricTensor43d |
126 | //purpose : |
127 | //======================================================================= |
128 | |
129 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaColumnNormalisedOrthotropicSymmetricTensor43d () const |
130 | { |
131 | return Handle(TColStd_HArray1OfReal)::DownCast(Value()); |
132 | } |
133 | |
134 | //======================================================================= |
135 | //function : FeaColumnNormalisedMonoclinicSymmetricTensor43d |
136 | //purpose : |
137 | //======================================================================= |
138 | |
139 | Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaColumnNormalisedMonoclinicSymmetricTensor43d () const |
140 | { |
141 | return Handle(TColStd_HArray1OfReal)::DownCast(Value()); |
142 | } |