]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkSphereSource.xml
* Created vtk package
[bbtk.git] / packages / vtk / src / bbvtkSphereSource.xml
diff --git a/packages/vtk/src/bbvtkSphereSource.xml b/packages/vtk/src/bbvtkSphereSource.xml
new file mode 100644 (file)
index 0000000..483897f
--- /dev/null
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+
+<blackbox name="SphereSource" type="vtkPolyDataAlgorithm">
+
+<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>
+
+<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>
+
+<process>
+<PRE>
+SetCenter(bbGetInputCenterX(), 
+          bbGetInputCenterY(), 
+          bbGetInputCenterZ());
+SetPhiResolution(bbGetInputPhiResolution());
+SetRadius((double)bbGetInputRadius());
+SetThetaResolution(bbGetInputThetaResolution());
+Update();
+</PRE>
+</process>
+
+
+</blackbox>
+
+