Equalizer  1.2.1
application.h
00001 
00002 /* Copyright (c) 2011, Stefan Eilemann <eile@eyescale.ch> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef EQSEQUEL_APPLICATION_H
00019 #define EQSEQUEL_APPLICATION_H
00020 
00021 #include <seq/objectFactory.h> // interface
00022 #include <seq/types.h>
00023 #include <eq/client/client.h>               // base class
00024 
00025 namespace seq
00026 {
00028     class Application : public eq::Client, public seq::ObjectFactory
00029     {
00030     public:
00032         SEQ_API Application();
00033 
00035         SEQ_API virtual ~Application();
00036 
00052         SEQ_API virtual bool init( const int argc, char** argv,
00053                                    co::Object* initData );
00054         
00069         SEQ_API virtual bool run( co::Object* frameData );
00070 
00077         SEQ_API virtual bool exit();
00078 
00080         SEQ_API void stopRunning();
00082 
00095         virtual bool clientInit( co::Object* initData ) { return true; }
00096 
00098         virtual bool clientExit() { return true; }
00099 
00108         virtual Renderer* createRenderer() = 0;
00109 
00111         SEQ_API virtual void destroyRenderer( Renderer* renderer );
00112 
00123         SEQ_API virtual ViewData* createViewData();
00124 
00126         SEQ_API virtual void destroyViewData( ViewData* viewData );
00128 
00131         SEQ_API eq::Config* getConfig(); 
00132         detail::Application* getImpl() { return _impl; } 
00133 
00134 
00135     private:
00136         detail::Application* _impl;
00137     };
00138 }
00139 #endif // EQSEQUEL_APPLICATION_H
Generated on Fri Jun 8 2012 15:44:29 for Equalizer 1.2.1 by  doxygen 1.8.0