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.h
Go to the documentation of this file.
1 //
2 // Original FieldMeter class is Copyright (c) 1994, 2006 by Mike Romberg
3 // ( mike.romberg@noaa.gov )
4 //
5 // Modifications from FieldMeter class done in Oct. 1995
6 // by Brian Grayson ( bgrayson@netbsd.org )
7 //
8 // Modifications from FieldMeterDecay class done in Oct. 1998
9 // by Scott McNab ( jedi@tartarus.uwa.edu.au )
10 //
11 
12 #ifndef _FIELDMETERGRAPH_H_
13 #define _FIELDMETERGRAPH_H_
14 
15 #include "fieldmeterdecay.h"
16 #include "xosview.h"
17 
18 
20 public:
21  FieldMeterGraph( XOSView *parent, int numfields,
22  const char *title = "", const char *legend = "",
23  int docaptions = 0, int dolegends = 0, int dousedlegends = 0 );
24  virtual ~FieldMeterGraph( void );
25 
26  virtual void drawfields( int mandatory = 0 );
27 
28  virtual void checkResources( void );
29 
30 protected:
31  void setNumCols( int n );
32 
33  int useGraph_;
35  int graphpos_;
36  /* There's some sort of corruption going on -- we can't have
37  * variables after the heightfield_ below, otherwise they get
38  * corrupted??? */
39  double *heightfield_;
40 private:
41  void drawBar( int i );
43 };
44 
45 #endif
void drawBar(int i)
void setNumCols(int n)
virtual void checkResources(void)
virtual void drawfields(int mandatory=0)
enum XOSView::windowVisibilityState lastWinState
double * heightfield_
FieldMeterGraph(XOSView *parent, int numfields, const char *title="", const char *legend="", int docaptions=0, int dolegends=0, int dousedlegends=0)
virtual ~FieldMeterGraph(void)
void dousedlegends(int val)
Definition: fieldmeter.h:27
void dolegends(int val)
Definition: fieldmeter.h:26
void docaptions(int val)
Definition: fieldmeter.h:25
const char * title(void)
Definition: meter.h:25
const char * legend(void)
Definition: meter.h:27
windowVisibilityState
Definition: xosview.h:34