Equalizer  2.1.0
Parallel Rendering Framework
segment.h
1 
2 /* Copyright (c) 2009-2014, 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/api.h>
22 #include <eq/fabric/segment.h> // base class
23 #include <eq/types.h>
24 
25 namespace eq
26 {
27 namespace detail
28 {
29 class Segment;
30 }
31 
38 class Segment : public fabric::Segment<Canvas, Segment, Channel>
39 {
40 public:
42  EQ_API explicit Segment(Canvas* parent);
43 
45  EQ_API virtual ~Segment();
46 
50  EQ_API Config* getConfig();
51 
53  EQ_API const Config* getConfig() const;
54 
56  EQ_API ServerPtr getServer();
58 
59 private:
60  detail::Segment* const _impl;
61 };
62 }
63 #endif // EQ_SEGMENT_H
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
Definition: eq/types.h:215
A configuration is a visualization session driven by an application.
Definition: config.h:58
A canvas represents a logical 2D projection surface.
Definition: canvas.h:53
EQ_API Config * getConfig(const int argc, char **argv)
Convenience function to retrieve a configuration.
A segment covers a sub-area of a Canvas.
Definition: segment.h:38
The Equalizer client library.
Definition: eq/agl/types.h:23
Base data transport class for segments.