]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To implement ID's mapping
authorapo <apo@opencascade.com>
Thu, 25 Aug 2005 11:10:14 +0000 (11:10 +0000)
committerapo <apo@opencascade.com>
Thu, 25 Aug 2005 11:10:14 +0000 (11:10 +0000)
src/CONVERTOR/VISU_Convertor_impl.hxx
src/CONVERTOR/VISU_MedConvertor.cxx
src/CONVERTOR/VISU_MedConvertor.hxx

index 623f36807427e94472687640041dfdf157ea8f47..5d513381620acec073883b98966a6d5ae117cfc4 100644 (file)
@@ -193,6 +193,14 @@ namespace VISU
   struct TGaussSubMeshImpl: virtual TGaussSubMesh, virtual TSource
   {
     TGaussSubMeshImpl();
+
+    virtual
+    vtkIdType
+    GetObjID(vtkIdType theID) const
+    {
+      return theID;
+    }
+    
     TPointCoords myPointCoords;
     ESubMeshStatus myStatus;
   };
index e390193a107f8bb40a4049631f57fc89e42e8010..43b842de6a2fa8d7c68365350b792825aa49d49f 100644 (file)
@@ -1244,6 +1244,10 @@ LoadGaussMesh(const MED::PWrapper& theMed,
                                                    aMEntity, 
                                                    aMGeom);
       
+    aGaussSubMesh->myIsElemNum = aCellInfo->IsElemNum();
+    if(aGaussSubMesh->myIsElemNum)
+      aGaussSubMesh->myElemNum = aCellInfo->myElemNum;
+
     std::string aName;
     MED::TGaussCoord aGaussCoord;
     bool anIsGaussCoord3D = false;
index 5bc6ff0653339b97c0b082e002f8c7b10e737884..bb187c23d36b976c9d8cda49f65f30510e4e697e 100644 (file)
@@ -12,6 +12,7 @@
 #include "VISU_Convertor_impl.hxx"
 
 #include "MED_Common.hxx"
+#include "MED_Structures.hxx"
 
 #include <qfileinfo.h>
 
@@ -50,7 +51,20 @@ namespace VISU
 
   //---------------------------------------------------------------
   struct TMEDGaussSubMesh: virtual TGaussSubMeshImpl
-  {};
+  {
+    MED::EBooleen myIsElemNum;
+    MED::TElemNum myElemNum;
+
+    virtual
+    vtkIdType
+    GetObjID(vtkIdType theID) const
+    {
+      if(myIsElemNum)
+       return myElemNum[theID];
+      else
+       return theID;
+    }
+  };
   typedef SharedPtr<TMEDGaussSubMesh> PMEDGaussSubMesh;