Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

FileLoader.h

Go to the documentation of this file.
00001 #ifndef _FILELOADER_H_
00002 #define _FILELOADER_H_
00003 
00004 #include <iostream>
00005 #include <fstream>
00006 #include <string>
00007 #include <vector>
00008 using namespace std;
00009 
00010 #include "Vector2.h"
00011 #include "Vector3.h"
00012 
00018 class FileLoader
00019 {
00020  public:
00021   FileLoader(string filename, bool binary = false);
00022   virtual ~FileLoader();
00023 
00024   virtual void load() = 0;
00025 
00029   virtual vector < Vector3 > getFaces() { return _faces; }
00030   virtual vector < Vector3 > getNormals() { return _normals; }
00031   virtual vector < Vector2 > getTextures() { return _textures; }
00032   virtual double getCollisionRadius() { return _collisionRadius; }
00033 
00034  protected:
00035   string _filename;
00036   ifstream _infile;
00037 
00038   vector < Vector3 > _faces;
00039   vector < Vector3 > _normals;
00040   vector < Vector2 > _textures;
00041   
00042   double _collisionRadius;
00043 };
00044 
00045 #endif

Generated on Wed Apr 21 11:10:53 2004 for naturecalls by doxygen1.2.18