]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkHeartAngles.h
2196 creaVtk Feature New Normal Completion of code HeartAngles 2013-12-04 11:20
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkHeartAngles.h
index b422d7f27af3fc69d1ea9bb7dc5720db151bab3e..10a80f8a1b51879e0bf271c6bf6ab6dfb8959de1 100644 (file)
@@ -6,7 +6,7 @@
 #include "bbcreaVtk_EXPORT.h"
 #include "bbtkAtomicBlackBox.h"
 #include "iostream"
-
+#include "vtkImageData.h"
 namespace bbcreaVtk
 {
 
@@ -15,11 +15,23 @@ class bbcreaVtk_EXPORT HeartAngles
    public bbtk::AtomicBlackBox
 {
   BBTK_BLACK_BOX_INTERFACE(HeartAngles,bbtk::AtomicBlackBox);
-//===== 
-// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
-//===== 
-  BBTK_DECLARE_INPUT(In,double);
-  BBTK_DECLARE_OUTPUT(Out,double);
+
+//vtkImageData* image, double Px, double Py, double Pz, double Vx, double Vy, double Vz, double Nx, double Ny, double Nz, double p2x, double p2y, double p2z
+  BBTK_DECLARE_INPUT(Image, vtkImageData*);
+  BBTK_DECLARE_INPUT(Px,double);
+  BBTK_DECLARE_INPUT(Py,double);
+  BBTK_DECLARE_INPUT(Pz,double);
+  BBTK_DECLARE_INPUT(Vx,double);
+  BBTK_DECLARE_INPUT(Vy,double);
+  BBTK_DECLARE_INPUT(Vz,double);
+  BBTK_DECLARE_INPUT(Nx,double);
+  BBTK_DECLARE_INPUT(Ny,double);
+  BBTK_DECLARE_INPUT(Nz,double);
+  BBTK_DECLARE_INPUT(p2x,double);
+  BBTK_DECLARE_INPUT(p2y,double);
+  BBTK_DECLARE_INPUT(p2z,double);
+  BBTK_DECLARE_OUTPUT(AlphaImage, vtkImageData*);
+  BBTK_DECLARE_OUTPUT(BetaImage, vtkImageData*);
   BBTK_PROCESS(Process);
   void Process();
 //===== 
@@ -32,8 +44,21 @@ BBTK_NAME("HeartAngles");
 BBTK_AUTHOR("carlos torres");
 BBTK_DESCRIPTION("No Description.");
 BBTK_CATEGORY("empty");
-BBTK_INPUT(HeartAngles,In,"First input",double,"");
-BBTK_OUTPUT(HeartAngles,Out,"First output",double,"");
+BBTK_INPUT(HeartAngles,Image,"Image",vtkImageData*,"");
+BBTK_INPUT(HeartAngles,Px,"Punto en el plano componente X",double,"");
+BBTK_INPUT(HeartAngles,Py,"Punto en el plano componente Y",double,"");
+BBTK_INPUT(HeartAngles,Pz,"Punto en el plano componente Z",double,"");
+BBTK_INPUT(HeartAngles,Vx,"Vector componente X",double,"");
+BBTK_INPUT(HeartAngles,Vy,"Vector componente Y",double,"");
+BBTK_INPUT(HeartAngles,Vz,"Vector componente Z",double,"");
+BBTK_INPUT(HeartAngles,Nx,"Normal componente X",double,"");
+BBTK_INPUT(HeartAngles,Ny,"Normal componente Y",double,"");
+BBTK_INPUT(HeartAngles,Nz,"Normal componente Z",double,"");
+BBTK_INPUT(HeartAngles,p2x,"Punto P2 componente X",double,"");
+BBTK_INPUT(HeartAngles,p2y,"Punto P2 componente Y",double,"");
+BBTK_INPUT(HeartAngles,p2z,"Punto P2 componente Z",double,"");
+BBTK_OUTPUT(HeartAngles,AlphaImage,"Alpha Image",vtkImageData*,"");
+BBTK_OUTPUT(HeartAngles,BetaImage,"Beta Image",vtkImageData*,"");
 BBTK_END_DESCRIBE_BLACK_BOX(HeartAngles);
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)