00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00021
00022
00023
#ifndef PARSER_H
00024
#define PARSER_H
00025
00026
#include <iostream>
00027
#include <string.h>
00028
#include <stdio.h>
00029
#include <fstream>
00030
#include <math.h>
00031
#include <vector>
00032
00033
#include "../primitives/point.h"
00034
#include "../interface/utilities.h"
00035
#include "utils.h"
00036
00037
00038
00039
using namespace std;
00040
00041
00042
00053
00054
00056
00057
00058 class Parser
00059 {
00060
00061
protected :
00064 int nbPoints;
00067 int nbPolys;
00070 vector<Point3D*>
pointsList;
00073 vector<int>
referencesList;
00074
00075
public :
00082
virtual void setParameters(
const int &nbPoints,
const int &nbPolys,
const vector<Point3D*> &pointsList,
const vector<int> &referencesList);
00085
virtual ~Parser();
00088 inline virtual int getNbPoints(){
return nbPoints;}
00091 inline virtual int getNbPolys(){
return nbPolys;}
00094 inline virtual vector<Point3D*>
getPointsList(){
return pointsList;}
00097 inline virtual vector<int>
getReferencesList(){
return referencesList;}
00098 };
00099
00100
#endif