Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ExampleIndexLineSetParser.cpp
1 #include <Utils/IndexLineSetHandler.hh>
2 
3 using namespace std;
4 
5 int main(int argc, char **argv)
6 {
7  int dNumberOfLines =0;
8  std::vector<std::vector<BIAS::HomgPoint3D> > zDetectedLines;
10 
11  if(argc >1)
12  zDetectedLines = handler.Parse(argv[1],dNumberOfLines);
13 
14  cout<<"Number of lines parsed in IndexLineSet: "<<dNumberOfLines<<endl;
15 
16  handler.Write("lines_test.wrl",zDetectedLines);
17 
18 
19  return 0;
20 }
int Write(std::string fileName, std::vector< std::vector< BIAS::HomgPoint3D > > fLines)
Write a set of lines to disk as a IndexedLineSet.
This class parses a VRML file containing an indexed line set and stores the containing lines...
std::vector< std::vector< BIAS::HomgPoint3D > > Parse(std::string fileName, int &dNumberOfLines)
Parse a IndexLineSet and return lines in it.