]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To avoid compilation errors
authorapo <apo@opencascade.com>
Wed, 31 Aug 2005 06:00:06 +0000 (06:00 +0000)
committerapo <apo@opencascade.com>
Wed, 31 Aug 2005 06:00:06 +0000 (06:00 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx
src/CONVERTOR/VISU_Convertor_impl.hxx

index 82568e224ef171bff32c6f2139e673a474866462..b40c5c0e3666e11d8d61c3e4c5725bd7c1419d01 100644 (file)
@@ -365,19 +365,14 @@ namespace VISU
   TMeshOnEntityImpl
   ::GetElemVTKID(vtkIdType theID) const
   {
-    TObj2VTKID::const_iterator anIter = std::find(myObj2VTKID.begin(),
-                                                 myObj2VTKID.end(),
-                                                 theID);
-    if(anIter != myObj2VTKID.end())
-      return *anIter;
-    return -1;
+    return theID;
   }
 
   vtkIdType
   TMeshOnEntityImpl
   ::GetElemObjID(vtkIdType theID) const
   {
-    return myObj2VTKID[theID];
+    return theID;
   }
 
 
index 7e5eed046ef4fa1951313ea819e0189c6a83528c..f0ea15b868573d1b8181fbcc738250a0141e1998 100644 (file)
@@ -279,15 +279,17 @@ namespace VISU
   typedef TVector<TConnect> TCell2Connect;
   typedef std::map<vtkIdType,TCell2Connect> TGeom2Cell2Connect;
 
-  typedef TVector<vtkIdType> TObj2VTKID;
-
   struct TMeshOnEntityImpl: virtual TMeshOnEntity, virtual TSource
   {
     TGeom2Cell2Connect myGeom2Cell2Connect;
 
     virtual 
     vtkIdType 
-    GetElemObjID(int theVtkI) const;
+    GetElemVTKID(vtkIdType theID) const;
+
+    virtual 
+    vtkIdType 
+    GetElemObjID(vtkIdType theID) const;
 
     TObj2VTKID myObj2VTKID;
   };