]> Creatis software - bbtk.git/commitdiff
#3004 BBTK Feature New Normal - In box vtk:MetaImageWriter Compression option
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 11 Aug 2016 13:59:33 +0000 (15:59 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 11 Aug 2016 13:59:33 +0000 (15:59 +0200)
packages/vtk/src/bbvtkMetaImageWriter.xml

index cb55daadcdf662cc2c0b85e0a0dbeb5a3a56fa33..0a09e3c92715a20f4a470c6441cc713a7ef1fa8c 100644 (file)
@@ -12,6 +12,7 @@
 
 <input name="Filename"  type="std::string"   nature="file name"   description="Name of the file to write"/>  
 <input name="In" type="vtkImageData*" description="Input image" />
+<input name="Compression" type="bool" description="default(false)   true/false" />
  
  <process><PRE>
    vtkMetaImageWriter* w = vtkMetaImageWriter::New();
@@ -32,7 +33,7 @@
   if (bbGetInputIn()!=NULL)
   {
      w->SetInput(bbGetInputIn());
-     w->SetCompression(false);  // JPR
+     w->SetCompression(bbGetInputCompression());  
      w->SetFileDimensionality(bbGetInputIn()->GetDataDimension()); // NTU
      std::string userGivenName = bbGetInputFilename();
      if (userGivenName.substr(userGivenName.size()-4) != ".mhd")  //JPR
 
    w->Delete();
  </PRE></process>
+
+ <defaultValues>
+  <PRE>
+    bbSetInputCompression(false);
+  </PRE>
+  </defaultValues>
+
+
 </blackbox>