#ifndef __bbUtilitiesSTLReader_h_INCLUDED__ #define __bbUtilitiesSTLReader_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkSTLReader.h" #include "vtkPolyData.h" namespace bbUtilities { class /*BBTK_EXPORT*/ STLReader : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(STLReader,bbtk::AtomicBlackBox); //================================================================== /// User callback called in the box contructor BBTK_DECLARE_INPUT(In,std::string); BBTK_DECLARE_OUTPUT(Out,vtkPolyData*); BBTK_PROCESS(Process); void Process(); private: vtkSTLReader *_STLReader; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(STLReader,bbtk::AtomicBlackBox); BBTK_NAME("STLReader"); BBTK_AUTHOR("car-prie@uniandes.edu.co"); BBTK_DESCRIPTION("Reads a STL file and creates the polydata asociated to it"); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(STLReader,In,"STL file name",std::string,""); BBTK_OUTPUT(STLReader,Out,"PolyData Asociated with the STL file",vtkPolyData*,""); BBTK_END_DESCRIBE_BLACK_BOX(STLReader); } // EO namespace bbUtilities #endif // __bbUtilitiesSTLReader_h_INCLUDED__