Equalizer  1.6.1
include/eq/client/view.h
1 
2 /* Copyright (c) 2008-2013, Stefan Eilemann <eile@equalizergraphics.com>
3  * 2011, 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 #ifndef EQ_VIEW_H
20 #define EQ_VIEW_H
21 
22 #include <eq/client/api.h>
23 #include <eq/client/types.h> // member
24 #include <eq/client/visitorResult.h> // enum
25 
26 #include <eq/fabric/view.h> // base class
27 #include <eq/fabric/viewport.h> // member
28 
29 namespace eq
30 {
31 namespace detail { class View; }
32 
43  class View : public fabric::View< Layout, View, Observer >
44  {
45  public:
47  EQ_API View( Layout* parent );
48 
50  EQ_API virtual ~View();
51 
58  Pipe* getPipe() { return _pipe; }
59 
64  EQ_API const Pipe* getPipe() const { return _pipe; }
65 
67  EQ_API Config* getConfig();
68 
70  EQ_API const Config* getConfig() const;
71 
73  EQ_API ServerPtr getServer();
75 
89  EQ_API virtual bool handleEvent( const Event& event );
91 
92  protected:
94  EQ_API virtual void deserialize( co::DataIStream& is,
95  const uint64_t dirtyBits );
96 
98  EQ_API const Frustum& getBaseFrustum() const;
99 
101  EQ_API virtual void detach();
102 
103  private:
104  detail::View* const impl_;
105 
106  Pipe* _pipe; // for render-client views
107  friend class Pipe;
108  };
109 }
110 
111 #endif //EQ_VIEW_H
A configuration is a visualization session driven by an application.
Event structure to report window system and other events.
Definition: event.h:171
View(Layout *parent)
Construct a new view.
A View is a 2D area of a Layout.
A layout groups one or more View, logically belonging together.
Definition: client/layout.h:44
const Frustum & getBaseFrustum() const
A Pipe represents a graphics card (GPU) on a Node.
Config * getConfig()
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
Base data transport class for views.
Frustum()
Construct a new frustum.
virtual ~View()
Destruct this view.
const Pipe * getPipe() const
ServerPtr getServer()
virtual bool handleEvent(const Event &event)
Handle a received (view) event.