From 9cee480717ea544f9904c4f5bdeeae0844835f90 Mon Sep 17 00:00:00 2001 From: epa Date: Thu, 7 Dec 2006 12:36:38 +0000 Subject: [PATCH] Add automatic fitall in plot2d after edit the cutlines --- src/VISUGUI/VisuGUI_CutLinesDlg.cxx | 1 - src/VISUGUI/VisuGUI_Prs3dTools.h | 2 ++ src/VISUGUI/VisuGUI_Tools.cxx | 1 + src/VISU_I/VISU_DumpPython.cc | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) 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<