Equalizer  1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
client/types.h
1 
2 /* Copyright (c) 2007-2014, Stefan Eilemann <eile@equalizergraphics.com>
3  * 2011-2012, Daniel Nachbaur <danielnachbaur@gmail.com>
4  * 2010, Cedric Stalder <cedric.stalder@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License version 2.1 as published
8  * by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13  * details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef EQ_TYPES_H
21 #define EQ_TYPES_H
22 
23 #include <eq/defines.h>
24 #include <eq/util/types.h>
25 #include <eq/fabric/commands.h>
26 #include <eq/fabric/focusMode.h>
27 #include <eq/fabric/types.h>
28 #include <lunchbox/atomic.h>
29 #include <lunchbox/compiler.h>
30 
31 #include <boost/noncopyable.hpp>
32 
33 #include <map>
34 #include <vector>
35 
36 namespace eq
37 {
38 class Canvas;
39 class Channel;
40 class Client;
41 class CommandQueue;
42 class ComputeContext;
43 class Config;
44 class EventICommand;
45 class Frame;
46 class FrameData;
47 class Image;
48 class Layout;
49 class MessagePump;
50 class Node;
51 class NodeFactory;
52 class NotifierInterface;
53 class Observer;
54 class Pipe;
55 class Segment;
56 class Server;
57 class SystemPipe;
58 class SystemWindow;
59 class View;
60 class Window;
61 class WindowSettings;
62 class WindowSystem;
63 struct ConfigEvent;
64 struct Event;
65 struct PixelData;
66 struct PointerEvent;
67 struct Statistic;
68 
69 using fabric::ANAGLYPH;
70 using fabric::ASYNC;
71 using fabric::AUTO;
72 using fabric::DRAW_SYNC;
73 using fabric::FASTEST;
74 using fabric::FBO;
75 using fabric::HORIZONTAL;
76 using fabric::LOCAL_SYNC;
77 using fabric::NICEST;
78 using fabric::OFF;
79 using fabric::ON;
80 using fabric::PBUFFER;
81 using fabric::QUAD;
82 using fabric::RGBA16F;
83 using fabric::RGBA32F;
84 using fabric::UNDEFINED;
85 using fabric::VERTICAL;
86 using fabric::WINDOW;
87 
88 using fabric::ColorMask;
89 using fabric::DrawableConfig;
90 using fabric::Frustum;
91 using fabric::Frustumf;
92 using fabric::GPUInfo;
93 using fabric::IAttribute;
94 using fabric::Pixel;
95 using fabric::PixelViewport;
96 using fabric::Projection;
97 using fabric::Range;
98 using fabric::RenderContext;
99 using fabric::SubPixel;
100 using fabric::Tile;
101 using fabric::Viewport;
102 using fabric::Wall;
103 using fabric::Zoom;
104 
107 
110 
113 
116 
119 
122 
125 
128 
131 
134 // cppcheck-suppress unnecessaryForwardDeclaration
136 
139 
140 //----- Vectors
142 typedef std::vector< Config* > Configs;
144 typedef std::vector< Server* > Servers;
146 typedef std::vector< Node* > Nodes;
148 typedef std::vector< Pipe* > Pipes;
150 typedef std::vector< Window* > Windows;
152 typedef std::vector< Channel* > Channels;
154 typedef std::vector< Frame* > Frames;
156 typedef std::vector< Image* > Images;
158 typedef std::vector< Observer* > Observers;
160 typedef std::vector< Canvas* > Canvases;
162 typedef std::vector< Layout* > Layouts;
164 typedef std::vector< Segment* > Segments;
166 typedef std::vector< View* > Views;
168 typedef std::vector< Viewport > Viewports;
170 typedef std::vector< PixelViewport > PixelViewports;
172 typedef std::vector< Statistic > Statistics;
173 
175 typedef Configs::const_iterator ConfigsCIter;
177 typedef Servers::const_iterator ServersCIter;
179 typedef Nodes::const_iterator NodesCIter;
181 typedef Pipes::const_iterator PipesCIter;
183 typedef Windows::const_iterator WindowsCIter;
185 typedef Channels::const_iterator ChannelsCIter;
187 typedef Frames::iterator FramesIter;
189 typedef Frames::const_iterator FramesCIter;
191 typedef Images::const_iterator ImagesCIter;
193 typedef Observers::const_iterator ObserversCIter;
195 typedef Canvases::const_iterator CanvasesCIter;
197 typedef Layouts::const_iterator LayoutsCIter;
199 typedef Segments::const_iterator SegmentsCIter;
201 typedef Views::const_iterator ViewsCIter;
203 typedef Viewports::const_iterator ViewportsCIter;
205 typedef PixelViewports::const_iterator PixelViewportsCIter;
207 typedef Statistics::const_iterator StatisticsCIter;
208 
210 typedef lunchbox::RefPtr< Client > ClientPtr;
212 typedef lunchbox::RefPtr< const Client > ConstClientPtr;
214 typedef lunchbox::RefPtr< Server > ServerPtr;
216 typedef lunchbox::RefPtr< FrameData > FrameDataPtr;
218 typedef lunchbox::RefPtr< const FrameData > ConstFrameDataPtr;
219 
220 using fabric::Matrix3d;
221 using fabric::Matrix4d;
222 using fabric::Matrix3f;
223 using fabric::Matrix4f;
224 using fabric::Vector2i;
225 using fabric::Vector3i;
226 using fabric::Vector4i;
227 using fabric::Vector3d;
228 using fabric::Vector4d;
229 using fabric::Vector2f;
230 using fabric::Vector3f;
231 using fabric::Vector4f;
232 using fabric::Vector3ub;
233 using fabric::Frustumf;
234 
235 using fabric::EventOCommand;
236 using fabric::FocusMode;
240 using fabric::CMD_CONFIG_EVENT;
241 
242 using fabric::Strings;
243 using fabric::StringsCIter;
244 
246 typedef vmml::frustum_culler< float > FrustumCullerf;
247 
249 typedef std::vector< uint8_t > Vectorub;
251 typedef std::vector< uint16_t > Vectorus;
252 
253 using co::f_bool_t;
254 
255 using lunchbox::a_int32_t;
256 using lunchbox::backtrace;
257 using lunchbox::uint128_t;
258 using lunchbox::UUID;
259 
262 typedef co::WorkerThread< CommandQueue > Worker; // instantiated in worker.cpp
263 
264 namespace detail
265 {
266 class InitVisitor;
267 class ExitVisitor;
268 class FrameVisitor;
269 }
270 
271 namespace dc { class Proxy; }
273 }
274 
276 // GLEW
277 struct GLEWContextStruct;
278 struct WGLEWContextStruct;
279 struct GLXEWContextStruct;
280 typedef struct GLEWContextStruct GLEWContext;
281 typedef struct WGLEWContextStruct WGLEWContext;
282 typedef struct GLXEWContextStruct GLXEWContext;
283 namespace GLStats { class Data; }
286 #endif // EQ_TYPES_H
fabric::ElementVisitor< Window, ChannelVisitor > WindowVisitor
A visitor to traverse windows and children.
Definition: client/types.h:121
std::vector< Node * > Nodes
A vector of pointers to eq::Node.
Definition: client/types.h:146
Channels::const_iterator ChannelsCIter
A const_iterator over a eq::Channel vector.
Definition: client/types.h:185
std::vector< Server * > Servers
A vector of pointers to eq::Server.
Definition: client/types.h:144
vmml::vector< 3, uint8_t > Vector3ub
A three-component byte vector.
Definition: vmmlib.h:50
IAttribute
Possible values for integer attributes.
Definition: iAttribute.h:30
A visitor to traverse configs and all children.
Definition: admin/types.h:30
Windows::const_iterator WindowsCIter
A const_iterator over a eq::Window vector.
Definition: client/types.h:183
Segments::const_iterator SegmentsCIter
A const_iterator over a eq::Segment vector.
Definition: client/types.h:199
A configuration is a visualization session driven by an application.
Definition: client/config.h:55
Images::const_iterator ImagesCIter
A const_iterator over a eq::Image vector.
Definition: client/types.h:191
Pipes::const_iterator PipesCIter
A const_iterator over a eq::Pipe vector.
Definition: client/types.h:181
std::vector< Viewport > Viewports
A vector of eq::Viewport.
Definition: client/types.h:168
Canvases::const_iterator CanvasesCIter
A const_iterator over a eq::Canvas vector.
Definition: client/types.h:195
vmml::vector< 4, double > Vector4d
A four-component double vector.
Definition: vmmlib.h:46
Float32 framebuffer (WindowSettings::IATTR_PLANES_COLOR)
Definition: iAttribute.h:39
PBuffer drawable (WindowSettings::IATTR_HINT_DRAWABLE)
Definition: iAttribute.h:45
FBO drawable (WindowSettings::IATTR_HINT_DRAWABLE)
Definition: iAttribute.h:41
A visitor to traverse leaf nodes of a graph.
Definition: admin/types.h:32
std::vector< PixelViewport > PixelViewports
A vector of eq::PixelViewport.
Definition: client/types.h:170
Focus distance relative and in -Z axis of origin.
Definition: focusMode.h:33
enabled (various attributes)
Definition: iAttribute.h:58
vmml::vector< 3, int > Vector3i
A three-component integer vector.
Definition: vmmlib.h:43
std::vector< Statistic > Statistics
A vector of eq::Statistic events.
Definition: client/types.h:172
disabled (various attributes)
Definition: iAttribute.h:57
fabric::LeafVisitor< View > ViewVisitor
A visitor to traverse views.
Definition: client/types.h:109
Vertical load-balancing.
Definition: iAttribute.h:47
vmml::vector< 4, int > Vector4i
A four-component integer vector.
Definition: vmmlib.h:44
Focus distance relative and in direction of observer.
Definition: focusMode.h:35
Statistics::const_iterator StatisticsCIter
A const_iterator over a eq::Statistic events vector.
Definition: client/types.h:207
std::vector< Pipe * > Pipes
A vector of pointers to eq::Pipe.
Definition: client/types.h:148
std::vector< Layout * > Layouts
A vector of pointers to eq::Layout.
Definition: client/types.h:162
fabric::ElementVisitor< Pipe, WindowVisitor > PipeVisitor
A visitor to traverse pipes and children.
Definition: client/types.h:124
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
Definition: client/types.h:214
std::vector< Image * > Images
A vector of pointers to eq::Image.
Definition: client/types.h:156
No local sync (Node::IATTR_THREAD_MODEL)
Definition: iAttribute.h:44
Nicest statistics gathering (WindowSettings::IATTR_HINT_STATISTICS, Channel::IATTR_HINT_STATISTICS) ...
Definition: iAttribute.h:55
A visitor to traverse non-leaf elements and their children in a tree.
Definition: admin/types.h:31
vmml::vector< 2, float > Vector2f
A two-component float vector.
Definition: vmmlib.h:47
Window drawable (WindowSettings::IATTR_HINT_DRAWABLE)
Definition: iAttribute.h:46
fabric::ElementVisitor< Server, ConfigVisitor > ServerVisitor
A visitor to traverse servers and children.
Definition: client/types.h:138
Layouts::const_iterator LayoutsCIter
A const_iterator over a eq::Layout vector.
Definition: client/types.h:197
vmml::vector< 3, float > Vector3f
A three-component float vector.
Definition: vmmlib.h:48
std::vector< Window * > Windows
A vector of pointers to eq::Window.
Definition: client/types.h:150
std::vector< View * > Views
A vector of pointers to eq::View.
Definition: client/types.h:166
Automatic selection (various attributes)
Definition: iAttribute.h:56
Horizontal load-balancing.
Definition: iAttribute.h:64
Servers::const_iterator ServersCIter
A const_iterator over a eq::Server vector.
Definition: client/types.h:177
Viewports::const_iterator ViewportsCIter
A const_iterator over a eq::Viewport vector.
Definition: client/types.h:203
fabric::ElementVisitor< Layout, ViewVisitor > LayoutVisitor
A visitor to traverse layouts and children.
Definition: client/types.h:130
fabric::ElementVisitor< Node, PipeVisitor > NodeVisitor
A visitor to traverse nodes and children.
Definition: client/types.h:127
vmml::matrix< 3, 3, float > Matrix3f
A 3x3 float matrix.
Definition: vmmlib.h:40
Focus on physical projection.
Definition: focusMode.h:31
std::vector< uint8_t > Vectorub
A vector of bytes.
Definition: client/types.h:249
FocusMode
The algorithm to use for observer focal distance calculation.
Definition: focusMode.h:29
std::vector< Observer * > Observers
A vector of pointers to eq::Observer.
Definition: client/types.h:158
std::vector< Canvas * > Canvases
A vector of pointers to eq::Canvas.
Definition: client/types.h:160
lunchbox::RefPtr< Client > ClientPtr
A reference-counted pointer to an eq::Client.
Definition: client/types.h:210
Local draw sync (Node::IATTR_THREAD_MODEL)
Definition: iAttribute.h:43
Configs::const_iterator ConfigsCIter
A const_iterator over a eq::Config vector.
Definition: client/types.h:175
vmml::matrix< 4, 4, float > Matrix4f
A 4x4 float matrix.
Definition: vmmlib.h:41
std::vector< Frame * > Frames
A vector of pointers to eq::Frame.
Definition: client/types.h:154
std::vector< Channel * > Channels
A vector of pointers to eq::Channel.
Definition: client/types.h:152
vmml::frustum_culler< float > FrustumCullerf
< A const_iterator over a std::string vector
Definition: client/types.h:246
fabric::ElementVisitor< Canvas, SegmentVisitor > CanvasVisitor
A visitor to traverse canvases and children.
Definition: client/types.h:118
Quad-buffered stereo decomposition.
Definition: iAttribute.h:48
PixelViewports::const_iterator PixelViewportsCIter
A const_iterator over a eq::PixelViewport vector.
Definition: client/types.h:205
Nodes::const_iterator NodesCIter
A const_iterator over a eq::Node vector.
Definition: client/types.h:179
Frames::const_iterator FramesCIter
A const_iterator over a eq::Frame vector.
Definition: client/types.h:189
fabric::LeafVisitor< Observer > ObserverVisitor
A visitor to traverse channels.
Definition: client/types.h:112
lunchbox::RefPtr< const FrameData > ConstFrameDataPtr
A reference-counted pointer to a const eq::FrameData.
Definition: client/types.h:218
Views::const_iterator ViewsCIter
A const_iterator over a eq::View vector.
Definition: client/types.h:201
Anaglyphic stereo decomposition.
Definition: iAttribute.h:49
std::vector< Segment * > Segments
A vector of pointers to eq::Segment.
Definition: client/types.h:164
vmml::frustum< float > Frustumf
A frustum definition.
Definition: vmmlib.h:52
vmml::matrix< 4, 4, double > Matrix4d
A 4x4 double matrix.
Definition: vmmlib.h:39
fabric::LeafVisitor< Channel > ChannelVisitor
A visitor to traverse channels.
Definition: client/types.h:115
vmml::vector< 4, float > Vector4f
A four-component float vector.
Definition: vmmlib.h:49
lunchbox::RefPtr< FrameData > FrameDataPtr
A reference-counted pointer to an eq::FrameData.
Definition: client/types.h:216
fabric::LeafVisitor< Segment > SegmentVisitor
A visitor to traverse segments.
Definition: client/types.h:106
Undefined value.
Definition: iAttribute.h:32
std::vector< uint16_t > Vectorus
A vector of unsigned shorts.
Definition: client/types.h:251
vmml::matrix< 3, 3, double > Matrix3d
A 3x3 double matrix.
Definition: vmmlib.h:38
Float16 framebuffer (WindowSettings::IATTR_PLANES_COLOR)
Definition: iAttribute.h:40
Full local sync (Node::IATTR_THREAD_MODEL)
Definition: iAttribute.h:42
Observers::const_iterator ObserversCIter
A const_iterator over a eq::Observer vector.
Definition: client/types.h:193
lunchbox::RefPtr< const Client > ConstClientPtr
A reference-counted pointer to a const eq::Client.
Definition: client/types.h:212
std::vector< Config * > Configs
A vector of pointers to eq::Config.
Definition: client/types.h:142
Frames::iterator FramesIter
An iterator over a eq::Frame vector.
Definition: client/types.h:187
vmml::vector< 3, double > Vector3d
A three-component double vector.
Definition: vmmlib.h:45
vmml::vector< 2, int > Vector2i
A two-component integer vector.
Definition: vmmlib.h:42
Fastest statistics gathering (WindowSettings::IATTR_HINT_STATISTICS, Channel::IATTR_HINT_STATISTICS) ...
Definition: iAttribute.h:63
fabric::ConfigVisitor< Config, ObserverVisitor, LayoutVisitor, CanvasVisitor, NodeVisitor > ConfigVisitor
A visitor to traverse configs and children.
Definition: client/types.h:135