00001 /**************************************************************************** 00002 * worker.h: a thread for doing the rendering process 00003 * This is part of the yafray package 00004 * Copyright (C) 2008 Gustavo Pichorim Boiko 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 #ifndef WORKER_H 00022 #define WORKER_H 00023 00024 #include <QtCore/QThread> 00025 #include <QtCore/QString> 00026 00027 class QtOutput; 00028 class MainWindow; 00029 namespace yafaray 00030 { 00031 class yafrayInterface_t; 00032 class render_t; 00033 class paraMap_t; 00034 class scene_t; 00035 } 00036 00037 00038 class Worker : public QThread 00039 { 00040 Q_OBJECT 00041 public: 00042 Worker(yafaray::yafrayInterface_t *env, MainWindow *w, QtOutput *output); 00043 void run(); 00044 private: 00045 yafaray::yafrayInterface_t *m_env; 00046 QtOutput *m_output; 00047 MainWindow *m_win; 00048 bool m_valid; 00049 }; 00050 00051 #endif
1.6.1