#ifndef __bbUtilitiesDistanceLenght_h_INCLUDED__ #define __bbUtilitiesDistanceLenght_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkImageData.h" #include "vtkRenderer.h" #include "vtkActor.h" #include "vtkPolyDataMapper.h" #include "vtkPolyData.h" #include "vtkPoints.h" #include "vtkCellArray.h" #include "vtkSphereSource.h" #include "vtkSphere.h" #include "vtkProperty.h" namespace bbUtilities { class /*BBTK_EXPORT*/ DistanceLenght : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(DistanceLenght,bbtk::AtomicBlackBox); //================================================================== BBTK_DECLARE_INPUT(Point0,std::vector); BBTK_DECLARE_INPUT(Point1,std::vector); BBTK_DECLARE_INPUT(PointNumber,int); BBTK_DECLARE_OUTPUT(Out,double); BBTK_PROCESS(Process); void Process(); private: int x0, y0 , z0, x1, y1, z1; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(DistanceLenght,bbtk::AtomicBlackBox); BBTK_NAME("DistanceLenght"); BBTK_AUTHOR("car-prie@uniandes.edu.co"); BBTK_DESCRIPTION("Gets the points in the directory Vessel 0 - 3"); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(DistanceLenght,Point0,"first point of the segment to be measured",std::vector, ""); BBTK_INPUT(DistanceLenght,Point1,"Final point of the segment to be measured",std::vector, ""); BBTK_INPUT(DistanceLenght,PointNumber,"Point0 or Point1",int, ""); BBTK_OUTPUT(DistanceLenght,Out,"Distance between two points",double, ""); BBTK_END_DESCRIBE_BLACK_BOX(DistanceLenght); } // EO namespace bbUtilities #endif // __bbUtilitiesDistanceLenght_h_INCLUDED__