]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkAppendPolyData.xml
Clean code
[bbtk.git] / packages / vtk / src / bbvtkAppendPolyData.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3
4 <blackbox name="AppendPolyData" type="VTK_PolyDataAlgorithm">
5
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>
9
10 <include>vtkAppendPolyData.h</include> 
11 <vtkobject>vtkAppendPolyData</vtkobject>
12
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"/>
21
22 <process>
23 <PRE>
24
25
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]);
36         }
37   }
38 #else
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]);
47         }
48   }
49 #endif
50
51    
52   bbGetVtkObject()->Update();
53 </PRE>
54 </process>
55
56 <defaultValues>
57 <PRE>
58   bbSetInputIn1((vtkPolyData *)0);
59   bbSetInputIn2((vtkPolyData *)0);
60   bbSetInputIn3((vtkPolyData *)0);
61   bbSetInputIn4((vtkPolyData *)0);
62   bbSetInputIn5((vtkPolyData *)0);
63   bbSetOutputOut((vtkPolyData *)0);
64 </PRE>
65 </defaultValues>   
66
67
68 </blackbox>
69
70