]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkConeSource.xml
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / vtk / src / bbvtkConeSource.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3
4 <blackbox name="ConeSource" type="VTK_PolyDataAlgorithm">
5
6 <author>jpr at creatis.insa-lyon.fr</author>
7 <description><PRE>Creates a Cone (bbfication of vtkConeSource)</PRE></description>
8 <category>mesh</category>
9
10 <include>vtkConeSource.h</include> 
11 <vtkobject>vtkConeSource</vtkobject>
12
13 <output name="Out"       type="vtkPolyData*" special="vtk output"    description="Output Cone"/>
14 <input name="Radius"     type="double"       special="vtk parameter" description="Cone Radius (default 1)"/>
15 <input name="Height"     type="double"       special="vtk parameter" description="Cone height (default 1)"/>
16 <input name="Resolution" type="int"          special="vtk parameter" description="Cone Resolution (default 10)"/>
17 <input name="CenterX"    type="double" description="Center X coord (default 0)"/>
18 <input name="CenterY"    type="double" description="Center Y coord (default 0)"/>
19 <input name="CenterZ"    type="double" description="Center Z coord (default 0)"/>
20 <input name="DirectionX" type="double" description="X Direction (default 0)"/>
21 <input name="DirectionY" type="double" description="Y Direction (default 0)"/>
22 <input name="DirectionZ" type="double" description="Z Direction (default 1)"/>
23
24 <process>
25 <PRE>
26 bbGetVtkObject()->SetCenter(bbGetInputCenterX(), 
27                            bbGetInputCenterY(), 
28                            bbGetInputCenterZ());
29 bbGetVtkObject()->SetDirection(bbGetInputDirectionX(), 
30                                bbGetInputDirectionY(),
31                                bbGetInputDirectionZ());                    
32 bbGetVtkObject()->SetResolution(bbGetInputResolution());
33 bbGetVtkObject()->SetRadius((double)bbGetInputRadius());
34 bbGetVtkObject()->SetHeight((double)bbGetInputHeight());
35 bbGetVtkObject()->Update();
36 </PRE>
37 </process>
38
39 <defaultValues>
40 <PRE>
41   bbSetInputRadius( 1 );
42   bbSetInputHeight( 1 );
43   bbSetInputResolution( 10 );
44   bbSetInputCenterX( 0 );
45   bbSetInputCenterY( 0 );
46   bbSetInputCenterZ( 0 );
47   bbSetInputDirectionX( 0 );
48   bbSetInputDirectionY( 0 );
49   bbSetInputDirectionZ( 1 );
50 </PRE>
51 </defaultValues>   
52
53
54
55
56 </blackbox>
57
58