]> Creatis software - crea.git/blob - appli/creaNewProject/NewProject/lib/mySampleLib/mySphereSource.xml
Feature #1763
[crea.git] / appli / creaNewProject / NewProject / lib / mySampleLib / mySphereSource.xml
1 <!--
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 #
8 #  This software is governed by the CeCILL-B license under French law and 
9 #  abiding by the rules of distribution of free software. You can  use, 
10 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
11 #  license as circulated by CEA, CNRS and INRIA at the following URL 
12 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
13 #  or in the file LICENSE.txt.
14 #
15 #  As a counterpart to the access to the source code and  rights to copy,
16 #  modify and redistribute granted by the license, users are provided only
17 #  with a limited warranty  and the software's author,  the holder of the
18 #  economic rights,  and the successive licensors  have only  limited
19 #  liability. 
20 #
21 #  The fact that you are presently reading this means that you have had
22 #  knowledge of the CeCILL-B license and that you accept its terms.
23 # ------------------------------------------------------------------------ -->
24 <?xml version="1.0" encoding="iso-8859-1"?>
25
26
27 <blackbox name="ConeSource" type="VTK_PolyDataAlgorithm">
28
29 <author>jpr at creatis.insa-lyon.fr</author>
30 <description><PRE>Creates a Cone (bbfication of vtkConeSource)</PRE></description>
31 <category>mesh</category>
32
33 <include>vtkConeSource.h</include> 
34 <vtkobject>vtkConeSource</vtkobject>
35
36 <output name="Out"       type="vtkPolyData*" special="vtk output"    description="Output Cone"/>
37 <input name="Radius"     type="double"       special="vtk parameter" description="Cone Radius"/>
38 <input name="Resolution" type="int"          special="vtk parameter" description="Cone Resolution"/>
39 <input name="CenterX"    type="double" description="Center X coord"/>
40 <input name="CenterY"    type="double" description="Center Y coord"/>
41 <input name="CenterZ"    type="double" description="Center Z coord"/>
42 <input name="DirectionX" type="double" description="X Direction"/>
43 <input name="DirectionY" type="double" description="Y Direction"/>
44 <input name="DirectionZ" type="double" description="Z Direction"/>
45
46 <process>
47 <PRE>
48 bbGetVtkObject()->SetCenter(bbGetInputCenterX(), 
49                            bbGetInputCenterY(), 
50                            bbGetInputCenterZ());
51
52 bbGetVtkObject()->SetDirection(bbGetInputDirectionX(), 
53                                bbGetInputDirectionY(),
54                                bbGetInputDirectionZ());
55                     
56 bbGetVtkObject()->SetResolution(bbGetInputResolution());
57 bbGetVtkObject()->SetRadius((double)bbGetInputRadius());
58 bbGetVtkObject()->Update();
59 </PRE>
60 </process>
61
62
63 </blackbox>
64
65