<?xml version="1.0" encoding="iso-8859-1"?>
-<blackbox name="SphereSource" type="vtkPolyDataAlgorithm">
+<blackbox name="SphereSource" type="VTK_PolyDataAlgorithm">
<author>jpr@creatis.insa-lyon.fr</author>
<description><PRE>Creates a Sphere (bbfication of vtkSphereSource)</PRE></description>
<category>mesh</category>
<include>vtkSphereSource.h</include>
-<vtkparent>vtkSphereSource</vtkparent>
+<vtkobject>vtkSphereSource</vtkobject>
-<output
- name="Out"
- type="vtkPolyData*"
- special="vtk output">
-Output Sphere
-</output>
-
-<input
- name="CenterX"
- type="double">
-Center X coord
-</input>
-
-<input
- name="CenterY"
- type="double">
-Center Y coord
-</input>
-
-<input
- name="CenterZ"
- type="double">
-Center Z coord
-</input>
-
-<input
- name="PhiResolution"
- type="int"
- special="vtk parameter">
-Sphere PhiResolution
-</input>
-
-<input
- name="Radius"
- type="double"
-special="vtk parameter">
-Sphere Radius
-</input>
-
-<input
- name="ThetaResolution"
- type="int"
-special="vtk parameter">
-Sphere ThetaResolution
-</input>
+<output name="Out" type="vtkPolyData*" description="Output Sphere" special="vtk output"/>
+<input name="Active" type="bool" description="Active True/False (default True)"/>
+<input name="CenterX" type="double" description="Center X coord"/>
+<input name="CenterY" type="double" description="Center Y coord"/>
+<input name="CenterZ" type="double" description="Center Z coord"/>
+<input name="PhiResolution" type="int" description="Sphere PhiResolution" special="vtk parameter" />
+<input name="Radius" type="double" description="Sphere Radius" special="vtk parameter" />
+<input name="ThetaResolution" type="int" description="Sphere ThetaResolution" special="vtk parameter" />
<process>
<PRE>
-SetCenter(bbGetInputCenterX(),
- bbGetInputCenterY(),
- bbGetInputCenterZ());
-SetPhiResolution(bbGetInputPhiResolution());
-SetRadius((double)bbGetInputRadius());
-SetThetaResolution(bbGetInputThetaResolution());
-Update();
+
+if (bbGetInputActive()==true)
+{
+
+ bbGetVtkObject()->SetCenter(bbGetInputCenterX(), bbGetInputCenterY(), bbGetInputCenterZ());
+ //bbGetVtkObject()->SetPhiResolution(bbGetInputPhiResolution());
+ //bbGetVtkObject()->SetThetaResolution(bbGetInputThetaResolution());
+ //bbGetVtkObject()->SetRadius(bbGetInputRadius());
+ //printf("EED box vtk:SphereSource theta=%d phi=%d\n", bbGetInputThetaResolution() , bbGetInputPhiResolution());
+ bbGetVtkObject()->Update();
+}
+
</PRE>
</process>
+<defaultValues><PRE>
+ bbSetInputActive(true);
+</PRE></defaultValues>
+
</blackbox>