1 // Created on: 2002-12-12 2 // Created by: data exchange team 3 // Copyright (c) 2002-2014 OPEN CASCADE SAS 4 // 5 // This file is part of Open CASCADE Technology software library. 6 // 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 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. 12 // 13 // Alternatively, this file may be used under the terms of Open CASCADE 14 // commercial license or contractual agreement. 15 16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 17 18 #include <Standard_Transient.hxx> 19 #include <StepData_SelectMember.hxx> 20 #include <StepFEA_SymmetricTensor43d.hxx> 21 #include <StepFEA_SymmetricTensor43dMember.hxx> 22 #include <TCollection_HAsciiString.hxx> 23 #include <TColStd_HArray1OfReal.hxx> 24 25 //======================================================================= 26 //function : StepFEA_SymmetricTensor43d 27 //purpose : 28 //======================================================================= StepFEA_SymmetricTensor43d()29StepFEA_SymmetricTensor43d::StepFEA_SymmetricTensor43d () 30 { 31 } 32 33 //======================================================================= 34 //function : CaseNum 35 //purpose : 36 //======================================================================= 37 CaseNum(const Handle (Standard_Transient)&) const38Standard_Integer StepFEA_SymmetricTensor43d::CaseNum (const Handle(Standard_Transient)& /*ent*/) const 39 { 40 return 0; 41 } 42 43 //======================================================================= 44 //function : CaseMem 45 //purpose : 46 //======================================================================= 47 CaseMem(const Handle (StepData_SelectMember)& ent) const48Standard_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 Handle(StepData_SelectMember)65Handle(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 Handle(TColStd_HArray1OfReal)77Handle(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 Handle(TColStd_HArray1OfReal)93Handle(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 Handle(TColStd_HArray1OfReal)109Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaIsoOrthotropicSymmetricTensor43d () const 110 { 111 return Handle(TColStd_HArray1OfReal)::DownCast(Value()); 112 } 113 114 //======================================================================= 115 //function : FeaTransverseIsotropicSymmetricTensor43d 116 //purpose : 117 //======================================================================= 118 Handle(TColStd_HArray1OfReal)119Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaTransverseIsotropicSymmetricTensor43d () const 120 { 121 return Handle(TColStd_HArray1OfReal)::DownCast(Value()); 122 } 123 124 //======================================================================= 125 //function : FeaColumnNormalisedOrthotropicSymmetricTensor43d 126 //purpose : 127 //======================================================================= 128 Handle(TColStd_HArray1OfReal)129Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaColumnNormalisedOrthotropicSymmetricTensor43d () const 130 { 131 return Handle(TColStd_HArray1OfReal)::DownCast(Value()); 132 } 133 134 //======================================================================= 135 //function : FeaColumnNormalisedMonoclinicSymmetricTensor43d 136 //purpose : 137 //======================================================================= 138 Handle(TColStd_HArray1OfReal)139Handle(TColStd_HArray1OfReal) StepFEA_SymmetricTensor43d::FeaColumnNormalisedMonoclinicSymmetricTensor43d () const 140 { 141 return Handle(TColStd_HArray1OfReal)::DownCast(Value()); 142 } 143