Equalizer  1.8.0
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
eVolve.h
1 
2 /* Copyright (c) 2006-2014, Stefan Eilemann <eile@equalizergraphics.com>
3  * 2007-2011, Maxim Makhinya <maxmah@gmail.com>
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * - Redistributions of source code must retain the above copyright notice, this
9  * list of conditions and the following disclaimer.
10  * - Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  * - Neither the name of Eyescale Software GmbH nor the names of its
14  * contributors may be used to endorse or promote products derived from this
15  * software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 #ifndef EVOLVE_H
31 #define EVOLVE_H
32 
33 #include <eq/eq.h>
34 
35 #include "rawVolModelRenderer.h"
36 
38 namespace eVolve
39 {
40 class LocalInitData;
41 typedef RawVolumeModelRenderer Renderer;
42 
43 class EVolve : public eq::Client
44 {
45 public:
46  EVolve( const LocalInitData& initData );
47 
49  int run();
50 
51  static const std::string& getHelp();
52 
53 protected:
54  virtual ~EVolve() {}
55 
57  virtual void clientLoop();
58 
59 private:
60  const LocalInitData& _initData;
61 };
62 
64 {
68  COLOR_ALL
69 };
70 
72 {
76  BG_ALL
77 };
78 
80 {
84  NQ_ALL
85 };
86 
87 enum LogTopics
88 {
89  LOG_STATS = eq::LOG_CUSTOM // 65536
90 };
91 }
92 
93 namespace lunchbox
94 {
95 template<> inline void byteswap( eVolve::ColorMode& value )
96 { byteswap( reinterpret_cast< uint32_t& >( value )); }
97 
98 template<> inline void byteswap( eVolve::BackgroundMode& value )
99 { byteswap( reinterpret_cast< uint32_t& >( value )); }
100 
101 template<> inline void byteswap( eVolve::NormalsQuality& value )
102 { byteswap( reinterpret_cast< uint32_t& >( value )); }
103 }
104 #endif // EVOLVE_H
Unique color.
Definition: eVolve.h:75
NormalsQuality
Definition: eVolve.h:79
White background.
Definition: eVolve.h:74
ColorMode
Definition: eVolve.h:63
User-defined log topics (65536)
Definition: client/log.h:36
Average normals quality.
Definition: eVolve.h:82
BackgroundMode
Definition: eVolve.h:71
virtual void clientLoop()
Definition: eVolve.cpp:130
Use a unique color to demonstrate decomposition.
Definition: eVolve.h:66
Basic normal approximation.
Definition: eVolve.h:83
Black background.
Definition: eVolve.h:73
int run()
Run an eqPly instance.
Definition: eVolve.cpp:67
Highest normals quality.
Definition: eVolve.h:81
The client represents a network node of the application in the cluster.
Definition: client/client.h:39
Render using the colors defined in the ply file.
Definition: eVolve.h:65
50% unique color + 50% original color
Definition: eVolve.h:67