std::vector<vtkPolyData*> vecPolyData;
+ std::string tmpFileName;
int i,size=bbGetInputFileNameVector().size();
for (i=0;i<size; i++)
{
vtkPolyDataReader *reader = vtkPolyDataReader::New();
- reader->SetFileName( bbGetInputFileNameVector()[i].c_str() );
+ tmpFileName=bbGetInputDirName() + "/" + bbGetInputFileNameVector()[i];
+ reader->SetFileName( tmpFileName.c_str() );
reader->ReadAllScalarsOn();
reader->ReadAllVectorsOn();
reader->ReadAllNormalsOn();
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
-// bbSetInputIn(0);
+ bbSetInputDirName("");
}
//=====
//=====
// 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(DirName,std::string);
BBTK_DECLARE_INPUT(FileNameVector,std::vector<std::string>);
BBTK_DECLARE_OUTPUT(PolyDataVector,std::vector<vtkPolyData*>);
BBTK_PROCESS(Process);
BBTK_AUTHOR("Info-Dev");
BBTK_DESCRIPTION("No Description.");
BBTK_CATEGORY("empty");
+ BBTK_INPUT(VectorPolyDataReader,DirName,"DirectoryName",std::string,"");
BBTK_INPUT(VectorPolyDataReader,FileNameVector,"String vector with the name of the .vtk files",std::vector<std::string>,"");
BBTK_OUTPUT(VectorPolyDataReader,PolyDataVector,"Std::vector with PolyData(s)",std::vector<vtkPolyData*>,"");
BBTK_END_DESCRIBE_BLACK_BOX(VectorPolyDataReader);