Equalizer  1.6.1
eVolve.h
1 
2 /* Copyright (c) 2006-2010, 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 
37 
39 namespace eVolve
40 {
41  class LocalInitData;
42  typedef RawVolumeModelRenderer Renderer;
43 
44 
45  class EVolve : public eq::Client
46  {
47  public:
48  EVolve( const LocalInitData& initData );
49  virtual ~EVolve() {}
50 
52  int run();
53 
54  static const std::string& getHelp();
55 
56  protected:
58  virtual void clientLoop();
59 
60  private:
61  const LocalInitData& _initData;
62  };
63 
64  enum ColorMode
65  {
69  COLOR_ALL
70  };
71 
73  {
77  BG_ALL
78  };
79 
81  {
85  NQ_ALL
86  };
87 
88  enum LogTopics
89  {
90  LOG_STATS = eq::LOG_CUSTOM // 65536
91  };
92 }
93 
94 namespace lunchbox
95 {
96 template<> inline void byteswap( eVolve::ColorMode& value )
97  { byteswap( reinterpret_cast< uint32_t& >( value )); }
98 
99 template<> inline void byteswap( eVolve::BackgroundMode& value )
100  { byteswap( reinterpret_cast< uint32_t& >( value )); }
101 
102 template<> inline void byteswap( eVolve::NormalsQuality& value )
103  { byteswap( reinterpret_cast< uint32_t& >( value )); }
104 }
105 #endif // EVOLVE_H
White background.
Definition: eVolve.h:75
NormalsQuality
Definition: eVolve.h:80
User-defined log topics (65536)
Definition: client/log.h:35
int run()
Run an eqPly instance.
Definition: eVolve.cpp:67
50% unique color + 50% original color
Definition: eVolve.h:68
The client represents a network node of the application in the cluster.
Definition: client/client.h:38
Unique color.
Definition: eVolve.h:76
virtual void clientLoop()
Definition: eVolve.cpp:137
Black background.
Definition: eVolve.h:74
ColorMode
Definition: eVolve.h:64
Use a unique color to demonstrate decomposition.
Definition: eVolve.h:67
BackgroundMode
Definition: eVolve.h:72
Basic normal approximation.
Definition: eVolve.h:84
Highest normals quality.
Definition: eVolve.h:82
Average normals quality.
Definition: eVolve.h:83
Render using the colors defined in the ply file.
Definition: eVolve.h:66