1 #include "carma/ui/rtd/common/RtDisplay.h"
10 class CorrModeCell :
public MonitorCell {
26 CorrModeCell(
int cellWidth,
28 virtual ~CorrModeCell();
32 CorrModeCell(
const CorrModeCell & rhs );
33 CorrModeCell& operator=(
const CorrModeCell & rhs );
37 carma::ui::rtd::CorrModeCell::CorrModeCell(
int cellWidth,
39 carma::ui::rtd::MonitorCell(cellWidth, true, monitorPoint, 1)
43 carma::ui::rtd::CorrModeCell::~CorrModeCell()
48 carma::ui::rtd::CorrModeCell::computeColor()
50 if (isGrayedOut())
return LIGHT_GRAY_TEXT_CELL_COLOR;
55 validity = mp_.getAveValidity( );
57 validity = mp_.getValidity( sampleNo_ - 1 );
62 case carma::monitor::MonitorPoint::VALID_ERROR_HIGH:
63 case carma::monitor::MonitorPoint::VALID_ERROR_LOW:
64 case carma::monitor::MonitorPoint::VALID_ERROR:
65 result = computeErrorColor( );
68 case carma::monitor::MonitorPoint::VALID_WARNING_HIGH:
69 case carma::monitor::MonitorPoint::VALID_WARNING_LOW:
70 case carma::monitor::MonitorPoint::VALID_WARNING:
71 result = computeWarnColor( );
75 const ::std::string text = computeText();
77 if ( text.find(
"X") != ::std::string::npos )
78 result = computeWarnColor( );
80 result = computeGoodColor( );
VALIDITY
Validity states of the data value.
Abstract base class for all monitor points.
Cell that takes a MonitorPoint and displays its current value.
Abstract base class for a monitor point.
enum carma::ui::rtd::CellColorEnum CellColor
Cell color choices.