Back to index

salome-med  6.5.0
MEDCouplingCorbaSwigTestServ.py
Go to the documentation of this file.
00001 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D
00002 #
00003 # This library is free software; you can redistribute it and/or
00004 # modify it under the terms of the GNU Lesser General Public
00005 # License as published by the Free Software Foundation; either
00006 # version 2.1 of the License.
00007 #
00008 # This library is distributed in the hope that it will be useful,
00009 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 # Lesser General Public License for more details.
00012 #
00013 # You should have received a copy of the GNU Lesser General Public
00014 # License along with this library; if not, write to the Free Software
00015 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 #
00017 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 #
00019 
00020 import MEDCouplingCorbaSwigTest
00021 import MEDCouplingCorbaServantTest_idl
00022 
00023 from MEDCouplingCorba import *
00024 
00025 class MEDCouplingMeshFieldFactoryComponentPy(MEDCouplingCorbaServantTest_idl._0_SALOME_TEST__POA.MEDCouplingMeshFieldFactory):
00026     def __init__(self,orb):
00027         self._orb=orb
00028         self._test=MEDCouplingCorbaSwigTest.MEDCouplingCorbaServBasicsTest()
00029         pass
00030     
00031     def destroyFactory(self):
00032         oid = self._default_POA().servant_to_id(self);
00033         MEDCouplingCorbaServantTest_idl._0_SALOME_TEST__POA.MEDCouplingMeshFieldFactory._default_POA().deactivate_object(self,oid);
00034         MEDCouplingCorbaServantTest_idl._0_SALOME_TEST__POA.MEDCouplingMeshFieldFactory._remove_ref(self);
00035         
00036     def shutdownOrb(self):
00037         self._orb.shutdown(0)
00038 
00039     def get1DMesh(self):
00040         mesh=self._test.build1DMesh()
00041         return MEDCouplingUMeshServant._this(mesh)
00042     
00043     def get2DMesh(self):
00044         mesh=self._test.build2DMesh()
00045         return MEDCouplingUMeshServant._this(mesh)
00046     
00047     def get3DMesh(self):
00048         mesh=self._test.build3DMesh()
00049         return MEDCouplingUMeshServant._this(mesh)
00050     
00051     def get3DSurfMesh(self):
00052         mesh=self._test.build3DSurfMesh()
00053         return MEDCouplingUMeshServant._this(mesh)
00054     
00055     def get0DMesh(self):
00056         mesh=self._test.build0DMesh()
00057         return MEDCouplingUMeshServant._this(mesh)
00058     
00059     def getM1DMesh(self):
00060         mesh=self._test.buildM1DMesh()
00061         return MEDCouplingUMeshServant._this(mesh)
00062 
00063     def getExtrudedMesh(self):
00064         mesh=self._test.buildExtrudedMesh()
00065         return MEDCouplingExtrudedMeshServant._this(mesh)
00066 
00067     def getCMesh(self):
00068         mesh=self._test.buildCMesh()
00069         return MEDCouplingCMeshServant._this(mesh)
00070     
00071     def getFieldScalarOn2DNT(self):
00072         field=self._test.buildFieldScalarOn2DNT()
00073         return MEDCouplingFieldDoubleServant._this(field)
00074     
00075     def getFieldNodeScalarOn2DNT(self):
00076         field=self._test.buildFieldNodeScalarOn2DNT()
00077         return MEDCouplingFieldDoubleServant._this(field)
00078     
00079     def getFieldScalarOn3DNT(self):
00080         field=self._test.buildFieldScalarOn3DNT()
00081         return MEDCouplingFieldDoubleServant._this(field)
00082     
00083     def getFieldScalarOn3DSurfWT(self):
00084         field=self._test.buildFieldScalarOn3DSurfWT()
00085         return MEDCouplingFieldDoubleServant._this(field)
00086     
00087     def getFieldScalarOn3DSurfCOTI(self):
00088         field=self._test.buildFieldScalarOn3DSurfCOTI()
00089         return MEDCouplingFieldDoubleServant._this(field)
00090     
00091     def getFieldScalarOn2DLT(self):
00092         field=self._test.buildFieldScalarOn2DLT()
00093         return MEDCouplingFieldDoubleServant._this(field)
00094 
00095     def getFieldGaussPt2DWT(self):
00096         field=self._test.buildFieldGaussPt2DWT()
00097         return MEDCouplingFieldDoubleServant._this(field)
00098     
00099     def getFieldGaussPtNE2DWT(self):
00100         field=self._test.buildFieldGaussPtNE2DWT()
00101         return MEDCouplingFieldDoubleServant._this(field)
00102 
00103     def getFieldVectorOnExtrudedWT(self):
00104         field=self._test.buildFieldVectorOnExtrudedWT()
00105         return MEDCouplingFieldDoubleServant._this(field)
00106 
00107     def getFieldVectorOnCMeshWT(self):
00108         field=self._test.buildFieldVectorOnCMeshWT()
00109         return MEDCouplingFieldDoubleServant._this(field)
00110 
00111     def getFieldTemplateCellOn2D(self):
00112         field=self._test.buildFieldTemplateCellOn2D()
00113         return MEDCouplingFieldTemplateServant._this(field)
00114     
00115     def getFieldTemplateNodeOn2D(self):
00116         field=self._test.buildFieldTemplateNodeOn2D()
00117         return MEDCouplingFieldTemplateServant._this(field)
00118     
00119     def getFieldTemplateGaussPtOn2D(self):
00120         field=self._test.buildFieldTemplateGaussPtOn2D()
00121         return MEDCouplingFieldTemplateServant._this(field)
00122     
00123     def getFieldTemplateGaussNEOn2D(self):
00124         field=self._test.buildFieldTemplateGaussNEOn2D()
00125         return MEDCouplingFieldTemplateServant._this(field)
00126 
00127     def getMultiFields1(self):
00128         fields=self._test.buildMultiFields1()
00129         return MEDCouplingMultiFieldsServant._this(fields)
00130 
00131     def getArrayDouble1(self):
00132         fields=self._test.buildArrayDouble1()
00133         return DataArrayDoubleServant._this(fields)
00134 
00135     def getArrayDouble2(self):
00136         fields=self._test.buildArrayDouble2()
00137         return DataArrayDoubleServant._this(fields)
00138 
00139     def getArrayDouble3(self):
00140         fields=self._test.buildArrayDouble3()
00141         return DataArrayDoubleServant._this(fields)
00142 
00143     def getArrayInt1(self):
00144         fields=self._test.buildArrayInt1()
00145         return DataArrayIntServant._this(fields)
00146 
00147     def getArrayInt2(self):
00148         fields=self._test.buildArrayInt2()
00149         return DataArrayIntServant._this(fields)
00150 
00151     def getArrayInt3(self):
00152         fields=self._test.buildArrayInt3()
00153         return DataArrayIntServant._this(fields)
00154 
00155     def getMultiFields2(self):
00156         fot=self._test.buildMultiFields2()
00157         return MEDCouplingFieldOverTimeServant._this(fot)
00158     pass