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)  

FieldMeterGraph Class Reference

#include <fieldmetergraph.h>

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

Public Member Functions

 FieldMeterGraph (XOSView *parent, int numfields, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
 
virtual ~FieldMeterGraph (void)
 
virtual void drawfields (int mandatory=0)
 
virtual void checkResources (void)
 
- Public Member Functions inherited from FieldMeterDecay
 FieldMeterDecay (XOSView *parent, int numfields, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
 
virtual ~FieldMeterDecay (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)
 
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)
 
- 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 setNumCols (int n)
 
- 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

int useGraph_
 
int graphNumCols_
 
int graphpos_
 
double * heightfield_
 
- Protected Attributes inherited from FieldMeterDecay
int dodecay_
 
int firsttime_
 
double * decay_
 
double * lastDecayval_
 
- 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_
 

Private Member Functions

void drawBar (int i)
 

Private Attributes

enum XOSView::windowVisibilityState lastWinState
 

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 19 of file fieldmetergraph.h.

Constructor & Destructor Documentation

◆ FieldMeterGraph()

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

Definition at line 29 of file fieldmetergraph.cc.

References heightfield_, lastWinState, XOSView::OBSCURED, setNumCols(), and useGraph_.

◆ ~FieldMeterGraph()

FieldMeterGraph::~FieldMeterGraph ( void  )
virtual

Definition at line 47 of file fieldmetergraph.cc.

References heightfield_.

Member Function Documentation

◆ checkResources()

◆ drawBar()

◆ drawfields()

◆ setNumCols()

void FieldMeterGraph::setNumCols ( int  n)
protected

Definition at line 198 of file fieldmetergraph.cc.

References graphNumCols_, graphpos_, and heightfield_.

Referenced by checkResources(), and FieldMeterGraph().

Member Data Documentation

◆ graphNumCols_

int FieldMeterGraph::graphNumCols_
protected

Definition at line 34 of file fieldmetergraph.h.

Referenced by drawBar(), drawfields(), and setNumCols().

◆ graphpos_

int FieldMeterGraph::graphpos_
protected

Definition at line 35 of file fieldmetergraph.h.

Referenced by drawfields(), and setNumCols().

◆ heightfield_

double* FieldMeterGraph::heightfield_
protected

Definition at line 39 of file fieldmetergraph.h.

Referenced by drawBar(), drawfields(), FieldMeterGraph(), setNumCols(), and ~FieldMeterGraph().

◆ lastWinState

enum XOSView::windowVisibilityState FieldMeterGraph::lastWinState
private

Definition at line 41 of file fieldmetergraph.h.

Referenced by drawfields(), and FieldMeterGraph().

◆ useGraph_


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