1 # Copyright (C) 2007-2012 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 import MEDCouplingCorbaSwigTest
21 import MEDCouplingCorbaServantTest_idl
23 from MEDCouplingCorba import *
25 class MEDCouplingMeshFieldFactoryComponentPy(MEDCouplingCorbaServantTest_idl._0_SALOME_TEST__POA.MEDCouplingMeshFieldFactory):
26 def __init__(self,orb):
28 self._test=MEDCouplingCorbaSwigTest.MEDCouplingCorbaServBasicsTest()
31 def destroyFactory(self):
32 oid = self._default_POA().servant_to_id(self);
33 MEDCouplingCorbaServantTest_idl._0_SALOME_TEST__POA.MEDCouplingMeshFieldFactory._default_POA().deactivate_object(self,oid);
34 MEDCouplingCorbaServantTest_idl._0_SALOME_TEST__POA.MEDCouplingMeshFieldFactory._remove_ref(self);
36 def shutdownOrb(self):
40 mesh=self._test.build1DMesh()
41 return MEDCouplingUMeshServant._this(mesh)
44 mesh=self._test.build2DMesh()
45 return MEDCouplingUMeshServant._this(mesh)
48 mesh=self._test.build3DMesh()
49 return MEDCouplingUMeshServant._this(mesh)
51 def get3DSurfMesh(self):
52 mesh=self._test.build3DSurfMesh()
53 return MEDCouplingUMeshServant._this(mesh)
56 mesh=self._test.build0DMesh()
57 return MEDCouplingUMeshServant._this(mesh)
60 mesh=self._test.buildM1DMesh()
61 return MEDCouplingUMeshServant._this(mesh)
63 def getExtrudedMesh(self):
64 mesh=self._test.buildExtrudedMesh()
65 return MEDCouplingExtrudedMeshServant._this(mesh)
68 mesh=self._test.buildCMesh()
69 return MEDCouplingCMeshServant._this(mesh)
71 def getFieldScalarOn2DNT(self):
72 field=self._test.buildFieldScalarOn2DNT()
73 return MEDCouplingFieldDoubleServant._this(field)
75 def getFieldNodeScalarOn2DNT(self):
76 field=self._test.buildFieldNodeScalarOn2DNT()
77 return MEDCouplingFieldDoubleServant._this(field)
79 def getFieldScalarOn3DNT(self):
80 field=self._test.buildFieldScalarOn3DNT()
81 return MEDCouplingFieldDoubleServant._this(field)
83 def getFieldScalarOn3DSurfWT(self):
84 field=self._test.buildFieldScalarOn3DSurfWT()
85 return MEDCouplingFieldDoubleServant._this(field)
87 def getFieldScalarOn3DSurfCOTI(self):
88 field=self._test.buildFieldScalarOn3DSurfCOTI()
89 return MEDCouplingFieldDoubleServant._this(field)
91 def getFieldScalarOn2DLT(self):
92 field=self._test.buildFieldScalarOn2DLT()
93 return MEDCouplingFieldDoubleServant._this(field)
95 def getFieldGaussPt2DWT(self):
96 field=self._test.buildFieldGaussPt2DWT()
97 return MEDCouplingFieldDoubleServant._this(field)
99 def getFieldGaussPtNE2DWT(self):
100 field=self._test.buildFieldGaussPtNE2DWT()
101 return MEDCouplingFieldDoubleServant._this(field)
103 def getFieldVectorOnExtrudedWT(self):
104 field=self._test.buildFieldVectorOnExtrudedWT()
105 return MEDCouplingFieldDoubleServant._this(field)
107 def getFieldVectorOnCMeshWT(self):
108 field=self._test.buildFieldVectorOnCMeshWT()
109 return MEDCouplingFieldDoubleServant._this(field)
111 def getFieldTemplateCellOn2D(self):
112 field=self._test.buildFieldTemplateCellOn2D()
113 return MEDCouplingFieldTemplateServant._this(field)
115 def getFieldTemplateNodeOn2D(self):
116 field=self._test.buildFieldTemplateNodeOn2D()
117 return MEDCouplingFieldTemplateServant._this(field)
119 def getFieldTemplateGaussPtOn2D(self):
120 field=self._test.buildFieldTemplateGaussPtOn2D()
121 return MEDCouplingFieldTemplateServant._this(field)
123 def getFieldTemplateGaussNEOn2D(self):
124 field=self._test.buildFieldTemplateGaussNEOn2D()
125 return MEDCouplingFieldTemplateServant._this(field)
127 def getMultiFields1(self):
128 fields=self._test.buildMultiFields1()
129 return MEDCouplingMultiFieldsServant._this(fields)
131 def getArrayDouble1(self):
132 fields=self._test.buildArrayDouble1()
133 return DataArrayDoubleServant._this(fields)
135 def getArrayDouble2(self):
136 fields=self._test.buildArrayDouble2()
137 return DataArrayDoubleServant._this(fields)
139 def getArrayDouble3(self):
140 fields=self._test.buildArrayDouble3()
141 return DataArrayDoubleServant._this(fields)
143 def getArrayInt1(self):
144 fields=self._test.buildArrayInt1()
145 return DataArrayIntServant._this(fields)
147 def getArrayInt2(self):
148 fields=self._test.buildArrayInt2()
149 return DataArrayIntServant._this(fields)
151 def getArrayInt3(self):
152 fields=self._test.buildArrayInt3()
153 return DataArrayIntServant._this(fields)
155 def getMultiFields2(self):
156 fot=self._test.buildMultiFields2()
157 return MEDCouplingFieldOverTimeServant._this(fot)