1 <?xml version="1.0" encoding="iso-8859-1"?>
4 <blackbox name="ConeSource" type="VTK_PolyDataAlgorithm">
6 <author>jpr at creatis.insa-lyon.fr</author>
7 <description><PRE>Creates a Cone (bbfication of vtkConeSource)</PRE></description>
8 <category>mesh</category>
10 <include>vtkConeSource.h</include>
11 <vtkobject>vtkConeSource</vtkobject>
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)"/>
26 bbGetVtkObject()->SetCenter(bbGetInputCenterX(),
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();
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 );