]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkSphereSource.xml
Clean code
[bbtk.git] / packages / vtk / src / bbvtkSphereSource.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3 <blackbox name="SphereSource" type="VTK_PolyDataAlgorithm">
4
5 <author>jpr@creatis.insa-lyon.fr</author>
6 <description><PRE>Creates a Sphere (bbfication of vtkSphereSource)</PRE></description>
7 <category>mesh</category>
8
9 <include>vtkSphereSource.h</include> 
10 <vtkobject>vtkSphereSource</vtkobject>
11
12 <output name="Out" type="vtkPolyData*" description="Output Sphere" special="vtk output"/>
13 <input name="Active" type="bool" description="Active True/False (default True)"/>
14 <input name="CenterX" type="double" description="Center X coord"/>
15 <input name="CenterY" type="double" description="Center Y coord"/>
16 <input name="CenterZ" type="double" description="Center Z coord"/>
17 <input name="PhiResolution" type="int" description="Sphere PhiResolution  (default 10)" special="vtk parameter" />
18 <input name="Radius" type="double" description="Sphere Radius  (default 10)" special="vtk parameter" />
19 <input name="ThetaResolution" type="int" description="Sphere ThetaResolution  (default 10)" special="vtk parameter" />
20
21 <process>
22 <PRE>
23  
24 if (bbGetInputActive()==true)
25 {
26
27         bbGetVtkObject()->SetCenter(bbGetInputCenterX(), bbGetInputCenterY(), bbGetInputCenterZ());
28    //bbGetVtkObject()->SetPhiResolution(bbGetInputPhiResolution());
29    //bbGetVtkObject()->SetThetaResolution(bbGetInputThetaResolution());
30    //bbGetVtkObject()->SetRadius(bbGetInputRadius());
31    //printf("EED box vtk:SphereSource theta=%d  phi=%d\n", bbGetInputThetaResolution() , bbGetInputPhiResolution());
32         bbGetVtkObject()->Update();
33 }
34
35 </PRE>
36 </process>
37
38
39 <defaultValues><PRE>
40   bbSetInputActive(true);
41   bbSetInputRadius(10);
42   bbSetInputCenterX(0);
43   bbSetInputCenterY(0);
44   bbSetInputCenterZ(0);
45   bbSetInputPhiResolution(10);
46   bbSetInputThetaResolution(10);
47 </PRE></defaultValues>
48
49 </blackbox>
50
51