From: vsr Date: Tue, 20 Jul 2010 10:47:33 +0000 (+0000) Subject: Fix compilation problem (caused by latest changes in MED module) X-Git-Tag: V5_1_main_20100722 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=327fb42b93540d2b7b0005e56ee5ce6696b2ffa6;p=modules%2Fvisu.git Fix compilation problem (caused by latest changes in MED module) --- diff --git a/src/VISU_I/VISUConfig.hh b/src/VISU_I/VISUConfig.hh index c463972a..164f6bd2 100644 --- a/src/VISU_I/VISUConfig.hh +++ b/src/VISU_I/VISUConfig.hh @@ -36,6 +36,7 @@ #include CORBA_SERVER_HEADER(MED) #include CORBA_SERVER_HEADER(SALOMEDS) #include CORBA_SERVER_HEADER(SALOMEDS_Attributes) +#include CORBA_SERVER_HEADER(SALOME_Types) #include "SALOME_NamingService.hxx" #include "SALOME_LifeCycleCORBA.hxx" diff --git a/src/VISU_I/VISU_CorbaMedConvertor.cxx b/src/VISU_I/VISU_CorbaMedConvertor.cxx index 898ad2c3..85870069 100644 --- a/src/VISU_I/VISU_CorbaMedConvertor.cxx +++ b/src/VISU_I/VISU_CorbaMedConvertor.cxx @@ -580,7 +580,7 @@ namespace VISU::EGeometry aEGeom = aGeom2SubProfileIter->first; SALOME_MED::medGeometryElement aMGeom = VISUGeomToMED(aEGeom); VISU::PCSubProfile aSubProfile = aGeom2SubProfileIter->second; - SALOME_MED::long_array_var aGeom2ProfileIds; + SALOME_TYPES::ListOfLong_var aGeom2ProfileIds; std::vector aGeom2Profile; if(!aSupport->isOnAllElements()){ try{ @@ -813,7 +813,7 @@ VISU_MEDConvertor return NULL; CORBA::Long aNbMeshes = theMED->getNumberOfMeshes(); - SALOME_MED::string_array_var aMeshNames = theMED->getMeshNames(); + SALOME_TYPES::ListOfString_var aMeshNames = theMED->getMeshNames(); if(MYDEBUG) MESSAGE("VISU_MEDConvertor::Build - aNbMeshes = "<GetStudy(); @@ -1331,7 +1331,7 @@ VISU_MEDConvertor if(aNbElem <= 0) throw std::runtime_error("LoadPoints >> There is no points in the mesh !!!"); - SALOME_MED::double_array_var aCCoord = aMedMesh->getCoordinates(SALOME_MED::MED_FULL_INTERLACE); + SALOME_TYPES::ListOfDouble_var aCCoord = aMedMesh->getCoordinates(SALOME_MED::MED_FULL_INTERLACE); VISU::TCMEDCoordHolder* aCoordHolder = new VISU::TCMEDCoordHolder(); aCoordHolder->Init(aNbElem, aDim, aCCoord); @@ -1376,7 +1376,7 @@ VISU_MEDConvertor if(!anIsOnAllElements){ SALOME_MED::medGeometryElement_array_var aGeom = aMedFamily->getTypes(); - SALOME_MED::long_array_var aCellNumForType = aMedFamily->getNumber(aGeom[0]); + SALOME_TYPES::ListOfLong_var aCellNumForType = aMedFamily->getNumber(aGeom[0]); int aSize = aNbElem; aNbElem = aCellNumForType->length(); for(int iElem = 0; iElem < aNbElem; iElem++){ @@ -1602,7 +1602,7 @@ VISU_MEDConvertor int aVNbNodes = VISUGeom2NbNodes(aEGeom); int aNbElem = anInfo->numberOfElements[iGeom]; if (aNbElem > 0) { - SALOME_MED::long_array_var aConn = + SALOME_TYPES::ListOfLong_var aConn = aMedMesh->getConnectivity(SALOME_MED::MED_FULL_INTERLACE, SALOME_MED::MED_NODAL, aMEntity, @@ -1747,7 +1747,7 @@ VISU_MEDConvertor if(MYDEBUG) MESSAGE("LoadCellsOnFamily - iGeomEnd = "<getNumber(aMGeom); + SALOME_TYPES::ListOfLong_var aCellNumForType = aMedFamily->getNumber(aMGeom); VISU::EGeometry aEGeom = MEDGeom2VISU(aMGeom); int aNbElem = aCellNumForType->length(); @@ -1867,7 +1867,7 @@ VISU_MEDConvertor SALOME_MED::FIELDDOUBLE_ptr aFieldDouble = SALOME_MED::FIELDDOUBLE::_narrow(aMEDField); if(!aFieldDouble->_is_nil()){ - SALOME_MED::double_array_var anArray = aFieldDouble->getValue(SALOME_MED::MED_FULL_INTERLACE); + SALOME_TYPES::ListOfDouble_var anArray = aFieldDouble->getValue(SALOME_MED::MED_FULL_INTERLACE); if(MYDEBUG) MESSAGE("VISU_MEDConvertor::LoadField - There is FIELDDOUBLE = "<length()); ImportField(anArray, theMesh, @@ -1878,7 +1878,7 @@ VISU_MEDConvertor SALOME_MED::FIELDINT_ptr aFieldInt = SALOME_MED::FIELDINT::_narrow(aMEDField); if(!aFieldInt->_is_nil()){ - SALOME_MED::long_array_var anArray = aFieldInt->getValue(SALOME_MED::MED_FULL_INTERLACE); + SALOME_TYPES::ListOfLong_var anArray = aFieldInt->getValue(SALOME_MED::MED_FULL_INTERLACE); if(MYDEBUG) MESSAGE("VISU_MEDConvertor::LoadField - There is FIELDINT = "<length()); ImportField(anArray, theMesh, diff --git a/src/VISU_I/VISU_CorbaMedConvertor.hxx b/src/VISU_I/VISU_CorbaMedConvertor.hxx index dc848457..5d9079b1 100644 --- a/src/VISU_I/VISU_CorbaMedConvertor.hxx +++ b/src/VISU_I/VISU_CorbaMedConvertor.hxx @@ -44,7 +44,7 @@ namespace VISU typedef std::map TCellsFirstIndex; // key: SALOME_MED::medGeometryElement //--------------------------------------------------------------- - struct TCMEDCoordHolder: TCoordHolder + struct TCMEDCoordHolder: TCoordHolder { virtual const TCoord*