vtkCell*
TIDMapper
- ::GetElemCell(int theObjID)
+ ::GetElemCell(vtkIdType theObjID)
{
vtkIdType aVtkID = GetElemVTKID(theObjID);
return GetOutput()->GetCell(aVtkID);
const PValForTimeImpl& theValForTime)
{
vtkIdType aNbComp = theField->myNbComp;
- vtkIdType aSize = std::max(3, aNbComp);
+ vtkIdType aSize = std::max(vtkIdType(3), aNbComp);
TVector<TVTKBasicType> aDataValues(aSize);
const TGeom2MeshValue& aGeom2MeshValue = theValForTime->GetGeom2MeshValue();
const PValForTimeImpl& theValForTime)
{
vtkIdType aNbComp = theField->myNbComp;
- vtkIdType aSize = std::max(3, aNbComp);
+ vtkIdType aSize = std::max(vtkIdType(3), aNbComp);
TVector<TVTKBasicType> aDataValues(aSize);
const TGeom2MeshValue& aGeom2MeshValue = theValForTime->GetGeom2MeshValue();
//! 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
vtkFloatingPointType*
VISU_Actor
-::GetNodeCoord(int theObjID)
+::GetNodeCoord(vtkIdType theObjID)
{
if(myIsVTKMapping)
return Superclass::GetNodeCoord(theObjID);
//----------------------------------------------------------------------------
vtkIdType
SALOME_ExtractGeometry
-::GetElemObjId(int theVtkID)
+::GetElemObjId(vtkIdType theVtkID)
{
if(!myStoreMapping || myIsDoneShallowCopy)
return theVtkID;
vtkIdType
SALOME_ExtractGeometry
-::GetNodeObjId(int theVtkID)
+::GetNodeObjId(vtkIdType theVtkID)
{
if(!myStoreMapping || myIsDoneShallowCopy)
return theVtkID;
//----------------------------------------------------------------------------
vtkIdType
SALOME_ExtractPolyDataGeometry
-::GetElemObjId(int theVtkID)
+::GetElemObjId(vtkIdType theVtkID)
{
if(!myStoreMapping || myIsDoneShallowCopy)
return theVtkID;
vtkIdType
SALOME_ExtractPolyDataGeometry
-::GetNodeObjId(int theVtkID)
+::GetNodeObjId(vtkIdType theVtkID)
{
if(!myStoreMapping || myIsDoneShallowCopy)
return theVtkID;
//----------------------------------------------------------------------------
vtkFloatingPointType*
VISU_DataSetMapperHolder
-::GetNodeCoord(int theObjID)
+::GetNodeCoord(vtkIdType theObjID)
{
return Superclass::GetNodeCoord(theObjID);
}
#include <vtkObjectFactory.h>
#include <vtkPlane.h>
+#include <climits>
#include <float.h>
#include <algorithm>
//----------------------------------------------------------------------------
vtkFloatingPointType*
VISU_PipeLine
-::GetNodeCoord(int theObjID)
+::GetNodeCoord(vtkIdType theObjID)
{
return GetMapperHolder()->GetNodeCoord(theObjID);
}
if(MYDEBUG)
MESSAGE("VISU_MEDConvertor::Build - Support isOnAllElements = '"<<aSupportName<<
"' aVEntity = "<<aVEntity);
- int aNbCells, aCellsSize;
+ vtkIdType aNbCells, aCellsSize;
//Check, if there is any data on the support?
if(aVEntity == VISU::NODE_ENTITY){
aMesh->myNbPoints = aMeshOnSupport->getNumberOfNodes();
continue;
VISU::PCMeshOnEntity aMeshOnEntity = aMeshOnEntityMapIter->second;
- int aNbCells = aMeshOnEntity->myNbCells, aCellsSize = aMeshOnEntity->myCellsSize;
+ vtkIdType aNbCells = aMeshOnEntity->myNbCells, aCellsSize = aMeshOnEntity->myCellsSize;
CORBA::Boolean anIsOnAllElements = aMEDSupport->isOnAllElements();
if(!anIsOnAllElements)
::GetCellsSize(aNbCells,aCellsSize,aMEDFamily);
for (int k = 0; k < aVNbNodes; k++)
if(anArray[k] < 0 || aNbPoints <= anArray[k]){
static QString aString;
- aString.sprintf("LoadCellsOnEntity >> 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);