1 <?xml version="1.0" encoding="iso-8859-1"?>
3 <blackbox name="PolyDataWriter" type="VTK_PolyDataAlgorithm">
5 <author>jp r at creatis.insa-lyon.fr</author>
6 <description><PRE>Writes .vtk mesh format (bbfication of vtkPolyDataWriter)</PRE></description>
7 <category>mesh;read/write</category>
9 <include>vtkPolyDataWriter.h</include>
10 <include>vtkPolyData.h</include>
11 <vtkobject>vtkPolyDataWriter</vtkobject>
13 <input name="Filename" type="std::string" nature="file name" description="Name of the file to write"/>
14 <input name="In" type="vtkPolyData*" description="Input mesh" />
15 <input name="FileType" type="int" description="0=Ascii (default), 1=Binary" />
19 vtkPolyDataWriter* w = vtkPolyDataWriter::New();
20 if (bbGetInputFileType()==0)
22 w->SetFileTypeToASCII();
24 w->SetFileTypeToBinary();
27 //EED 2017-01-01 Migration VTK7
28 #if VTK_MAJOR_VERSION <= 5
29 bbGetInputIn()->Update();
30 w->SetInput(bbGetInputIn());
32 w->SetInputData(bbGetInputIn());
35 w->SetFileName(bbGetInputFilename().c_str());
41 <!--========================================================================
42 CONSTRUCTORS / DESTRUCTORS (OPTIONAL) -->
44 bbSetInputFileType(0);
45 </PRE></defaultValues>
47 <initializeProcessing><PRE>
48 </PRE></initializeProcessing>
50 <finalizeProcessing><PRE>
51 </PRE></finalizeProcessing>
52 <!--=====================================================================-->