Salome HOME
Add structured image grid meshes into MEDCoupling.
[modules/med.git] / src / MEDCouplingCorba_Swig / MEDCouplingCorba.i
index 01cb90418fc0710436a67935543ab0d6a4134c43..a81388bbbf05da8a15a9f19db2d79db54a91dfea 100644 (file)
@@ -30,6 +30,7 @@
 #include "MEDCoupling1DGTUMeshServant.hxx"
 #include "MEDCouplingExtrudedMeshServant.hxx"
 #include "MEDCouplingCMeshServant.hxx"
+#include "MEDCouplingIMeshServant.hxx"
 #include "MEDCouplingCurveLinearMeshServant.hxx"
 #include "DataArrayDoubleServant.hxx"
 #include "DataArrayIntServant.hxx"
@@ -129,6 +130,8 @@ namespace ParaMEDMEM
              return buildServantAndActivate<MEDCouplingExtrudedMeshServant>(dynamic_cast<const MEDCouplingExtrudedMesh *>(cppPointerOfMesh));
            if(dynamic_cast<const MEDCouplingCMesh *>(cppPointerOfMesh))
              return buildServantAndActivate<MEDCouplingCMeshServant>(dynamic_cast<const MEDCouplingCMesh *>(cppPointerOfMesh));
+           if(dynamic_cast<const MEDCouplingIMesh *>(cppPointerOfMesh))
+             return buildServantAndActivate<MEDCouplingIMeshServant>(dynamic_cast<const MEDCouplingIMesh *>(cppPointerOfMesh));
            if(dynamic_cast<const MEDCouplingCurveLinearMesh *>(cppPointerOfMesh))
              return buildServantAndActivate<MEDCouplingCurveLinearMeshServant>(dynamic_cast<const MEDCouplingCurveLinearMesh *>(cppPointerOfMesh));
            throw INTERP_KERNEL::Exception("MEDCouplingMeshServant::_this : unrecognized type (or not managed type) of Mesh in input !");
@@ -148,6 +151,8 @@ namespace ParaMEDMEM
              return buildServantAndActivate2<MEDCouplingExtrudedMeshServant>(dynamic_cast<const MEDCouplingExtrudedMesh *>(cppPointerOfMesh));
            if(dynamic_cast<const MEDCouplingCMesh *>(cppPointerOfMesh))
              return buildServantAndActivate2<MEDCouplingCMeshServant>(dynamic_cast<const MEDCouplingCMesh *>(cppPointerOfMesh));
+           if(dynamic_cast<const MEDCouplingIMesh *>(cppPointerOfMesh))
+             return buildServantAndActivate2<MEDCouplingIMeshServant>(dynamic_cast<const MEDCouplingIMesh *>(cppPointerOfMesh));
            if(dynamic_cast<const MEDCouplingCurveLinearMesh *>(cppPointerOfMesh))
              return buildServantAndActivate2<MEDCouplingCurveLinearMeshServant>(dynamic_cast<const MEDCouplingCurveLinearMesh *>(cppPointerOfMesh));
            throw INTERP_KERNEL::Exception("MEDCouplingMeshServant::_this2 : unrecognized type (or not managed type) of Mesh in input !");
@@ -239,6 +244,23 @@ namespace ParaMEDMEM
          }
        }
   };
+  
+  class MEDCouplingIMeshServant
+  {
+  public:
+    %extend
+       {
+         static PyObject *_this(const MEDCouplingIMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
+         {
+           return buildServantAndActivate<MEDCouplingIMeshServant>(cppPointerOfMesh);
+         }
+         
+         static PyObject *_this2(const MEDCouplingIMesh *cppPointerOfMesh) throw(INTERP_KERNEL::Exception)
+         {
+           return buildServantAndActivate2<MEDCouplingIMeshServant>(cppPointerOfMesh);
+         }
+       }
+  };
 
   class MEDCouplingCurveLinearMeshServant
   {