]> git.tdb.fi Git - r2c2.git/blob - source/3d/signal.h
Robustify sequence handling while applying route plans
[r2c2.git] / source / 3d / signal.h
1 #ifndef R2C2_3D_SIGNAL_H_
2 #define R2C2_3D_SIGNAL_H_
3
4 #include <msp/gl/objectinstance.h>
5 #include "libr2c2/signal.h"
6 #include "object.h"
7
8 namespace R2C2 {
9
10 class Signal3D: public Object3D, public Msp::GL::ObjectInstance
11 {
12 private:
13         Signal &signal;
14
15 public:
16         Signal3D(Layout3D &, Signal &);
17         ~Signal3D();
18
19         virtual Vector get_node() const;
20         virtual bool is_visible() const { return true; }
21
22         Signal &get_signal() const { return signal; }
23         virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
24 };
25
26 } // namespace R2C2
27
28 #endif