Equalizer  1.13.0
Parallel Rendering Framework
eq/types.h
1 
2 /* Copyright (c) 2007-2016, Stefan Eilemann <eile@equalizergraphics.com>
3  * Daniel Nachbaur <danielnachbaur@gmail.com>
4  * 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 <map>
32 #include <vector>
33 
34 namespace eq
35 {
36 class Canvas;
37 class Channel;
38 class Client;
39 class CommandQueue;
40 class Config;
41 class EventICommand;
42 class Frame;
43 class FrameData;
44 class Image;
45 class Layout;
46 class MessagePump;
47 class Node;
48 class NodeFactory;
49 class NotifierInterface;
50 class Observer;
51 class Pipe;
52 class ResultImageListener;
53 class Segment;
54 class Server;
55 class SystemPipe;
56 class SystemWindow;
57 class View;
58 class Window;
59 class WindowSettings;
60 class WindowSystem;
61 struct ConfigEvent;
62 struct ImageOp;
63 struct PixelData;
64 
65 using namespace fabric::eventEnums;
66 
67 using fabric::ANAGLYPH;
68 using fabric::ASYNC;
69 using fabric::AUTO;
70 using fabric::DRAW_SYNC;
71 using fabric::FASTEST;
72 using fabric::FBO;
73 using fabric::HORIZONTAL;
74 using fabric::LOCAL_SYNC;
75 using fabric::NICEST;
76 using fabric::OFF;
77 using fabric::ON;
78 using fabric::PBUFFER;
79 using fabric::QUAD;
80 using fabric::RGBA16F;
81 using fabric::RGBA32F;
82 using fabric::UNDEFINED;
83 using fabric::VERTICAL;
84 using fabric::WINDOW;
85 
86 using fabric::ColorMask;
87 using fabric::DrawableConfig;
88 using fabric::Errors;
89 using fabric::Event;
90 using fabric::Frustum;
91 using fabric::Frustumf;
92 using fabric::GPUInfo;
93 using fabric::IAttribute;
94 using fabric::KeyEvent;
95 using fabric::Pixel;
96 using fabric::PixelViewport;
97 using fabric::Projection;
98 using fabric::PointerEvent;
99 using fabric::Range;
100 using fabric::RenderContext;
101 using fabric::ResizeEvent;
102 using fabric::Statistic;
103 using fabric::SubPixel;
104 using fabric::Tile;
105 using fabric::Viewport;
106 using fabric::Wall;
107 using fabric::Zoom;
108 
111 
114 
117 
120 
123 
126 
129 
132 
135 
138 // cppcheck-suppress unnecessaryForwardDeclaration
139  CanvasVisitor, NodeVisitor > ConfigVisitor;
140 
143 
144 //----- Vectors
146 typedef std::vector< Config* > Configs;
148 typedef std::vector< Server* > Servers;
150 typedef std::vector< Node* > Nodes;
152 typedef std::vector< Pipe* > Pipes;
154 typedef std::vector< Window* > Windows;
156 typedef std::vector< Channel* > Channels;
158 typedef std::vector< Frame* > Frames;
160 typedef std::vector< Image* > Images;
162 typedef std::vector< Observer* > Observers;
164 typedef std::vector< Canvas* > Canvases;
166 typedef std::vector< Layout* > Layouts;
168 typedef std::vector< Segment* > Segments;
170 typedef std::vector< View* > Views;
172 typedef std::vector< PixelViewport > PixelViewports;
174 typedef std::vector< ImageOp > ImageOps;
175 
177 typedef Configs::const_iterator ConfigsCIter;
179 typedef Servers::const_iterator ServersCIter;
181 typedef Nodes::const_iterator NodesCIter;
183 typedef Pipes::const_iterator PipesCIter;
185 typedef Windows::const_iterator WindowsCIter;
187 typedef Channels::const_iterator ChannelsCIter;
189 typedef Frames::iterator FramesIter;
191 typedef Frames::const_iterator FramesCIter;
193 typedef Images::const_iterator ImagesCIter;
195 typedef Observers::const_iterator ObserversCIter;
197 typedef Canvases::const_iterator CanvasesCIter;
199 typedef Layouts::const_iterator LayoutsCIter;
201 typedef Segments::const_iterator SegmentsCIter;
203 typedef Views::const_iterator ViewsCIter;
205 typedef PixelViewports::const_iterator PixelViewportsCIter;
206 
208 typedef lunchbox::RefPtr< Client > ClientPtr;
210 typedef lunchbox::RefPtr< const Client > ConstClientPtr;
212 typedef lunchbox::RefPtr< Server > ServerPtr;
214 typedef lunchbox::RefPtr< FrameData > FrameDataPtr;
216 typedef lunchbox::RefPtr< const FrameData > ConstFrameDataPtr;
217 
218 using fabric::Matrix3d;
219 using fabric::Matrix4d;
220 using fabric::Matrix3f;
221 using fabric::Matrix4f;
222 using fabric::Vector2i;
223 using fabric::Vector3i;
224 using fabric::Vector4i;
225 using fabric::Vector3d;
226 using fabric::Vector4d;
227 using fabric::Vector2f;
228 using fabric::Vector3f;
229 using fabric::Vector4f;
230 using fabric::Vector3ub;
231 using fabric::Frustumf;
232 using fabric::Quaternionf; // !< A float quaternion
233 
234 using fabric::EventOCommand;
235 using fabric::FocusMode;
239 using fabric::CMD_CONFIG_EVENT;
240 
241 using fabric::Statistics;
242 using fabric::Strings;
243 using fabric::StringsCIter;
244 using fabric::Viewports;
245 
247 using vmml::FrustumCullerf;
248 
250 typedef std::vector< uint8_t > Vectorub;
252 typedef std::vector< uint16_t > Vectorus;
253 
254 using co::f_bool_t;
255 
256 using lunchbox::a_int32_t;
257 using lunchbox::backtrace;
258 using lunchbox::uint128_t;
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 deflect { 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; }
284 class QThread;
287 #endif // EQ_TYPES_H
fabric::ElementVisitor< Window, ChannelVisitor > WindowVisitor
A visitor to traverse windows and children.
Definition: eq/types.h:125
std::vector< Node * > Nodes
A vector of pointers to eq::Node.
Definition: eq/types.h:150
Channels::const_iterator ChannelsCIter
A const_iterator over a eq::Channel vector.
Definition: eq/types.h:187
std::vector< Server * > Servers
A vector of pointers to eq::Server.
Definition: eq/types.h:148
IAttribute
Possible values for integer attributes.
Definition: iAttribute.h:30
std::vector< ImageOp > ImageOps
A vector of image compositing operations.
Definition: eq/types.h:174
A visitor to traverse configs and all children.
Definition: configVisitor.h:36
Windows::const_iterator WindowsCIter
A const_iterator over a eq::Window vector.
Definition: eq/types.h:185
Segments::const_iterator SegmentsCIter
A const_iterator over a eq::Segment vector.
Definition: eq/types.h:201
A configuration is a visualization session driven by an application.
Definition: config.h:55
Images::const_iterator ImagesCIter
A const_iterator over a eq::Image vector.
Definition: eq/types.h:193
std::vector< Error > Errors
A vector of eq::fabric::Error.
Pipes::const_iterator PipesCIter
A const_iterator over a eq::Pipe vector.
Definition: eq/types.h:183
Canvases::const_iterator CanvasesCIter
A const_iterator over a eq::Canvas vector.
Definition: eq/types.h:197
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: leafVisitor.h:28
std::vector< PixelViewport > PixelViewports
A vector of eq::PixelViewport.
Definition: eq/types.h:172
Focus distance relative and in -Z axis of origin.
Definition: focusMode.h:33
enabled (various attributes)
Definition: iAttribute.h:58
disabled (various attributes)
Definition: iAttribute.h:57
fabric::LeafVisitor< View > ViewVisitor
A visitor to traverse views.
Definition: eq/types.h:113
Vertical load-balancing.
Definition: iAttribute.h:47
Focus distance relative and in direction of observer.
Definition: focusMode.h:35
std::vector< Pipe * > Pipes
A vector of pointers to eq::Pipe.
Definition: eq/types.h:152
std::vector< Layout * > Layouts
A vector of pointers to eq::Layout.
Definition: eq/types.h:166
fabric::ElementVisitor< Pipe, WindowVisitor > PipeVisitor
A visitor to traverse pipes and children.
Definition: eq/types.h:128
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
Definition: eq/types.h:212
std::vector< Image * > Images
A vector of pointers to eq::Image.
Definition: eq/types.h:160
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.
Window drawable (WindowSettings::IATTR_HINT_DRAWABLE)
Definition: iAttribute.h:46
fabric::ElementVisitor< Server, ConfigVisitor > ServerVisitor
A visitor to traverse servers and children.
Definition: eq/types.h:142
Layouts::const_iterator LayoutsCIter
A const_iterator over a eq::Layout vector.
Definition: eq/types.h:199
std::vector< Window * > Windows
A vector of pointers to eq::Window.
Definition: eq/types.h:154
std::vector< View * > Views
A vector of pointers to eq::View.
Definition: eq/types.h:170
Includes compile-time defines of Equalizer.
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: eq/types.h:179
fabric::ElementVisitor< Layout, ViewVisitor > LayoutVisitor
A visitor to traverse layouts and children.
Definition: eq/types.h:134
fabric::ElementVisitor< Node, PipeVisitor > NodeVisitor
A visitor to traverse nodes and children.
Definition: eq/types.h:131
Focus on physical projection.
Definition: focusMode.h:31
std::vector< uint8_t > Vectorub
A vector of bytes.
Definition: eq/types.h:250
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: eq/types.h:162
std::vector< Canvas * > Canvases
A vector of pointers to eq::Canvas.
Definition: eq/types.h:164
lunchbox::RefPtr< Client > ClientPtr
A reference-counted pointer to an eq::Client.
Definition: eq/types.h:208
Local draw sync (Node::IATTR_THREAD_MODEL)
Definition: iAttribute.h:43
Configs::const_iterator ConfigsCIter
A const_iterator over a eq::Config vector.
Definition: eq/types.h:177
The Equalizer client library.
Definition: eq/agl/types.h:23
std::vector< Frame * > Frames
A vector of pointers to eq::Frame.
Definition: eq/types.h:158
std::vector< Channel * > Channels
A vector of pointers to eq::Channel.
Definition: eq/types.h:156
fabric::ElementVisitor< Canvas, SegmentVisitor > CanvasVisitor
A visitor to traverse canvases and children.
Definition: eq/types.h:122
Quad-buffered stereo decomposition.
Definition: iAttribute.h:48
PixelViewports::const_iterator PixelViewportsCIter
A const_iterator over a eq::PixelViewport vector.
Definition: eq/types.h:205
Nodes::const_iterator NodesCIter
A const_iterator over a eq::Node vector.
Definition: eq/types.h:181
Frames::const_iterator FramesCIter
A const_iterator over a eq::Frame vector.
Definition: eq/types.h:191
fabric::LeafVisitor< Observer > ObserverVisitor
A visitor to traverse channels.
Definition: eq/types.h:116
lunchbox::RefPtr< const FrameData > ConstFrameDataPtr
A reference-counted pointer to a const eq::FrameData.
Definition: eq/types.h:216
Views::const_iterator ViewsCIter
A const_iterator over a eq::View vector.
Definition: eq/types.h:203
Anaglyphic stereo decomposition.
Definition: iAttribute.h:49
std::vector< Segment * > Segments
A vector of pointers to eq::Segment.
Definition: eq/types.h:168
std::vector< Statistic > Statistics
A vector of eq::Statistic events.
fabric::LeafVisitor< Channel > ChannelVisitor
A visitor to traverse channels.
Definition: eq/types.h:119
lunchbox::RefPtr< FrameData > FrameDataPtr
A reference-counted pointer to an eq::FrameData.
Definition: eq/types.h:214
fabric::LeafVisitor< Segment > SegmentVisitor
A visitor to traverse segments.
Definition: eq/types.h:110
Undefined value.
Definition: iAttribute.h:32
std::vector< uint16_t > Vectorus
A vector of unsigned shorts.
Definition: eq/types.h:252
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: eq/types.h:195
lunchbox::RefPtr< const Client > ConstClientPtr
A reference-counted pointer to a const eq::Client.
Definition: eq/types.h:210
std::vector< Config * > Configs
A vector of pointers to eq::Config.
Definition: eq/types.h:146
Frames::iterator FramesIter
An iterator over a eq::Frame vector.
Definition: eq/types.h:189
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: eq/types.h:139
std::vector< Viewport > Viewports
A vector of eq::Viewport.