00001 /**************************************************************************** 00002 * VCGLib o o * 00003 * Visual and Computer Graphics Library o o * 00004 * _ O _ * 00005 * Copyright(C) 2007 \/)\/ * 00006 * Visual Computing Lab /\/| * 00007 * ISTI - Italian National Research Council | * 00008 * \ * 00009 * All rights reserved. * 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 * This program is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00019 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * 00020 * for more details. * 00021 * * 00022 ****************************************************************************/ 00023 /**************************************************************************** 00024 History 00025 00026 $Log: not supported by cvs2svn $ 00027 00028 ****************************************************************************/ 00029 #ifndef MAINWINDOW_H_ 00030 #define MAINWINDOW_H_ 00031 00032 #include "ui_mainwindow.h" 00033 #include "glarea.h" 00034 #include "ml_thread_safe_memory_info.h" 00035 00036 00037 class MainWindow:public QMainWindow 00038 { 00039 Q_OBJECT 00040 public: 00041 MainWindow(QWidget * parent = 0); 00042 ~MainWindow(); 00043 public slots: 00044 void chooseMesh(); 00045 void loadTetrahedron(); 00046 void loadDodecahedron(); 00047 void initMesh(QString message); 00048 00049 signals: 00050 void loadMesh(QString newMesh); 00051 private: 00052 Ui::mainWindow ui; 00053 GLArea* glar[2]; 00054 00055 SharedDataOpenGLContext* shared; 00056 MLThreadSafeMemoryInfo mi; 00058 CMeshO mesh; 00059 }; 00060 00061 #endif /*MAINWINDOW_H_ */