Equalizer  1.6.1
client/segment.h
1 
2 /* Copyright (c) 2009-2011, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License version 2.1 as published
6  * by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  */
17 
18 #ifndef EQ_SEGMENT_H
19 #define EQ_SEGMENT_H
20 
21 #include <eq/client/api.h>
22 #include <eq/client/types.h>
23 #include <eq/fabric/segment.h> // base class
24 
25 namespace eq
26 {
33  class Segment : public fabric::Segment< Canvas, Segment, Channel >
34  {
35  public:
37  EQ_API Segment( Canvas* parent );
38 
40  EQ_API virtual ~Segment();
41 
45  EQ_API Config* getConfig();
46 
48  EQ_API const Config* getConfig() const;
49 
51  EQ_API ServerPtr getServer();
53 
54  private:
55  struct Private;
56  Private* _private; // placeholder for binary-compatible changes
57  };
58 
59 }
60 #endif // EQ_SEGMENT_H
A configuration is a visualization session driven by an application.
Config * getConfig()
ServerPtr getServer()
A canvas represents a logical 2D projection surface.
Definition: client/canvas.h:51
A segment covers a sub-area of a Canvas.
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
Segment(Canvas *parent)
Construct a new segment.
Base data transport class for segments.
virtual ~Segment()
Destruct a segment.