]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Merge from BR_WIN_INDUS_514 13/11/2010 before_mergefrom_PHASE_25_BR_14Nov10 mergefrom_BR_WIN_INDUS_514_13Nov10
authorvsr <vsr@opencascade.com>
Sat, 13 Nov 2010 11:11:54 +0000 (11:11 +0000)
committervsr <vsr@opencascade.com>
Sat, 13 Nov 2010 11:11:54 +0000 (11:11 +0000)
src/CONVERTOR/VISU_MedConvertor.cxx
src/CONVERTOR/VISU_Structures_impl.cxx
src/CONVERTOR/VISU_Structures_impl.hxx
src/VISU_I/VISU_Result_i.cc

index 5b03e784ab5fdd7ecb3386c46761626dfcd7fea1..060e6e355f4bf6d40d5e0bfd1a25520234750e33 100644 (file)
@@ -3034,11 +3034,13 @@ FillValForTime(MED::SharedPtr<TimeStampValueType> theTimeStampValue,
                VISU::PMEDValForTime theValForTime,
                VISU::PMEDField theField)
 {
+  if(theValForTime->myIsFilled) 
+    return;
   theField->myDataSize = 0;
   TInt aNbComp = theField->myNbComp;
 
   VISU::TGeom2SubProfile::const_iterator anIter = theGeom2SubProfile.begin();
-  for(; anIter != theGeom2SubProfile.end(); anIter++){
+  for(; anIter != theGeom2SubProfile.end(); anIter++) {
     VISU::EGeometry aEGeom = anIter->first;
     VISU::PMEDSubProfile aSubProfile(anIter->second);
 
@@ -3066,6 +3068,7 @@ FillValForTime(MED::SharedPtr<TimeStampValueType> theTimeStampValue,
       aVMeshValue.reset(aMeshValue);
     }
   }
+  theValForTime->myIsFilled = true;
 }
 
 //---------------------------------------------------------------
index 6830003fc900122b5c3a515a2e82ee29aff87e13..a9416fd09f2a78559a22024d80d0fa532e75e809 100644 (file)
@@ -1522,7 +1522,8 @@ namespace VISU
   TValForTimeImpl
   ::TValForTimeImpl():
     myGaussPtsIDFilter(new TGaussPtsIDFilter()),
-    myUnstructuredGridIDMapper(new TUnstructuredGridIDMapperImpl())
+    myUnstructuredGridIDMapper(new TUnstructuredGridIDMapperImpl()),
+       myIsFilled(false)
   {}
 
   const PMeshValue&
index e465ef26ba904dae477211a6e3c4150ac0293cde..5ae6a2f5f1abcf180918b879acd17df2fb5a5f7a 100644 (file)
@@ -875,6 +875,7 @@ namespace VISU
     PUnstructuredGridIDMapperImpl myUnstructuredGridIDMapper; //!< Keep VTK representation for ordinary mesh and data
     TGeom2Value myGeom2Value; //!< Keep value that is assigned to the mesh
     TGeom2NbGauss myGeom2NbGauss; //!< Keep number of Gauss Points
+    bool myIsFilled;              //!< Keep the status of the TValForTime (true - already filled, false - not filled);
    
     TValForTimeImpl();
 
index a0315f5ccc663d48a077daffafa4bb3d6d617b78..d2da6f153cd240a60a64c4b33b86a01341fa9133 100644 (file)
@@ -769,6 +769,13 @@ VISU::Result_i
 
   try {
     myFileName = VISU::Storable::FindValue(theMap, "myName").toLatin1().data();
+#ifdef WIN32
+    for (int i = 0; i < myFileName.length(); i++)
+    {
+      if (myFileName[i] == ':')
+       myFileName[i] = '_';
+    }
+#endif
     SetInitFileName(VISU::Storable::FindValue(theMap, "myInitFileName").toLatin1().data());
     
     SALOMEDS::SObject_var aRefSObj, aTargetRefSObj;