Line data Source code
1 :
2 : /* Copyright (c) 2011-2015, Stefan Eilemann <eile@eyescale.ch>
3 : * Petros Kataras <petroskataras@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 : #ifndef EQSEQUEL_DETAIL_PIPE_H
20 : #define EQSEQUEL_DETAIL_PIPE_H
21 :
22 : #include <seq/types.h>
23 : #include <eq/pipe.h> // base class
24 :
25 : namespace seq
26 : {
27 : namespace detail
28 : {
29 : class Pipe : public eq::Pipe
30 : {
31 : public:
32 : explicit Pipe( eq::Node* parent );
33 :
34 : /** @name Data Access. */
35 : //@{
36 : seq::Application* getApplication();
37 : Config* getConfig();
38 : Node* getNode();
39 0 : seq::Renderer* getRenderer() { return _renderer; }
40 : detail::Renderer* getRendererImpl();
41 : co::Object* getFrameData();
42 : ObjectMap* getObjectMap();
43 : //@}
44 :
45 : protected:
46 : virtual ~Pipe();
47 :
48 : virtual bool configInit( const uint128_t& initID );
49 : virtual bool configExit();
50 :
51 : virtual void frameStart( const uint128_t& frameID,
52 : const uint32_t frameNumber );
53 : private:
54 : bool _mapData( const uint128_t& initID );
55 : void _syncData( const uint128_t& version );
56 : void _unmapData();
57 :
58 : ObjectMap* _objects;
59 : seq::Renderer* _renderer;
60 : };
61 : }
62 : }
63 :
64 : #endif // EQSEQUEL_DETAIL_PIPE_H
|