Equalizer  1.4.1
include/seq/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 <co/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 co::ObjectFactory
00029     {
00030     public:
00032         SEQ_API Application();
00033 
00035         SEQ_API virtual ~Application();
00036 
00040         SEQ_API co::NodePtr getMasterNode();
00042 
00058         SEQ_API virtual bool init( const int argc, char** argv,
00059                                    co::Object* initData );
00060         
00075         SEQ_API virtual bool run( co::Object* frameData );
00076 
00083         SEQ_API virtual bool exit();
00084 
00086         SEQ_API void stopRunning();
00088 
00101         virtual bool clientInit( co::Object* initData ) { return true; }
00102 
00104         virtual bool clientExit() { return true; }
00105 
00114         virtual Renderer* createRenderer() = 0;
00115 
00117         SEQ_API virtual void destroyRenderer( Renderer* renderer );
00118 
00129         SEQ_API virtual ViewData* createViewData();
00130 
00132         SEQ_API virtual void destroyViewData( ViewData* viewData );
00134 
00137         SEQ_API eq::Config* getConfig(); 
00138         detail::Application* getImpl() { return _impl; } 
00139 
00140 
00141     private:
00142         detail::Application* _impl;
00143     };
00144 }
00145 #endif // EQSEQUEL_APPLICATION_H
Generated on Mon Nov 26 2012 14:41:48 for Equalizer 1.4.1 by  doxygen 1.7.6.1