From: dmv Date: Tue, 30 Dec 2008 14:23:33 +0000 (+0000) Subject: 0020062: [CEA 295] Type coherence in *.i files X-Git-Tag: before_mergefrom_BR_V5_IMP_P8_22Jan09~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ddd056b0c62906d0366cd9a26750abdfb5b45195;p=modules%2Fvisu.git 0020062: [CEA 295] Type coherence in *.i files --- diff --git a/src/CONVERTOR/VISU_IDMapper.cxx b/src/CONVERTOR/VISU_IDMapper.cxx index d278169b..c40ede51 100644 --- a/src/CONVERTOR/VISU_IDMapper.cxx +++ b/src/CONVERTOR/VISU_IDMapper.cxx @@ -150,7 +150,7 @@ namespace VISU vtkCell* TIDMapper - ::GetElemCell(int theObjID) + ::GetElemCell(vtkIdType theObjID) { vtkIdType aVtkID = GetElemVTKID(theObjID); return GetOutput()->GetCell(aVtkID); diff --git a/src/CONVERTOR/VISU_MeshValue.cxx b/src/CONVERTOR/VISU_MeshValue.cxx index a8e47fd5..502cbb0b 100644 --- a/src/CONVERTOR/VISU_MeshValue.cxx +++ b/src/CONVERTOR/VISU_MeshValue.cxx @@ -233,7 +233,7 @@ namespace VISU const PValForTimeImpl& theValForTime) { vtkIdType aNbComp = theField->myNbComp; - vtkIdType aSize = std::max(3, aNbComp); + vtkIdType aSize = std::max(vtkIdType(3), aNbComp); TVector aDataValues(aSize); const TGeom2MeshValue& aGeom2MeshValue = theValForTime->GetGeom2MeshValue(); @@ -466,7 +466,7 @@ namespace VISU const PValForTimeImpl& theValForTime) { vtkIdType aNbComp = theField->myNbComp; - vtkIdType aSize = std::max(3, aNbComp); + vtkIdType aSize = std::max(vtkIdType(3), aNbComp); TVector aDataValues(aSize); const TGeom2MeshValue& aGeom2MeshValue = theValForTime->GetGeom2MeshValue(); diff --git a/src/CONVERTOR/VISU_Structures_impl.hxx b/src/CONVERTOR/VISU_Structures_impl.hxx index 0bb31225..3140245f 100644 --- a/src/CONVERTOR/VISU_Structures_impl.hxx +++ b/src/CONVERTOR/VISU_Structures_impl.hxx @@ -219,7 +219,7 @@ namespace VISU //! Get object number of mesh cell by its VTK one virtual vtkIdType - GetElemObjID(int theVtkI) const; + GetElemObjID(vtkIdType theVtkI) const; //! Get cell VTK ID for corresponding object ID virtual diff --git a/src/OBJECT/VISU_Actor.cxx b/src/OBJECT/VISU_Actor.cxx index 2f829d01..2f0801dd 100644 --- a/src/OBJECT/VISU_Actor.cxx +++ b/src/OBJECT/VISU_Actor.cxx @@ -564,7 +564,7 @@ VISU_Actor vtkFloatingPointType* VISU_Actor -::GetNodeCoord(int theObjID) +::GetNodeCoord(vtkIdType theObjID) { if(myIsVTKMapping) return Superclass::GetNodeCoord(theObjID); diff --git a/src/PIPELINE/SALOME_ExtractGeometry.cxx b/src/PIPELINE/SALOME_ExtractGeometry.cxx index 7ebfe861..92e95285 100755 --- a/src/PIPELINE/SALOME_ExtractGeometry.cxx +++ b/src/PIPELINE/SALOME_ExtractGeometry.cxx @@ -131,7 +131,7 @@ SALOME_ExtractGeometry //---------------------------------------------------------------------------- vtkIdType SALOME_ExtractGeometry -::GetElemObjId(int theVtkID) +::GetElemObjId(vtkIdType theVtkID) { if(!myStoreMapping || myIsDoneShallowCopy) return theVtkID; @@ -145,7 +145,7 @@ SALOME_ExtractGeometry vtkIdType SALOME_ExtractGeometry -::GetNodeObjId(int theVtkID) +::GetNodeObjId(vtkIdType theVtkID) { if(!myStoreMapping || myIsDoneShallowCopy) return theVtkID; diff --git a/src/PIPELINE/SALOME_ExtractPolyDataGeometry.cxx b/src/PIPELINE/SALOME_ExtractPolyDataGeometry.cxx index b21bd542..37c2dc69 100644 --- a/src/PIPELINE/SALOME_ExtractPolyDataGeometry.cxx +++ b/src/PIPELINE/SALOME_ExtractPolyDataGeometry.cxx @@ -123,7 +123,7 @@ SALOME_ExtractPolyDataGeometry //---------------------------------------------------------------------------- vtkIdType SALOME_ExtractPolyDataGeometry -::GetElemObjId(int theVtkID) +::GetElemObjId(vtkIdType theVtkID) { if(!myStoreMapping || myIsDoneShallowCopy) return theVtkID; @@ -137,7 +137,7 @@ SALOME_ExtractPolyDataGeometry vtkIdType SALOME_ExtractPolyDataGeometry -::GetNodeObjId(int theVtkID) +::GetNodeObjId(vtkIdType theVtkID) { if(!myStoreMapping || myIsDoneShallowCopy) return theVtkID; diff --git a/src/PIPELINE/VISU_DataSetMapperHolder.cxx b/src/PIPELINE/VISU_DataSetMapperHolder.cxx index 38ed76f0..88dccf47 100644 --- a/src/PIPELINE/VISU_DataSetMapperHolder.cxx +++ b/src/PIPELINE/VISU_DataSetMapperHolder.cxx @@ -234,7 +234,7 @@ VISU_DataSetMapperHolder //---------------------------------------------------------------------------- vtkFloatingPointType* VISU_DataSetMapperHolder -::GetNodeCoord(int theObjID) +::GetNodeCoord(vtkIdType theObjID) { return Superclass::GetNodeCoord(theObjID); } diff --git a/src/PIPELINE/VISU_PipeLine.cxx b/src/PIPELINE/VISU_PipeLine.cxx index b41d8aad..9a7d2e2e 100644 --- a/src/PIPELINE/VISU_PipeLine.cxx +++ b/src/PIPELINE/VISU_PipeLine.cxx @@ -32,6 +32,7 @@ #include #include +#include #include #include @@ -230,7 +231,7 @@ VISU_PipeLine //---------------------------------------------------------------------------- vtkFloatingPointType* VISU_PipeLine -::GetNodeCoord(int theObjID) +::GetNodeCoord(vtkIdType theObjID) { return GetMapperHolder()->GetNodeCoord(theObjID); } diff --git a/src/VISU_I/VISU_CorbaMedConvertor.cxx b/src/VISU_I/VISU_CorbaMedConvertor.cxx index d969aed3..62e12432 100644 --- a/src/VISU_I/VISU_CorbaMedConvertor.cxx +++ b/src/VISU_I/VISU_CorbaMedConvertor.cxx @@ -886,7 +886,7 @@ VISU_MEDConvertor if(MYDEBUG) MESSAGE("VISU_MEDConvertor::Build - Support isOnAllElements = '"<> aNbPoints(%d) <= anArray[%d][%d]=%d < 0 !!!",aNbPoints,iElem,k,anArray[k]); + aString.sprintf("LoadCellsOnEntity >> aNbPoints(%d) <= anArray[%d][%d]=%d < 0 !!!",int(aNbPoints),iElem,k,anArray[k]); throw std::runtime_error((const char*)aString.toLatin1()); } aCell2Connect.push_back(anArray);