]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/trackcircuit.h
New approach for displaying track state
[r2c2.git] / source / 3d / trackcircuit.h
diff --git a/source/3d/trackcircuit.h b/source/3d/trackcircuit.h
new file mode 100644 (file)
index 0000000..ae032b0
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef R2C2_TRACKCIRCUIT_H_
+#define R2C2_TRACKCIRCUIT_H_
+
+#include <libr2c2/trackcircuit.h>
+#include "utility.h"
+
+namespace R2C2 {
+
+class Layout3D;
+class Path3D;
+
+class TrackCircuit3D: public Utility3D, public sigc::trackable
+{
+private:
+       TrackCircuit &track_circuit;
+       std::list<Path3D *> paths;
+
+public:
+       TrackCircuit3D(Layout3D &, TrackCircuit &);
+
+private:
+       void state_changed(Sensor::State);
+};
+
+} // namespace R2C2
+
+#endif