]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkConeSource.xml
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / vtk / src / bbvtkConeSource.xml
index a544b246b1caa03e2583d8c9a7567bfc036d77cd..c789e172c87083486e33867d513a29a5ff40d7f8 100644 (file)
@@ -1,90 +1,57 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
 
-<blackbox name="ConeSource" type="vtkPolyDataAlgorithm">
+<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> 
-<vtkparent>vtkConeSource</vtkparent>
-
-<output 
-  name="Out" 
-  type="vtkPolyData*" 
-  special="vtk output">
-Output Cone
-</output>
-
-<input 
-  name="Radius" 
-  type="double"
-special="vtk parameter">
-Cone Radius
-</input>
-
-<input 
-  name="Resolution" 
-  type="int"
-special="vtk parameter">
-Cone Resolution
-</input>
-
-<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="DirectionX" 
-  type="double">
-  X Direction
-</input>
-
-<input 
-  name="DirectionY" 
-  type="double">
-  Y Direction
-</input>
-
-<input 
-  name="DirectionZ" 
-  type="double">
-  Z Direction
-</input>
-
+<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 (default 1)"/>
+<input name="Height"     type="double"       special="vtk parameter" description="Cone height (default 1)"/>
+<input name="Resolution" type="int"          special="vtk parameter" description="Cone Resolution (default 10)"/>
+<input name="CenterX"    type="double" description="Center X coord (default 0)"/>
+<input name="CenterY"    type="double" description="Center Y coord (default 0)"/>
+<input name="CenterZ"    type="double" description="Center Z coord (default 0)"/>
+<input name="DirectionX" type="double" description="X Direction (default 0)"/>
+<input name="DirectionY" type="double" description="Y Direction (default 0)"/>
+<input name="DirectionZ" type="double" description="Z Direction (default 1)"/>
 
 <process>
 <PRE>
-SetCenter(bbGetInputCenterX(), 
-          bbGetInputCenterY(), 
-          bbGetInputCenterZ());
-
-SetDirection(bbGetInputDirectionX(), 
-          bbGetInputDirectionY(), 
-          bbGetInputDirectionZ());
-                    
-SetResolution(bbGetInputResolution());
-SetRadius((double)bbGetInputRadius());
-Update();
+bbGetVtkObject()->SetCenter(bbGetInputCenterX(), 
+                           bbGetInputCenterY(), 
+                           bbGetInputCenterZ());
+bbGetVtkObject()->SetDirection(bbGetInputDirectionX(), 
+                               bbGetInputDirectionY(),
+                               bbGetInputDirectionZ());                    
+bbGetVtkObject()->SetResolution(bbGetInputResolution());
+bbGetVtkObject()->SetRadius((double)bbGetInputRadius());
+bbGetVtkObject()->SetHeight((double)bbGetInputHeight());
+bbGetVtkObject()->Update();
 </PRE>
 </process>
 
+<defaultValues>
+<PRE>
+  bbSetInputRadius( 1 );
+  bbSetInputHeight( 1 );
+  bbSetInputResolution( 10 );
+  bbSetInputCenterX( 0 );
+  bbSetInputCenterY( 0 );
+  bbSetInputCenterZ( 0 );
+  bbSetInputDirectionX( 0 );
+  bbSetInputDirectionY( 0 );
+  bbSetInputDirectionZ( 1 );
+</PRE>
+</defaultValues>   
+
+
+
 
 </blackbox>