]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkSphereSource.xml
#2445 BBTK Feature New Normal - Block Propogation pipeline MagicBox
[bbtk.git] / packages / vtk / src / bbvtkSphereSource.xml
index 270713136d9ef33c16a168fbaa1bfcc9bba64c5b..463fca033660643d7873fc5932cd6c315c2c7aaa 100644 (file)
@@ -10,6 +10,7 @@
 <vtkobject>vtkSphereSource</vtkobject>
 
 <output name="Out" type="vtkPolyData*" description="Output Sphere" special="vtk output"/>
+<input name="Active" type="bool" description="Active True/False (default True)"/>
 <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"/>
 <process>
 <PRE>
  
+if (bbGetInputActive()==true)
+{
 
-bbGetVtkObject()->SetCenter(bbGetInputCenterX(), 
-          bbGetInputCenterY(), 
-          bbGetInputCenterZ());
-//bbGetVtkObject()->SetPhiResolution(bbGetInputPhiResolution());
-//bbGetVtkObject()->SetThetaResolution(bbGetInputThetaResolution());
-//bbGetVtkObject()->SetRadius(bbGetInputRadius());
-//printf("EED box vtk:SphereSource theta=%d  phi=%d\n", bbGetInputThetaResolution() , bbGetInputPhiResolution());
+       bbGetVtkObject()->SetCenter(bbGetInputCenterX(), bbGetInputCenterY(), bbGetInputCenterZ());
+   //bbGetVtkObject()->SetPhiResolution(bbGetInputPhiResolution());
+   //bbGetVtkObject()->SetThetaResolution(bbGetInputThetaResolution());
+   //bbGetVtkObject()->SetRadius(bbGetInputRadius());
+   //printf("EED box vtk:SphereSource theta=%d  phi=%d\n", bbGetInputThetaResolution() , bbGetInputPhiResolution());
+       bbGetVtkObject()->Update();
+}
 
-bbGetVtkObject()->Update();
 </PRE>
 </process>
 
 
+<defaultValues><PRE>
+  bbSetInputActive(true);
+</PRE></defaultValues>
+
 </blackbox>