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