//! Get amount of memory to build VTK representations for all existing MED entities
virtual
- vtkFloatingPointType
+ size_t
GetSize() = 0;
//! Get mesh for corresponding MED ENTITY
//! Get amount of memory to build mesh for corresponding MED ENTITY
virtual
- vtkFloatingPointType
+ size_t
GetMeshOnEntitySize(const std::string& theMeshName,
const VISU::TEntity& theEntity) = 0;
//! Get amount of memory to build mesh for corresponding MED FAMILY
virtual
- vtkFloatingPointType
+ size_t
GetFamilyOnEntitySize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
const std::string& theFamilyName) = 0;
//! Get amount of memory to build mesh for corresponding MED GROUP
virtual
- vtkFloatingPointType
+ size_t
GetMeshOnGroupSize(const std::string& theMeshName,
const std::string& theGroupName) = 0;
//! Get amount of memory to build mesh for corresponding MED TIMESTAMP
virtual
- vtkFloatingPointType
+ size_t
GetTimeStampSize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
const std::string& theFieldName,
//! Get amount of memory to build all MED TIMESTAMPS for corresponding MED FIELD
virtual
- vtkFloatingPointType
+ size_t
GetFieldOnMeshSize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
const std::string& theFieldName) = 0;
//---------------------------------------------------------------
-vtkFloatingPointType
+size_t
VISU_Convertor_impl
::GetSize()
{
- vtkFloatingPointType aResult = 0.0;
+ size_t aResult = 0;
const VISU::TMeshMap& aMeshMap = GetMeshMap();
VISU::TMeshMap::const_iterator aMeshMapIter = aMeshMap.begin();
for(; aMeshMapIter != aMeshMap.end(); aMeshMapIter++){
//---------------------------------------------------------------
-vtkFloatingPointType
+size_t
VISU_Convertor_impl
::GetMeshOnEntitySize(const std::string& theMeshName,
const VISU::TEntity& theEntity)
{
TFindMeshOnEntity aFindMeshOnEntity =
- FindMeshOnEntity(theMeshName,theEntity);
+ FindMeshOnEntity(theMeshName, theEntity);
PMeshImpl aMesh = boost::get<0>(aFindMeshOnEntity);
PMeshOnEntityImpl aMeshOnEntity = boost::get<1>(aFindMeshOnEntity);
- vtkIdType aPointsSize = 3*aMesh->myNbPoints*sizeof(VISU::TCoord);
- vtkIdType aNbCells = aMeshOnEntity->myNbCells;
- vtkIdType aCellsSize = aMeshOnEntity->myCellsSize;
+ size_t aPointsSize = 3*aMesh->myNbPoints*sizeof(VISU::TCoord);
+ size_t aNbCells = aMeshOnEntity->myNbCells;
+ size_t aCellsSize = aMeshOnEntity->myCellsSize;
- vtkIdType aConnectivitySize = aCellsSize*sizeof(vtkIdType);
- vtkIdType aTypesSize = aNbCells*sizeof(char);
- vtkIdType aLocationsSize = aNbCells*sizeof(int);
+ size_t aConnectivitySize = aCellsSize*sizeof(vtkIdType);
+ size_t aTypesSize = aNbCells*sizeof(char);
+ size_t aLocationsSize = aNbCells*sizeof(int);
vtkFloatingPointType aNbCellsPerPoint = aCellsSize / aNbCells - 1;
- vtkIdType aLinksSize = aMesh->myNbPoints *
+ size_t aLinksSize = aMesh->myNbPoints *
(vtkIdType(sizeof(vtkIdType)*aNbCellsPerPoint) + sizeof(vtkCellLinks::Link));
aLinksSize = 0;
vtkIdType aResult = aPointsSize + aConnectivitySize + aTypesSize + aLocationsSize + aLinksSize;
//---------------------------------------------------------------
-vtkFloatingPointType
+size_t
VISU_Convertor_impl
::GetFamilyOnEntitySize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
PFamilyImpl aFamily = boost::get<2>(aFindFamilyOnEntity);
PMeshOnEntityImpl aMeshOnEntity = boost::get<1>(aFindFamilyOnEntity);
- vtkIdType aPointsSize = 3*aMesh->myNbPoints*sizeof(VISU::TCoord);
- vtkIdType aNbCells = aFamily->myNbCells;
- vtkIdType aCellsSize = aFamily->myCellsSize;
+ size_t aPointsSize = 3*aMesh->myNbPoints*sizeof(VISU::TCoord);
+ size_t aNbCells = aFamily->myNbCells;
+ size_t aCellsSize = aFamily->myCellsSize;
- vtkIdType aConnectivitySize = aCellsSize*sizeof(vtkIdType);
- vtkIdType aTypesSize = aNbCells*sizeof(char);
- vtkIdType aLocationsSize = aNbCells*sizeof(int);
+ size_t aConnectivitySize = aCellsSize*sizeof(vtkIdType);
+ size_t aTypesSize = aNbCells*sizeof(char);
+ size_t aLocationsSize = aNbCells*sizeof(int);
vtkFloatingPointType aNbCellsPerPoint = aCellsSize / aNbCells - 1;
- vtkIdType aLinksSize = aMesh->myNbPoints *
+ size_t aLinksSize = aMesh->myNbPoints *
(vtkIdType(sizeof(vtkIdType)*aNbCellsPerPoint) + sizeof(vtkCellLinks::Link));
aLinksSize = 0;
vtkIdType aResult = aPointsSize + aConnectivitySize + aTypesSize + aLocationsSize + aLinksSize;
}
-vtkFloatingPointType
+size_t
VISU_Convertor_impl
::GetMeshOnGroupSize(const std::string& theMeshName,
const std::string& theGroupName)
PMeshImpl aMesh = boost::get<0>(aFindMeshOnGroup);
PGroupImpl aGroup = boost::get<1>(aFindMeshOnGroup);
- vtkIdType aPointsSize = 3*aMesh->myNbPoints*sizeof(VISU::TCoord);
+ size_t aPointsSize = 3*aMesh->myNbPoints*sizeof(VISU::TCoord);
TNbASizeCells aNbASizeCells = aGroup->GetNbASizeCells();
- vtkIdType aNbCells = aNbASizeCells.first;
- vtkIdType aCellsSize = aNbASizeCells.second;
- vtkIdType aConnectivityAndTypesSize = aCellsSize*sizeof(vtkIdType);
- vtkIdType aLocationsSize = aNbCells*sizeof(int);
+ size_t aNbCells = aNbASizeCells.first;
+ size_t aCellsSize = aNbASizeCells.second;
+ size_t aConnectivityAndTypesSize = aCellsSize*sizeof(vtkIdType);
+ size_t aLocationsSize = aNbCells*sizeof(int);
vtkFloatingPointType aNbCellsPerPoint = aCellsSize / aNbCells - 1;
- vtkIdType aLinksSize = aMesh->myNbPoints *
+ size_t aLinksSize = aMesh->myNbPoints *
(vtkIdType(sizeof(vtkIdType)*aNbCellsPerPoint) + sizeof(short));
aLinksSize = 0;
vtkIdType aResult = aPointsSize + aConnectivityAndTypesSize + aLocationsSize + aLinksSize;
}
-vtkFloatingPointType
+size_t
VISU_Convertor_impl
::GetFieldOnMeshSize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
PMeshOnEntityImpl aVTKMeshOnEntity = boost::get<2>(aFindField);
PFieldImpl aField = boost::get<3>(aFindField);
- vtkFloatingPointType aMeshSize = GetMeshOnEntitySize(theMeshName,aVTKMeshOnEntity->myEntity);
- vtkFloatingPointType aFieldOnMeshSize = vtkFloatingPointType(aField->myDataSize*sizeof(vtkFloatingPointType)*aField->myValField.size()*ERR_SIZE_CALC);
- vtkFloatingPointType aResult = aMeshSize + aFieldOnMeshSize;
+ size_t aMeshSize = GetMeshOnEntitySize(theMeshName,aVTKMeshOnEntity->myEntity);
+ size_t aFieldOnMeshSize = size_t(aField->myDataSize*sizeof(vtkFloatingPointType)*aField->myValField.size()*ERR_SIZE_CALC);
+ size_t aResult = aMeshSize + aFieldOnMeshSize;
if(MYDEBUG)
MSG(MYVTKDEBUG,"GetFieldOnMeshSize - aFieldOnMeshSize = "<<vtkFloatingPointType(aFieldOnMeshSize));
MSG(MYDEBUG,"GetFieldOnMeshSize - aResult = "<<vtkFloatingPointType(aResult)<<"; theMeshName = '"<<theMeshName<<
}
-vtkFloatingPointType
+size_t
VISU_Convertor_impl
::GetTimeStampSize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
PMeshOnEntityImpl aVTKMeshOnEntity = boost::get<2>(aFindTimeStamp);
PFieldImpl aField = boost::get<3>(aFindTimeStamp);
- vtkFloatingPointType aMeshSize = GetMeshOnEntitySize(theMeshName,aVTKMeshOnEntity->myEntity);
- vtkFloatingPointType aTimeStampSize = vtkFloatingPointType(aField->myDataSize*sizeof(vtkFloatingPointType) * ERR_SIZE_CALC);
- vtkFloatingPointType aResult = aMeshSize + aTimeStampSize;
+ size_t aMeshSize = GetMeshOnEntitySize(theMeshName,aVTKMeshOnEntity->myEntity);
+ size_t aTimeStampSize = size_t(aField->myDataSize*sizeof(vtkFloatingPointType) * ERR_SIZE_CALC);
+ size_t aResult = aMeshSize + aTimeStampSize;
MSG(MYDEBUG && MYVTKDEBUG,"GetTimeStampSize - aTimeStampSize = "<<vtkFloatingPointType(aTimeStampSize));
MSG(MYDEBUG,"GetTimeStampSize - aResult = "<<vtkFloatingPointType(aResult)<<
//! Implemention of the VISU_Convertor::GetSize
virtual
- vtkFloatingPointType
+ size_t
GetSize();
//! Implemention of the VISU_Convertor::GetMeshOnEntity
//! Implemention of the VISU_Convertor::GetMeshOnEntitySize
virtual
- vtkFloatingPointType
+ size_t
GetMeshOnEntitySize(const std::string& theMeshName,
const VISU::TEntity& theEntity);
//! Implemention of the VISU_Convertor::GetFamilyOnEntitySize
virtual
- vtkFloatingPointType
+ size_t
GetFamilyOnEntitySize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
const std::string& theFamilyName);
//! Implemention of the VISU_Convertor::GetMeshOnGroupSize
virtual
- vtkFloatingPointType
+ size_t
GetMeshOnGroupSize(const std::string& theMeshName,
const std::string& theGroupName);
//! Implemention of the VISU_Convertor::GetTimeStampSize
virtual
- vtkFloatingPointType
+ size_t
GetTimeStampSize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
const std::string& theFieldName,
//! Implemention of the VISU_Convertor::GetFieldOnMeshSize
virtual
- vtkFloatingPointType
+ size_t
GetFieldOnMeshSize(const std::string& theMeshName,
const VISU::TEntity& theEntity,
const std::string& theFieldName);