CARMA C++
ZebraVisitor.h
1 #ifndef CARMA_UI_RTD_ZEBRA_VISITOR_H
2 #define CARMA_UI_RTD_ZEBRA_VISITOR_H
3 
4 #include <set>
5 #include <string>
6 
7 #include "carma/ui/rtd/common/ColorVisitor.h"
9 #include "carma/ui/rtd/common/RtDisplay.h"
10 
12 
13 #include <boost/shared_ptr.hpp>
14 
15 namespace carma {
16 namespace ui {
17 namespace rtd {
18 
21 class ZebraVisitor : public ColorVisitor {
22  public:
23  explicit ZebraVisitor(const CellColor &goodColor = LIGHT_GRAY_CELL_COLOR);
24  virtual ~ZebraVisitor();
25 
26  void addMonitorContainer(const carma::monitor::MonitorContainer &c, const int mod = 2);
27  void addMonitorContainer(carma::monitor::MonitorContainer *c, const int mod = 2);
28 };
29 
30 typedef boost::shared_ptr<ZebraVisitor> ZebraVisitorPtr;
31 
32 } // namespace carma::ui::rtd
33 } // namespace carma::ui
34 } // namespace carma
35 
36 #endif
Cell that takes a MonitorPoint and displays its current value.
A generic monitor system container base class.
A generic monitor system container base class.
enum carma::ui::rtd::CellColorEnum CellColor
Cell color choices.
Visitor that post processes a set of MonitorCell to have good and bad colors set to something other t...
Definition: ColorVisitor.h:19
Visitor that post processes a set of MonitorCell to have zebra-like coloring (alternating white and g...
Definition: ZebraVisitor.h:21