]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkPolyDataWriter.xml
#2740 BBTK Feature New Normal - Add to the box PolyDataWrite the ascii or binary...
[bbtk.git] / packages / vtk / src / bbvtkPolyDataWriter.xml
index 43787670b45d8cfbb570b2a61eb15979502f8b95..a2a583cd97cf7236334917fd7d5105d26d209792 100644 (file)
 
 <input  name="Filename"  type="std::string"   nature="file name"   description="Name of the file to write"/>  
 <input name="In" type="vtkPolyData*" description="Input mesh" />
+<input name="FileType" type="int" description="0=Ascii (default), 1=Binary" />
  
  <process><PRE>
 
      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());
    w->Write();
    w->Delete();
  </PRE></process>
+
+ <!--========================================================================
+    CONSTRUCTORS / DESTRUCTORS (OPTIONAL)  -->
+  <defaultValues><PRE>
+       bbSetInputFileType(0);
+  </PRE></defaultValues>    
+  
+  <initializeProcessing><PRE>
+  </PRE></initializeProcessing>    
+  
+  <finalizeProcessing><PRE>
+  </PRE></finalizeProcessing>    
+  <!--=====================================================================-->
+
+
 </blackbox>