From: Eduardo DAVILA Date: Fri, 30 Oct 2015 17:07:44 +0000 (+0100) Subject: #2740 BBTK Feature New Normal - Add to the box PolyDataWrite the ascii or binary... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9b8363e1fd3789c1f7cc7256fc763bab3c6d100a;p=bbtk.git #2740 BBTK Feature New Normal - Add to the box PolyDataWrite the ascii or binary option --- diff --git a/packages/vtk/src/bbvtkPolyDataWriter.xml b/packages/vtk/src/bbvtkPolyDataWriter.xml index 4378767..a2a583c 100644 --- a/packages/vtk/src/bbvtkPolyDataWriter.xml +++ b/packages/vtk/src/bbvtkPolyDataWriter.xml @@ -12,12 +12,19 @@ +
 
      printf("EED PolyDataWriter::Process() %s\n", bbGetInputFilename().c_str());
 
    vtkPolyDataWriter* w = vtkPolyDataWriter::New();
+   if (bbGetInputFileType()==0) 
+	{
+		w->SetFileTypeToASCII();
+	} else {
+		w->SetFileTypeToBinary();
+	}
    bbGetInputIn()->Update();
    w->SetInput(bbGetInputIn());
    w->SetFileName(bbGetInputFilename().c_str());
@@ -25,6 +32,21 @@
    w->Write();
    w->Delete();
  
+ + +
+	bbSetInputFileType(0);
+  
+ +
+  
+ +
+  
+ + + diff --git a/packages/wx/src/bbwxLayoutLine.cxx b/packages/wx/src/bbwxLayoutLine.cxx index 84f9148..5c5b18d 100644 --- a/packages/wx/src/bbwxLayoutLine.cxx +++ b/packages/wx/src/bbwxLayoutLine.cxx @@ -113,14 +113,14 @@ namespace bbwx wxWindow* cw; if ((cw=bbCreateWidgetOfInput("Widget1",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); - if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); - if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); - if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); - if ((cw=bbCreateWidgetOfInput("Widget5",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); - if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); - if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); - if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); - if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); + if ((cw=bbCreateWidgetOfInput("Widget2",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); + if ((cw=bbCreateWidgetOfInput("Widget3",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); + if ((cw=bbCreateWidgetOfInput("Widget4",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); + if ((cw=bbCreateWidgetOfInput("Widget5",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); + if ((cw=bbCreateWidgetOfInput("Widget6",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); + if ((cw=bbCreateWidgetOfInput("Widget7",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); + if ((cw=bbCreateWidgetOfInput("Widget8",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); + if ((cw=bbCreateWidgetOfInput("Widget9",w)) != 0) sizer->Add(cw, 1, wxEXPAND, 0); /* TryInsertWindow(w,bbGetInputWidget1(),sizer); TryInsertWindow(w,bbGetInputWidget2(),sizer);