]> Creatis software - crea.git/commitdiff
add an xml source, just to see...
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 22 Jul 2011 15:42:14 +0000 (15:42 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 22 Jul 2011 15:42:14 +0000 (15:42 +0000)
appli/creaNewProject/NewProject/lib/mySampleLib/mySphereSource.xml [new file with mode: 0644]

diff --git a/appli/creaNewProject/NewProject/lib/mySampleLib/mySphereSource.xml b/appli/creaNewProject/NewProject/lib/mySampleLib/mySphereSource.xml
new file mode 100644 (file)
index 0000000..84cc3d1
--- /dev/null
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+
+
+<blackbox name="ConeSource" type="VTK_PolyDataAlgorithm">
+
+<author>jpr at creatis.insa-lyon.fr</author>
+<description><PRE>Creates a Cone (bbfication of vtkConeSource)</PRE></description>
+<category>mesh</category>
+
+<include>vtkConeSource.h</include> 
+<vtkobject>vtkConeSource</vtkobject>
+
+<output name="Out"       type="vtkPolyData*" special="vtk output"    description="Output Cone"/>
+<input name="Radius"     type="double"       special="vtk parameter" description="Cone Radius"/>
+<input name="Resolution" type="int"          special="vtk parameter" description="Cone Resolution"/>
+<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="DirectionX" type="double" description="X Direction"/>
+<input name="DirectionY" type="double" description="Y Direction"/>
+<input name="DirectionZ" type="double" description="Z Direction"/>
+
+<process>
+<PRE>
+bbGetVtkObject()->SetCenter(bbGetInputCenterX(), 
+                           bbGetInputCenterY(), 
+                           bbGetInputCenterZ());
+
+bbGetVtkObject()->SetDirection(bbGetInputDirectionX(), 
+                               bbGetInputDirectionY(),
+                               bbGetInputDirectionZ());
+                    
+bbGetVtkObject()->SetResolution(bbGetInputResolution());
+bbGetVtkObject()->SetRadius((double)bbGetInputRadius());
+bbGetVtkObject()->Update();
+</PRE>
+</process>
+
+
+</blackbox>
+
+