From 3e13d871a5f12e8e282109914bde59c63d7f5117 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 8 Dec 2006 12:26:18 +0000 Subject: [PATCH] To provide backward compatibility --- src/CONVERTOR/VISU_MedConvertor.cxx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/CONVERTOR/VISU_MedConvertor.cxx b/src/CONVERTOR/VISU_MedConvertor.cxx index de8e9b30..d6789c62 100644 --- a/src/CONVERTOR/VISU_MedConvertor.cxx +++ b/src/CONVERTOR/VISU_MedConvertor.cxx @@ -1369,11 +1369,10 @@ BuildTimeStampMinMax(MED::SharedPtr theTimeStampValue, TInt theNbComp, TInt theNbComp2) { - - const typename TimeStampValueType::TGeom2Value& aGeom2Value = theTimeStampValue->myGeom2Value; - typename TimeStampValueType::TGeom2Value::const_iterator anIter = aGeom2Value.begin(); + const typename TimeStampValueType::TTGeom2Value& aGeom2Value = theTimeStampValue->myGeom2Value; + typename TimeStampValueType::TTGeom2Value::const_iterator anIter = aGeom2Value.begin(); for(; anIter != aGeom2Value.end(); anIter++){ - const typename TimeStampValueType::TMeshValue& aMMeshValue = anIter->second; + const typename TimeStampValueType::TTMeshValue& aMMeshValue = anIter->second; MED::EGeometrieElement aMGeom = anIter->first; TInt aNbElem = aMMeshValue.myNbElem; @@ -1391,9 +1390,9 @@ BuildTimeStampMinMax(MED::SharedPtr theTimeStampValue, // To calculate min/max per components for(TInt iElem = 0; iElem < aNbElem; iElem++){ - typename TimeStampValueType::TMeshValue::TCValueSliceArr aMValueSliceArr = aMMeshValue.GetCompValueSliceArr(iElem); + typename TimeStampValueType::TTMeshValue::TCValueSliceArr aMValueSliceArr = aMMeshValue.GetCompValueSliceArr(iElem); for(TInt iComp = 0; iComp < theNbComp; iComp++){ - const typename TimeStampValueType::TMeshValue::TCValueSlice& aMValueSlice = aMValueSliceArr[iComp]; + const typename TimeStampValueType::TTMeshValue::TCValueSlice& aMValueSlice = aMValueSliceArr[iComp]; TMinMax& aMinMax = theMinMaxArr[iComp+1]; vtkFloatingPointType& aMin = aMinMax.first; vtkFloatingPointType& aMax = aMinMax.second; @@ -1410,9 +1409,9 @@ BuildTimeStampMinMax(MED::SharedPtr theTimeStampValue, vtkFloatingPointType& aMin = aMinMax.first; vtkFloatingPointType& aMax = aMinMax.second; for(TInt iElem = 0; iElem < aNbElem; iElem++){ - typename TimeStampValueType::TMeshValue::TCValueSliceArr aMValueSliceArr = aMMeshValue.GetGaussValueSliceArr(iElem); + typename TimeStampValueType::TTMeshValue::TCValueSliceArr aMValueSliceArr = aMMeshValue.GetGaussValueSliceArr(iElem); for(TInt iGauss = 0; iGauss < aNbGauss; iGauss++){ - const typename TimeStampValueType::TMeshValue::TCValueSlice& aMValueSlice = aMValueSliceArr[iGauss]; + const typename TimeStampValueType::TTMeshValue::TCValueSlice& aMValueSlice = aMValueSliceArr[iGauss]; vtkFloatingPointType aValue = 0.0; for(TInt iComp = 0; iComp < theNbComp2; iComp++){ vtkFloatingPointType aVal = aMValueSlice[iComp]; @@ -2667,14 +2666,14 @@ FillValForTime(MED::SharedPtr theTimeStampValue, aVMeshValue.Init(aNbElem,aNbGauss,aNbComp); MED::EGeometrieElement aMGeom = aSubProfile->myMGeom; - const typename TimeStampValueType::TMeshValue& aMMeshValue = theTimeStampValue->GetMeshValue(aMGeom); + const typename TimeStampValueType::TTMeshValue& aMMeshValue = theTimeStampValue->GetMeshValue(aMGeom); for(TInt iElem = 0; iElem < aNbElem; iElem++){ TValueSliceArr aVValueSliceArr = aVMeshValue.GetGaussValueSliceArr(iElem); - typename TimeStampValueType::TMeshValue::TCValueSliceArr aMValueSliceArr = aMMeshValue.GetGaussValueSliceArr(iElem); + typename TimeStampValueType::TTMeshValue::TCValueSliceArr aMValueSliceArr = aMMeshValue.GetGaussValueSliceArr(iElem); ADDMSG(MYVALUEDEBUG,"{"); for(TInt iGauss = 0; iGauss < aNbGauss; iGauss++){ TValueSlice& aVValueSlice = aVValueSliceArr[iGauss]; - const typename TimeStampValueType::TMeshValue::TCValueSlice& aMValueSlice = aMValueSliceArr[iGauss]; + const typename TimeStampValueType::TTMeshValue::TCValueSlice& aMValueSlice = aMValueSliceArr[iGauss]; for(TInt iComp = 0; iComp < aNbComp; iComp++){ aVValueSlice[iComp] = aMValueSlice[iComp]; ADDMSG(MYVALUEDEBUG,aVValueSlice[iComp]<<" "); -- 2.39.2