xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

SensorFieldMeter Class Reference

#include <sensorfieldmeter.h>

Inheritance diagram for SensorFieldMeter:
[legend]
Collaboration diagram for SensorFieldMeter:
[legend]

Public Member Functions

 SensorFieldMeter (XOSView *parent, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
 
 ~SensorFieldMeter (void)
 
- Public Member Functions inherited from FieldMeter
 FieldMeter (XOSView *parent, int numfields, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
 
virtual ~FieldMeter (void)
 
virtual void drawfields (int mandatory=0)
 
void setfieldcolor (int field, const char *color)
 
void setfieldcolor (int field, unsigned long color)
 
void docaptions (int val)
 
void dolegends (int val)
 
void dousedlegends (int val)
 
void reset (void)
 
void setUsed (double val, double total)
 
void draw (void)
 
void checkevent (void)
 
void disableMeter (void)
 
virtual void checkResources (void)
 
- Public Member Functions inherited from Meter
 Meter (XOSView *parent, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
 
virtual ~Meter (void)
 
virtual const char * name (void) const
 
void resize (int x, int y, int width, int height)
 
void title (const char *title)
 
const char * title (void)
 
void legend (const char *legend)
 
const char * legend (void)
 
void docaptions (int val)
 
void dolegends (int val)
 
void dousedlegends (int val)
 
int requestevent (void)
 
int getX () const
 
int getY () const
 
int getWidth () const
 
int getHeight () const
 

Protected Member Functions

void updateLegend (void)
 
void checkFields (double low, double high)
 
- Protected Member Functions inherited from FieldMeter
void SetUsedFormat (const char *const str)
 
void drawlegend (void)
 
void drawused (int mandatory)
 
bool checkX (int x, int width) const
 
void setNumFields (int n)
 
void IntervalTimerStart ()
 
void IntervalTimerStop ()
 
double IntervalTimeInMicrosecs ()
 
double IntervalTimeInSecs ()
 
- Protected Member Functions inherited from Meter
double samplesPerSecond ()
 
double secondsPerSample ()
 

Protected Attributes

char unit_ [8]
 
double high_
 
double low_
 
bool has_high_
 
bool has_low_
 
bool negative_
 
unsigned long actcolor_
 
unsigned long highcolor_
 
unsigned long lowcolor_
 
- Protected Attributes inherited from FieldMeter
int numfields_
 
double * fields_
 
double total_
 
double used_
 
double lastused_
 
int * lastvals_
 
int * lastx_
 
unsigned long * colors_
 
unsigned long usedcolor_
 
UsedType print_
 
int printedZeroTotalMesg_
 
int numWarnings_
 
bool metric_
 
int usedoffset_
 
- Protected Attributes inherited from Meter
XOSViewparent_
 
int x_
 
int y_
 
int width_
 
int height_
 
int docaptions_
 
int dolegends_
 
int dousedlegends_
 
int priority_
 
int counter_
 
char * title_
 
char * legend_
 
unsigned long textcolor_
 

Additional Inherited Members

- Static Public Member Functions inherited from Meter
static double scaleValue (double value, char *scale, bool metric)
 
- Protected Types inherited from FieldMeter
enum  UsedType {
  INVALID_0 , FLOAT , PERCENT , AUTOSCALE ,
  INVALID_TAIL
}
 

Detailed Description

Definition at line 16 of file sensorfieldmeter.h.

Constructor & Destructor Documentation

◆ SensorFieldMeter()

SensorFieldMeter::SensorFieldMeter ( XOSView parent,
const char *  title = "",
const char *  legend = "",
int  docaptions = 0,
int  dolegends = 0,
int  dousedlegends = 0 
)

Definition at line 15 of file sensorfieldmeter.cc.

References has_high_, has_low_, high_, low_, FieldMeter::metric_, negative_, and unit_.

◆ ~SensorFieldMeter()

SensorFieldMeter::~SensorFieldMeter ( void  )

Definition at line 26 of file sensorfieldmeter.cc.

Member Function Documentation

◆ checkFields()

◆ updateLegend()

void SensorFieldMeter::updateLegend ( void  )
protected

Member Data Documentation

◆ actcolor_

unsigned long SensorFieldMeter::actcolor_
protected

◆ has_high_

bool SensorFieldMeter::has_high_
protected

◆ has_low_

bool SensorFieldMeter::has_low_
protected

◆ high_

◆ highcolor_

unsigned long SensorFieldMeter::highcolor_
protected

◆ low_

◆ lowcolor_

unsigned long SensorFieldMeter::lowcolor_
protected

◆ negative_

bool SensorFieldMeter::negative_
protected

Definition at line 28 of file sensorfieldmeter.h.

Referenced by checkFields(), SensorFieldMeter(), and updateLegend().

◆ unit_

char SensorFieldMeter::unit_[8]
protected

The documentation for this class was generated from the following files: