]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Add automatic fitall in plot2d after edit the cutlines
authorepa <epa@opencascade.com>
Thu, 7 Dec 2006 12:36:38 +0000 (12:36 +0000)
committerepa <epa@opencascade.com>
Thu, 7 Dec 2006 12:36:38 +0000 (12:36 +0000)
src/VISUGUI/VisuGUI_CutLinesDlg.cxx
src/VISUGUI/VisuGUI_Prs3dTools.h
src/VISUGUI/VisuGUI_Tools.cxx
src/VISU_I/VISU_DumpPython.cc

index 39a0c9fc8da4cb8f569799337cfdf82a2283e6be..a2b28588c5bdc90ac58fb4e7d4e38dad7fb9bb45 100644 (file)
@@ -349,7 +349,6 @@ int VisuGUI_CutLinesDlg::storeToPrsObject (VISU::CutLines_i* thePrs)
   }
   if (myAllCurvesInvertedCheck->isChecked())
     thePrs->SetAllCurvesInverted(true);
-
   thePrs->SetUseAbsoluteLength(myUseAbsoluteLengthCheck->isChecked());
   return 1;
 }
index a58eb941c950ece2944c328f91c7417e754fc7ca..7557683f6024b313ac664bb633029bb7e1f0f849 100644 (file)
@@ -32,6 +32,8 @@
 #include "VisuGUI_ViewTools.h"
 #include "VisuGUI_DialogRunner.h"
 
+#include <SPlot2d_ViewWindow.h>
+
 #include <vtkRenderer.h>
 
 namespace VISU
index f3326d1e71048bcafdc22acacb8f31b958356198..473ac26938f4cc15663c1649506d11fac7bcc609 100644 (file)
@@ -1005,6 +1005,7 @@ namespace VISU
       }
     }
     aPlot->Repaint();
+    aPlot->fitAll();
   }
 
   void
index 98e197c8e0b5d24702a30b4e21eb73ba68bba95c..bea5a546322b531a21aab00afe1b08704f04b07a 100644 (file)
@@ -943,6 +943,9 @@ namespace VISU
            if(!aServant->IsDefault())
              theStr<<thePrefix<<aName<<".SetBasePlanePosition("<<aServant->GetBasePlanePosition()<<")"<<endl;
 
+            CORBA::Boolean aUseAbsLength = aServant->IsUseAbsoluteLength();
+           theStr<<thePrefix<<aName<<".SetUseAbsoluteLength("<<aUseAbsLength<<")"<<endl;
+           
            CORBA::Long aNbLines = aServant->GetNbLines();
            theStr<<thePrefix<<aName<<".SetNbLines("<<aNbLines<<")"<<endl;
            for(CORBA::Long anId = 0; anId < aNbLines; anId++){