Line data Source code
1 :
2 : /* Copyright (c) 2011, Stefan Eilemann <eile@eyescale.ch>
3 : * 2012, Daniel Nachbaur <danielnachbaur@gmail.com>
4 : *
5 : * This library is free software; you can redistribute it and/or modify it under
6 : * the terms of the GNU Lesser General Public License version 2.1 as published
7 : * by the Free Software Foundation.
8 : *
9 : * This library is distributed in the hope that it will be useful, but WITHOUT
10 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 : * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 : * details.
13 : *
14 : * You should have received a copy of the GNU Lesser General Public License
15 : * along with this library; if not, write to the Free Software Foundation, Inc.,
16 : * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 : */
18 :
19 :
20 : #ifndef EQSEQUEL_DETAIL_MASTERCONFIG_H
21 : #define EQSEQUEL_DETAIL_MASTERCONFIG_H
22 :
23 : #include "config.h" // base class
24 :
25 : namespace seq
26 : {
27 : namespace detail
28 : {
29 : class MasterConfig : public Config
30 : {
31 : public:
32 : MasterConfig( eq::ServerPtr parent );
33 :
34 : virtual bool init();
35 : virtual bool run( co::Object* frameData );
36 : virtual bool exit();
37 :
38 2 : virtual bool needRedraw() { return _redraw; }
39 : virtual uint32_t startFrame();
40 :
41 : protected:
42 : virtual ~MasterConfig();
43 : #ifndef EQ_2_0_API
44 : virtual bool handleEvent( const eq::ConfigEvent* event );
45 : #endif
46 : virtual bool handleEvent( eq::EventICommand command );
47 :
48 : private:
49 : uint128_t _currentViewID;
50 : bool _redraw;
51 : };
52 : }
53 : }
54 :
55 : #endif // EQSEQUEL_DETAIL_MASTERCONFIG_H
|