]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkSphereSource.xml
270713136d9ef33c16a168fbaa1bfcc9bba64c5b
[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="CenterX" type="double" description="Center X coord"/>
14 <input name="CenterY" type="double" description="Center Y coord"/>
15 <input name="CenterZ" type="double" description="Center Z coord"/>
16 <input name="PhiResolution" type="int" description="Sphere PhiResolution" special="vtk parameter" />
17 <input name="Radius" type="double" description="Sphere Radius" special="vtk parameter" />
18 <input name="ThetaResolution" type="int" description="Sphere ThetaResolution" special="vtk parameter" />
19
20 <process>
21 <PRE>
22  
23
24 bbGetVtkObject()->SetCenter(bbGetInputCenterX(), 
25           bbGetInputCenterY(), 
26           bbGetInputCenterZ());
27 //bbGetVtkObject()->SetPhiResolution(bbGetInputPhiResolution());
28 //bbGetVtkObject()->SetThetaResolution(bbGetInputThetaResolution());
29 //bbGetVtkObject()->SetRadius(bbGetInputRadius());
30 //printf("EED box vtk:SphereSource theta=%d  phi=%d\n", bbGetInputThetaResolution() , bbGetInputPhiResolution());
31
32 bbGetVtkObject()->Update();
33 </PRE>
34 </process>
35
36
37 </blackbox>
38
39