From: epa Date: Thu, 7 Dec 2006 12:36:38 +0000 (+0000) Subject: Add automatic fitall in plot2d after edit the cutlines X-Git-Tag: V3_2_4~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cee480717ea544f9904c4f5bdeeae0844835f90;p=modules%2Fvisu.git Add automatic fitall in plot2d after edit the cutlines --- diff --git a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx index 39a0c9fc..a2b28588 100644 --- a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx @@ -349,7 +349,6 @@ int VisuGUI_CutLinesDlg::storeToPrsObject (VISU::CutLines_i* thePrs) } if (myAllCurvesInvertedCheck->isChecked()) thePrs->SetAllCurvesInverted(true); - thePrs->SetUseAbsoluteLength(myUseAbsoluteLengthCheck->isChecked()); return 1; } diff --git a/src/VISUGUI/VisuGUI_Prs3dTools.h b/src/VISUGUI/VisuGUI_Prs3dTools.h index a58eb941..7557683f 100644 --- a/src/VISUGUI/VisuGUI_Prs3dTools.h +++ b/src/VISUGUI/VisuGUI_Prs3dTools.h @@ -32,6 +32,8 @@ #include "VisuGUI_ViewTools.h" #include "VisuGUI_DialogRunner.h" +#include + #include namespace VISU diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index f3326d1e..473ac269 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -1005,6 +1005,7 @@ namespace VISU } } aPlot->Repaint(); + aPlot->fitAll(); } void diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 98e197c8..bea5a546 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -943,6 +943,9 @@ namespace VISU if(!aServant->IsDefault()) theStr<GetBasePlanePosition()<<")"<IsUseAbsoluteLength(); + theStr<GetNbLines(); theStr<