1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
//
// Original FieldMeter class is Copyright (c) 1994, 2006 by Mike Romberg
// ( mike.romberg@noaa.gov )
//
// Modifications from FieldMeter class done in Oct. 1995
// by Brian Grayson ( bgrayson@netbsd.org )
//
// Modifications from FieldMeterDecay class done in Oct. 1998
// by Scott McNab ( jedi@tartarus.uwa.edu.au )
//
#ifndef _FIELDMETERGRAPH_H_
#define _FIELDMETERGRAPH_H_
#define FIELDMETERGRAPH_H_CVSID "$Id$"
#include "meter.h"
#include "fieldmeterdecay.h"
class FieldMeterGraph : public FieldMeterDecay {
public:
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 manditory = 0 );
virtual void checkResources( void );
protected:
void setNumCols( int n );
int useGraph_;
int graphNumCols_;
int graphpos_;
int firstTimeDrawn_;
/* There's some sort of corruption going on -- we can't have
* variables after the heightfield_ below, otherwise they get
* corrupted??? */
float *heightfield_;
private:
void drawBar( int i );
};
#endif
|