1 <?xml version="1.0" encoding="iso-8859-1"?>
4 <blackbox name="AppendPolyData" type="VTK_PolyDataAlgorithm">
6 <author>jpr at creatis.insa-lyon.fr</author>
7 <description><PRE>Appends one of more polygonal datasets into a single polygonal dataset</PRE></description>
8 <category>mesh</category>
10 <include>vtkAppendPolyData.h</include>
11 <vtkobject>vtkAppendPolyData</vtkobject>
13 <output name="Out" type="vtkPolyData*" special="vtk output" description="Output Mesh"/>
14 <input name="In1" type="vtkPolyData *" description="PolyData 1"/>
15 <input name="In2" type="vtkPolyData *" description="PolyData 2"/>
16 <input name="In3" type="vtkPolyData *" description="PolyData 3"/>
17 <input name="In4" type="vtkPolyData *" description="PolyData 4"/>
18 <input name="In5" type="vtkPolyData *" description="PolyData 5"/>
19 <typedef><PRE>typedef std::vector<vtkPolyData *> InputVector;</PRE></typedef>
20 <input name="InVector" type="InputVector" description="PolyData vector"/>
26 //EED 2017-01-01 Migration VTK7
27 #if VTK_MAJOR_VERSION <= 5
28 bbGetVtkObject()->SetInput(bbGetInputIn1());
29 bbGetVtkObject()->SetInput(bbGetInputIn2());
30 bbGetVtkObject()->SetInput(bbGetInputIn3());
31 bbGetVtkObject()->SetInput(bbGetInputIn4());
32 bbGetVtkObject()->SetInput(bbGetInputIn5());
33 if(!bbGetInputInVector().empty()){
34 for(int i = 0; i < (int) bbGetInputInVector().size(); i++){
35 bbGetVtkObject()->SetInput(bbGetInputInVector()[i]);
39 bbGetVtkObject()->AddInputData(bbGetInputIn1());
40 bbGetVtkObject()->AddInputData(bbGetInputIn2());
41 bbGetVtkObject()->AddInputData(bbGetInputIn3());
42 bbGetVtkObject()->AddInputData(bbGetInputIn4());
43 bbGetVtkObject()->AddInputData(bbGetInputIn5());
44 if(!bbGetInputInVector().empty()){
45 for(int i = 0; i < (int) bbGetInputInVector().size(); i++){
46 bbGetVtkObject()->AddInputData(bbGetInputInVector()[i]);
52 bbGetVtkObject()->Update();
58 bbSetInputIn1((vtkPolyData *)0);
59 bbSetInputIn2((vtkPolyData *)0);
60 bbSetInputIn3((vtkPolyData *)0);
61 bbSetInputIn4((vtkPolyData *)0);
62 bbSetInputIn5((vtkPolyData *)0);
63 bbSetOutputOut((vtkPolyData *)0);