]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL9626: Incorrect default values for Arrange presentations (from Animation db,...
authorjfa <jfa@opencascade.com>
Thu, 28 Jul 2005 12:07:29 +0000 (12:07 +0000)
committerjfa <jfa@opencascade.com>
Thu, 28 Jul 2005 12:07:29 +0000 (12:07 +0000)
src/VISU_I/VISU_TimeAnimation.cxx

index 6710fff559aeef4946cf798f8d38e862043c5088..d75e484538dbb14e816212f7055ae95a4e555d96 100644 (file)
@@ -111,24 +111,8 @@ void VISU_TimeAnimation::addField (_PTR(SObject) theField)
 //************************************************************************
 void VISU_TimeAnimation::addField (SALOMEDS::SObject_ptr theField)
 {
-  FieldData aNewData;
   _PTR(SObject) aField = VISU::GetClientSObject(theField, myStudy);
-  aNewData.myField = aField;
-  aNewData.myNbFrames = 0;
-  aNewData.myPrsType = VISU::TSCALARMAP;
-  VISU::Storable::TRestoringMap aMap = getMapOfValue(aNewData.myField);
-  aNewData.myNbTimes = VISU::Storable::FindValue(aMap,"myNbTimeStamps").toLong();
-  myFieldsLst.append(aNewData);
-
-  //find Min/Max timestamps
-  if ((myTimeMin == 0) && (myTimeMax == 0)) {
-    _PTR(ChildIterator) anIter = myStudy->NewChildIterator(aField);
-    anIter->Next(); // First is reference on support
-    myTimeMin = getTimeValue(anIter->Value());
-    for(; anIter->More(); anIter->Next()) {
-      myTimeMax = getTimeValue(anIter->Value());
-    }
-  }
+  addField(aField);
 }