CARMA C++
CellTol.h
1 #ifndef CARMA_UI_RTD_CELLTOL_H
2 #define CARMA_UI_RTD_CELLTOL_H
3 
4 #include "carma/ui/rtd/common/RtDisplay.h"
5 
6 
7 namespace carma {
8 namespace ui {
9 namespace rtd {
10 
11 
17 class CellFloatTol : public CellFloat {
18  public:
28  CellFloatTol(const char* fmt, int rod, const char* legit, const float& data,
29  const float& tol);
38  CellFloatTol(const char* fmt, int rod, const float& data, const float& tol);
40  virtual void updateColor();
41 
42  private:
44  const float& tolerance;
45 };
46 
47 
53 class CellDbleTol : public CellDble {
54  public:
64  CellDbleTol(const char* fmt, int rod, const char* legit, const double& data,
65  const double& tol);
74  CellDbleTol(const char* fmt, int rod, const double& data, const double& tol);
76  virtual void updateColor();
77 
78  private:
80  const double& tolerance;
81 };
82 
83 
84 } // namespace carma::ui::rtd
85 } // namespace carma::ui
86 } // namespace carma
87 
88 
89 #endif
CellDbleTol(const char *fmt, int rod, const char *legit, const double &data, const double &tol)
Constructor.
A Cell with a double for data and dynamic absolute tolerances.
Definition: CellTol.h:53
CellFloatTol(const char *fmt, int rod, const char *legit, const float &data, const float &tol)
Constructor.
const int rod
Number of characters to right of the decimal point.
Definition: RtDisplay.h:893
const char * legit
Deprecated...
Definition: RtDisplay.h:517
const int rod
Number of characters to right of the decimal point.
Definition: RtDisplay.h:941
const float & data
Reference to the data.
Definition: RtDisplay.h:891
virtual void updateColor()
Update the background color.
const double & data
Reference to the data.
Definition: RtDisplay.h:939
A Cell that displays the contents of a double.
Definition: RtDisplay.h:903
A Cell that displays the contents of a float.
Definition: RtDisplay.h:855
A Cell with a double for data and dynamic absolute tolerances.
Definition: CellTol.h:17
virtual void updateColor()
Update the background color.