GlobeEngine
Channel.h
Go to the documentation of this file.
1 #ifndef EQ_SOLAR_CHANNEL_H
2 #define EQ_SOLAR_CHANNEL_H
3 
4 #include "eqSolar.h"
5 #include <eq/eq.h>
6 #include "SolarEngine.h"
7 
8 
9 namespace eqSolar
10 {
11  struct Label{
12  public:
13  vmml::Vector2f pos;
14  int id;
15  std::string name;
16  };
17 
18  class FrameData;
19  class InitData;
20 
24  class Channel : public eq::Channel
25  {
26  public:
27  Channel( eq::Window* parent);
28 
29  bool stopRendering() const;
30 
31  protected:
32  virtual ~Channel() {}
33 
34  bool configInit( const eq::uint128_t& initID ) override;
35  void frameDraw( const eq::uint128_t& frameID ) override;
36  void frameStart( const eq::uint128_t&, const uint32_t ) override;
37  void frameFinish( const eq::uint128_t&, const uint32_t ) override;
38  void frameViewFinish( const eq::uint128_t& frameID ) override;
39 
40 
41 
42  void notifyStopFrame( const uint32_t lastFrameNumber ) override
43  { _frameRestart = lastFrameNumber + 1; }
44 
45  private:
46  void _drawHelp();
47  const FrameData& _getFrameData() const;
48 
49  geAstro::SolarEngine engine;
50  double screenX;
51  double screenY;
52  std::string path;
53  std::vector<Label>labelVector;
54  std::vector<int>id;
55  bool camSizeSet;
56 
57  uint32_t _frameRestart;
58  eq::PixelViewport _currentPVP;
59  };
60 }
61 
62 #endif // EQ_SOLAR_CHANNEL_H
bool configInit(const eq::uint128_t &initID) override
Definition: Channel.cpp:18
Definition: Channel.h:24
Definition: FrameData.h:16
Definition: Channel.h:9
Channel(eq::Window *parent)
Definition: Channel.cpp:10
void frameDraw(const eq::uint128_t &frameID) override
Definition: Channel.cpp:34
void notifyStopFrame(const uint32_t lastFrameNumber) override
Definition: Channel.h:42
int id
Definition: Channel.h:14
void frameStart(const eq::uint128_t &, const uint32_t) override
Definition: Channel.cpp:161
Definition: InitData.h:8
void frameFinish(const eq::uint128_t &, const uint32_t) override
Definition: Channel.cpp:203
vmml::Vector2f pos
Definition: Channel.h:13
virtual ~Channel()
Definition: Channel.h:32
void frameViewFinish(const eq::uint128_t &frameID) override
Definition: Channel.cpp:212
Definition: Channel.h:11
bool stopRendering() const
Definition: Channel.cpp:237
std::string name
Definition: Channel.h:15