#ifndef __bbUtilitiesSaveAxis_h_INCLUDED__ #define __bbUtilitiesSaveAxis_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkImageData.h" namespace bbUtilities { class /*BBTK_EXPORT*/ SaveAxis : public bbtk::AtomicBlackBox { // BBTK_USER_BLACK_BOX_INTERFACE(SaveAxis,bbtk::AtomicBlackBox); BBTK_BLACK_BOX_INTERFACE(SaveAxis,bbtk::AtomicBlackBox); //================================================================== BBTK_DECLARE_INPUT(PointsX,std::vector); BBTK_DECLARE_INPUT(PointsY,std::vector); BBTK_DECLARE_INPUT(PointsZ,std::vector); BBTK_DECLARE_INPUT(ManualPoint,std::vector); BBTK_DECLARE_INPUT(FileNameAxis,std::string); BBTK_DECLARE_INPUT(FileNameManualPoints,std::string); BBTK_DECLARE_INPUT(Image,vtkImageData*); BBTK_PROCESS(Process); void Process(); }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(SaveAxis,bbtk::AtomicBlackBox); BBTK_NAME("SaveAxis"); BBTK_AUTHOR("Monica Lozano, mo-lozan@uniandes.edu.co"); BBTK_DESCRIPTION("Save an axis defined in three vectors (x,y,z)"); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(SaveAxis,PointsX,"x vector",std::vector, ""); BBTK_INPUT(SaveAxis,PointsY,"y vector",std::vector, ""); BBTK_INPUT(SaveAxis,PointsZ,"z vector",std::vector, ""); BBTK_INPUT(SaveAxis,ManualPoint,"a point to append to the pointsfile",std::vector, ""); BBTK_INPUT(SaveAxis,FileNameAxis,"name for the axis points calculated",std::string, ""); BBTK_INPUT(SaveAxis,FileNameManualPoints,"name for the manual points",std::string, ""); BBTK_INPUT(SaveAxis,Image,"image for getting the spacing",vtkImageData*, ""); BBTK_END_DESCRIBE_BLACK_BOX(SaveAxis); } // EO namespace bbUtilities #endif // __bbUtilitiesSaveAxis_h_INCLUDED__