Equalizer  1.6.1
eVolve/initData.h
1 
2 /* Copyright (c) 2006-2012, Stefan Eilemann <eile@equalizergraphics.com>
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *
7  * - Redistributions of source code must retain the above copyright notice, this
8  * list of conditions and the following disclaimer.
9  * - Redistributions in binary form must reproduce the above copyright notice,
10  * this list of conditions and the following disclaimer in the documentation
11  * and/or other materials provided with the distribution.
12  * - Neither the name of Eyescale Software GmbH nor the names of its
13  * contributors may be used to endorse or promote products derived from this
14  * software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26  * POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #ifndef EVOLVE_INITDATA_H
30 #define EVOLVE_INITDATA_H
31 
32 #include "eVolve.h"
33 #include "frameData.h"
34 
35 #include <eq/eq.h>
36 
37 namespace eVolve
38 {
39  class InitData : public co::Object
40  {
41  public:
42  InitData();
43  virtual ~InitData();
44 
45  void setFrameDataID( const co::UUID& id ) { _frameDataID = id; }
46 
47  lunchbox::UUID getFrameDataID() const { return _frameDataID; }
48  eq::WindowSystem getWindowSystem() const { return _windowSystem; }
49  uint32_t getPrecision() const { return _precision; }
50  float getBrightness() const { return _brightness; }
51  float getAlpha() const { return _alpha; }
52  const std::string& getFilename() const { return _filename; }
53 
54  protected:
55  virtual void getInstanceData( co::DataOStream& os );
56  virtual void applyInstanceData( co::DataIStream& is );
57 
58  void setWindowSystem( const eq::WindowSystem& windowSystem )
59  { _windowSystem = windowSystem; }
60  void setPrecision( const uint32_t precision ){ _precision = precision; }
61  void setBrightness( const float brightness ) {_brightness = brightness;}
62  void setAlpha( const float alpha ) { _alpha = alpha;}
63  void setFilename( const std::string& filename ) { _filename = filename;}
64 
65  private:
66  lunchbox::UUID _frameDataID;
67  eq::WindowSystem _windowSystem;
68  uint32_t _precision;
69  float _brightness;
70  float _alpha;
71  std::string _filename;
72  };
73 }
74 
75 
76 #endif // EVOLVE_INITDATA_H
77 
The list of possible window systems.
Definition: windowSystem.h:68