objet_affichable.hpp

Go to the documentation of this file.
00001 /*
00002 **    Projet etudiants CPE Lyon
00003 **    Copyright (C) 2012 Damien Rohmer
00004 **
00005 **    This program is free software: you can redistribute it and/or modify
00006 **    it under the terms of the GNU General Public License as published by
00007 **    the Free Software Foundation, either version 3 of the License, or
00008 **    (at your option) any later version.
00009 **
00010 **   This program is distributed in the hope that it will be useful,
00011 **    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 **    GNU General Public License for more details.
00014 **
00015 **    You should have received a copy of the GNU General Public License
00016 **    along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 
00020 #ifndef OBJET_AFFICHABLE_HPP
00021 #define OBJET_AFFICHABLE_HPP
00022 
00023 
00024 #include <mesh.hpp>
00025 
00026 #include <vector>
00027 #include <string>
00028 
00029 class objet_affichable
00030 {
00031 public:
00032     //constructeur sans arguments
00033     objet_affichable();
00034     //constructeur qui vient charger directement un fichier d'un maillage (format .off attendu)
00035     objet_affichable(const std::string& filename);
00036 
00037     // affiche l'objet 3D a l'ecran
00038     void affiche() const;
00039 
00040 private:
00041 
00042     //stockage interne de la geometrie
00043     cpe::mesh geometrie;
00044     //stockage interne des normales de l'objet
00045     std::vector<double> normales;
00046 };
00047 
00048 #endif