]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL18069 - 4.x: wrong highlight of the correct index in "Indices" field:
authorouv <ouv@opencascade.com>
Wed, 28 Nov 2007 11:38:49 +0000 (11:38 +0000)
committerouv <ouv@opencascade.com>
Wed, 28 Nov 2007 11:38:49 +0000 (11:38 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx

index 1435e8f81fafa77076827b562ece7b8ba39a2fbb..de85c27485cd6cb2c6dd2e55327aa79368133b7b 100644 (file)
@@ -670,6 +670,9 @@ enum PrsComboItem {
 //------------------------------------------------------------------------
 void SetupDlg::onClose()
 {
+  //for (int i = 0; i < myAnimator->getNbFields(); i++)
+  //  myAnimator->clearData(myAnimator->getFieldData(i));
+
   if( !myUseRangeBox->isChecked() )
     myAnimator->setAnimationRange( 0, 0 );
   
@@ -1106,6 +1109,7 @@ void SetupDlg::onValuesChanged()
     anIndices.truncate( anIndices.length() - 1 );
 
   myIndices->blockSignals( true );
+  myIndices->setPaletteForegroundColor( Qt::black );
   myIndices->setText( anIndices );
   myIndices->blockSignals( false );
 
@@ -1504,6 +1508,23 @@ void VisuGUI_TimeAnimationDlg::createFrames()
     if (myAnimator->getFieldData(i).myPrs.empty())
       myAnimator->generatePresentations(i);
   }
+  /*
+  for (int aFieldId = 0; aFieldId < myAnimator->getNbFields(); aFieldId++) {
+    FieldData& aFieldData = myAnimator->getFieldData(aFieldId);
+    if( aFieldData.myPrs.empty() )
+      continue;
+
+    VISU::ColoredPrs3d_i* aPrs3d = dynamic_cast<VISU::ColoredPrs3d_i*>(aFieldData.myPrs[0]);
+    for (long aFrameId = 0; aFrameId < aFieldData.myNbFrames; aFrameId++) {
+      VISU::ColoredPrs3d_i* aColoredPrs3d = aFieldData.myPrs[aFrameId];
+      aColoredPrs3d->SameAs(aPrs3d);
+      if ( aFrameId != 0 && myAnimator->getAnimationMode() == VISU::Animation::SUCCESSIVE ) {
+       std::string aTitle = aColoredPrs3d->GetCTitle();
+       aColoredPrs3d->SetTitle(aTitle.c_str());
+      }
+    }
+  }
+  */
   if (myAnimator->getNbFrames() == 0) {
     myPlayFrame->setEnabled(false);
     c.suspend();