From: apo Date: Wed, 31 Aug 2005 06:00:06 +0000 (+0000) Subject: To avoid compilation errors X-Git-Tag: BR-D5-38-2003_D2005-12-09~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c3f7a80027f50a0e32f29d077e5029f819764dc;p=modules%2Fvisu.git To avoid compilation errors --- diff --git a/src/CONVERTOR/VISU_Convertor_impl.cxx b/src/CONVERTOR/VISU_Convertor_impl.cxx index 82568e22..b40c5c0e 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.cxx +++ b/src/CONVERTOR/VISU_Convertor_impl.cxx @@ -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; } diff --git a/src/CONVERTOR/VISU_Convertor_impl.hxx b/src/CONVERTOR/VISU_Convertor_impl.hxx index 7e5eed04..f0ea15b8 100644 --- a/src/CONVERTOR/VISU_Convertor_impl.hxx +++ b/src/CONVERTOR/VISU_Convertor_impl.hxx @@ -279,15 +279,17 @@ namespace VISU typedef TVector TCell2Connect; typedef std::map TGeom2Cell2Connect; - typedef TVector 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; };