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
|
//
// 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 )
//
// This file was written by Brian Grayson for the NetBSD and xosview
// projects.
// This file may be distributed under terms of the GPL or of the BSD
// license, whichever you choose. The full license notices are
// contained in the files COPYING.GPL and COPYING.BSD, which you
// should have received. If not, contact one of the xosview
// authors for a copy.
//
#ifndef _FIELDMETERDECAY_H_
#define _FIELDMETERDECAY_H_
#include "fieldmeter.h"
#include "xosview.h"
class FieldMeterDecay : public FieldMeter {
public:
FieldMeterDecay( XOSView *parent, int numfields,
const char *title = "", const char *legend = "",
int docaptions = 0, int dolegends = 0, int dousedlegends = 0 );
virtual ~FieldMeterDecay( void );
virtual void drawfields( int mandatory = 0 );
protected:
int dodecay_;
int firsttime_; // Used to set up decaying fields right the first time.
double *decay_;
double *lastDecayval_;
private:
};
#endif
|