2 // 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)
4 #ifndef __bbvtkMeasureLength_h_INCLUDED__
5 #define __bbvtkMeasureLength_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
14 #include "vtkPoints.h"
15 #include "vtkImageData.h"
20 class bbvtk_EXPORT MeasureLength
22 public bbtk::AtomicBlackBox
24 BBTK_BLACK_BOX_INTERFACE(MeasureLength,bbtk::AtomicBlackBox);
26 // 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)
28 BBTK_DECLARE_INPUT(Points,vtkPoints*);
29 BBTK_DECLARE_INPUT(ImageData,vtkImageData*);
30 BBTK_DECLARE_OUTPUT(Length,double);
31 BBTK_DECLARE_OUTPUT(LengthVoxels,double);
32 BBTK_PROCESS(Process);
38 // 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)
42 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MeasureLength,bbtk::AtomicBlackBox);
43 BBTK_NAME("MeasureLength");
44 BBTK_AUTHOR("Ricardo A Corredor");
45 BBTK_DESCRIPTION("Evaluates the sum of the Euclidean distances among the points in the list following their order.");
47 BBTK_INPUT(MeasureLength,Points,"List of points",vtkPoints*,"");
48 BBTK_INPUT(MeasureLength,ImageData,"Set an image if you want real lentgh (usually in mm)",vtkImageData*,"");
49 BBTK_OUTPUT(MeasureLength,Length,"Sum of the Euclidean distances among the points",double,"");
50 BBTK_OUTPUT(MeasureLength,LengthVoxels,"Sum of the Euclidean distances among the points (Voxels)",double,"");
51 BBTK_END_DESCRIBE_BLACK_BOX(MeasureLength);
53 // 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)
58 #endif // __bbvtkMeasureLength_h_INCLUDED__