Equalizer  1.8.0
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
eq/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 PixelData;
65 
66 using namespace fabric::eventEnums;
67 
68 using fabric::ANAGLYPH;
69 using fabric::ASYNC;
70 using fabric::AUTO;
71 using fabric::DRAW_SYNC;
72 using fabric::FASTEST;
73 using fabric::FBO;
74 using fabric::HORIZONTAL;
75 using fabric::LOCAL_SYNC;
76 using fabric::NICEST;
77 using fabric::OFF;
78 using fabric::ON;
79 using fabric::PBUFFER;
80 using fabric::QUAD;
81 using fabric::RGBA16F;
82 using fabric::RGBA32F;
83 using fabric::UNDEFINED;
84 using fabric::VERTICAL;
85 using fabric::WINDOW;
86 
87 using fabric::ColorMask;
88 using fabric::DrawableConfig;
89 using fabric::Errors;
90 using fabric::Event;
91 using fabric::Frustum;
92 using fabric::Frustumf;
93 using fabric::GPUInfo;
94 using fabric::IAttribute;
95 using fabric::KeyEvent;
96 using fabric::Pixel;
97 using fabric::PixelViewport;
98 using fabric::Projection;
99 using fabric::PointerEvent;
100 using fabric::Range;
101 using fabric::RenderContext;
102 using fabric::ResizeEvent;
103 using fabric::Statistic;
104 using fabric::SubPixel;
105 using fabric::Tile;
106 using fabric::Viewport;
107 using fabric::Wall;
108 using fabric::Zoom;
109 
112 
115 
118 
121 
124 
127 
130 
133 
136 
139 // cppcheck-suppress unnecessaryForwardDeclaration
141 
144 
145 //----- Vectors
147 typedef std::vector< Config* > Configs;
149 typedef std::vector< Server* > Servers;
151 typedef std::vector< Node* > Nodes;
153 typedef std::vector< Pipe* > Pipes;
155 typedef std::vector< Window* > Windows;
157 typedef std::vector< Channel* > Channels;
159 typedef std::vector< Frame* > Frames;
161 typedef std::vector< Image* > Images;
163 typedef std::vector< Observer* > Observers;
165 typedef std::vector< Canvas* > Canvases;
167 typedef std::vector< Layout* > Layouts;
169 typedef std::vector< Segment* > Segments;
171 typedef std::vector< View* > Views;
173 typedef std::vector< PixelViewport > PixelViewports;
174 
176 typedef Configs::const_iterator ConfigsCIter;
178 typedef Servers::const_iterator ServersCIter;
180 typedef Nodes::const_iterator NodesCIter;
182 typedef Pipes::const_iterator PipesCIter;
184 typedef Windows::const_iterator WindowsCIter;
186 typedef Channels::const_iterator ChannelsCIter;
188 typedef Frames::iterator FramesIter;
190 typedef Frames::const_iterator FramesCIter;
192 typedef Images::const_iterator ImagesCIter;
194 typedef Observers::const_iterator ObserversCIter;
196 typedef Canvases::const_iterator CanvasesCIter;
198 typedef Layouts::const_iterator LayoutsCIter;
200 typedef Segments::const_iterator SegmentsCIter;
202 typedef Views::const_iterator ViewsCIter;
204 typedef PixelViewports::const_iterator PixelViewportsCIter;
205 
207 typedef lunchbox::RefPtr< Client > ClientPtr;
209 typedef lunchbox::RefPtr< const Client > ConstClientPtr;
211 typedef lunchbox::RefPtr< Server > ServerPtr;
213 typedef lunchbox::RefPtr< FrameData > FrameDataPtr;
215 typedef lunchbox::RefPtr< const FrameData > ConstFrameDataPtr;
216 
217 using fabric::Matrix3d;
218 using fabric::Matrix4d;
219 using fabric::Matrix3f;
220 using fabric::Matrix4f;
221 using fabric::Vector2i;
222 using fabric::Vector3i;
223 using fabric::Vector4i;
224 using fabric::Vector3d;
225 using fabric::Vector4d;
226 using fabric::Vector2f;
227 using fabric::Vector3f;
228 using fabric::Vector4f;
229 using fabric::Vector3ub;
230 using fabric::Frustumf;
231 
232 using fabric::EventOCommand;
233 using fabric::FocusMode;
237 using fabric::CMD_CONFIG_EVENT;
238 
239 using fabric::Statistics;
240 using fabric::Strings;
241 using fabric::StringsCIter;
242 using fabric::Viewports;
243 
245 typedef vmml::frustum_culler< float > FrustumCullerf;
246 
248 typedef std::vector< uint8_t > Vectorub;
250 typedef std::vector< uint16_t > Vectorus;
251 
252 using co::f_bool_t;
253 
254 using lunchbox::a_int32_t;
255 using lunchbox::backtrace;
256 using lunchbox::uint128_t;
257 
260 typedef co::WorkerThread< CommandQueue > Worker; // instantiated in worker.cpp
261 
262 namespace detail
263 {
264 class InitVisitor;
265 class ExitVisitor;
266 class FrameVisitor;
267 }
268 
269 namespace dc { class Proxy; }
271 }
272 
274 // GLEW
275 struct GLEWContextStruct;
276 struct WGLEWContextStruct;
277 struct GLXEWContextStruct;
278 typedef struct GLEWContextStruct GLEWContext;
279 typedef struct WGLEWContextStruct WGLEWContext;
280 typedef struct GLXEWContextStruct GLXEWContext;
281 namespace GLStats { class Data; }
284 #endif // EQ_TYPES_H
fabric::ElementVisitor< Window, ChannelVisitor > WindowVisitor
A visitor to traverse windows and children.
std::vector< Node * > Nodes
A vector of pointers to eq::Node.
Channels::const_iterator ChannelsCIter
A const_iterator over a eq::Channel vector.
std::vector< Server * > Servers
A vector of pointers to eq::Server.
IAttribute
Possible values for integer attributes.
Definition: iAttribute.h:30
A visitor to traverse configs and all children.
Definition: configVisitor.h:36
Windows::const_iterator WindowsCIter
A const_iterator over a eq::Window vector.
Segments::const_iterator SegmentsCIter
A const_iterator over a eq::Segment vector.
A configuration is a visualization session driven by an application.
Images::const_iterator ImagesCIter
A const_iterator over a eq::Image vector.
std::vector< Error > Errors
A vector of eq::fabric::Error.
Pipes::const_iterator PipesCIter
A const_iterator over a eq::Pipe vector.
Canvases::const_iterator CanvasesCIter
A const_iterator over a eq::Canvas vector.
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.
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.
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.
std::vector< Layout * > Layouts
A vector of pointers to eq::Layout.
fabric::ElementVisitor< Pipe, WindowVisitor > PipeVisitor
A visitor to traverse pipes and children.
lunchbox::RefPtr< Server > ServerPtr
A reference-counted pointer to an eq::Server.
std::vector< Image * > Images
A vector of pointers to eq::Image.
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.
Layouts::const_iterator LayoutsCIter
A const_iterator over a eq::Layout vector.
std::vector< Window * > Windows
A vector of pointers to eq::Window.
std::vector< View * > Views
A vector of pointers to eq::View.
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.
fabric::ElementVisitor< Layout, ViewVisitor > LayoutVisitor
A visitor to traverse layouts and children.
fabric::ElementVisitor< Node, PipeVisitor > NodeVisitor
A visitor to traverse nodes and children.
Focus on physical projection.
Definition: focusMode.h:31
std::vector< uint8_t > Vectorub
A vector of bytes.
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.
std::vector< Canvas * > Canvases
A vector of pointers to eq::Canvas.
lunchbox::RefPtr< Client > ClientPtr
A reference-counted pointer to an eq::Client.
Local draw sync (Node::IATTR_THREAD_MODEL)
Definition: iAttribute.h:43
Configs::const_iterator ConfigsCIter
A const_iterator over a eq::Config vector.
std::vector< Frame * > Frames
A vector of pointers to eq::Frame.
std::vector< Channel * > Channels
A vector of pointers to eq::Channel.
vmml::frustum_culler< float > FrustumCullerf
< A vector of eq::Viewport
fabric::ElementVisitor< Canvas, SegmentVisitor > CanvasVisitor
A visitor to traverse canvases and children.
Quad-buffered stereo decomposition.
Definition: iAttribute.h:48
PixelViewports::const_iterator PixelViewportsCIter
A const_iterator over a eq::PixelViewport vector.
Nodes::const_iterator NodesCIter
A const_iterator over a eq::Node vector.
Frames::const_iterator FramesCIter
A const_iterator over a eq::Frame vector.
fabric::LeafVisitor< Observer > ObserverVisitor
A visitor to traverse channels.
lunchbox::RefPtr< const FrameData > ConstFrameDataPtr
A reference-counted pointer to a const eq::FrameData.
Views::const_iterator ViewsCIter
A const_iterator over a eq::View vector.
Anaglyphic stereo decomposition.
Definition: iAttribute.h:49
std::vector< Segment * > Segments
A vector of pointers to eq::Segment.
std::vector< Statistic > Statistics
A vector of eq::Statistic events.
fabric::LeafVisitor< Channel > ChannelVisitor
A visitor to traverse channels.
lunchbox::RefPtr< FrameData > FrameDataPtr
A reference-counted pointer to an eq::FrameData.
fabric::LeafVisitor< Segment > SegmentVisitor
A visitor to traverse segments.
Undefined value.
Definition: iAttribute.h:32
std::vector< uint16_t > Vectorus
A vector of unsigned shorts.
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.
lunchbox::RefPtr< const Client > ConstClientPtr
A reference-counted pointer to a const eq::Client.
std::vector< Config * > Configs
A vector of pointers to eq::Config.
Frames::iterator FramesIter
An iterator over a eq::Frame vector.
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.
std::vector< Viewport > Viewports
A vector of eq::Viewport.