//===== // 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) //===== #ifndef __bbvtkMeasureLength_h_INCLUDED__ #define __bbvtkMeasureLength_h_INCLUDED__ #include "bbvtk_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vector" #include "math.h" //VTK #include "vtkPoints.h" #include "vtkImageData.h" namespace bbvtk { class bbvtk_EXPORT MeasureLength : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(MeasureLength,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(Points,vtkPoints*); BBTK_DECLARE_INPUT(ImageData,vtkImageData*); BBTK_DECLARE_OUTPUT(Length,double); BBTK_PROCESS(Process); void Process(); private: vtkImageData* _image; vtkPoints* _points; //===== // 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_BEGIN_DESCRIBE_BLACK_BOX(MeasureLength,bbtk::AtomicBlackBox); BBTK_NAME("MeasureLength"); BBTK_AUTHOR("Ricardo A Corredor"); BBTK_DESCRIPTION("Evaluates the sum of the Euclidean distances among the points in the list following their order."); BBTK_CATEGORY(""); BBTK_INPUT(MeasureLength,Points,"List of points",vtkPoints*,""); BBTK_INPUT(MeasureLength,ImageData,"Set an image if you want real lentgh (usually in mm)",vtkImageData*,""); BBTK_OUTPUT(MeasureLength,Length,"Sum of the Euclidean distances among the points",double,""); BBTK_END_DESCRIBE_BLACK_BOX(MeasureLength); //===== // 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) //===== } // EO namespace bbvtk #endif // __bbvtkMeasureLength_h_INCLUDED__