1 #include <tclap/CmdLine.h> 6 int main(
int ac,
const char** av)
8 TCLAP::CmdLine cmd(
"animaConverthape can be used to convert a VTK, VTP, CSV or FDS (medInria fiber format) file into another format. It does not check before writing fds " 9 "that the file is actually made only of fibers.\n" 10 "INRIA / IRISA - VisAGeS/Empenn Team",
' ',ANIMA_VERSION);
12 TCLAP::ValueArg<std::string> inputArg(
"i",
"in",
"input data filename",
true,
"",
"input data",cmd);
13 TCLAP::ValueArg<std::string> outputArg(
"o",
"out",
"output data filename",
true,
"",
"output data",cmd);
19 catch (TCLAP::ArgException& e)
21 std::cerr <<
"Error: " << e.error() <<
"for argument " << e.argId() << std::endl;
31 catch(std::exception &e)
33 std::cerr << e.what() << std::endl;
45 catch(std::exception &e)
47 std::cerr << e.what() << std::endl;
void SetInputData(vtkPolyData *data)
int main(int ac, const char **av)
void SetFileName(std::string &name)
vtkPolyData * GetOutput()
void SetFileName(std::string &name)