root/foundation-apps/grosview-maxx/fieldmeterdecay.h
| Revision 2, 1.3 KB (checked in by emasson, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | // |
| 2 | // Original FieldMeter class is Copyright (c) 1994, 2006 by Mike Romberg |
| 3 | // ( mike.romberg@noaa.gov ) |
| 4 | // Modifications from FieldMeter class done in Oct. 1995 |
| 5 | // by Brian Grayson ( bgrayson@netbsd.org ) |
| 6 | // |
| 7 | // This file was written by Brian Grayson for the NetBSD and xosview |
| 8 | // projects. |
| 9 | // This file may be distributed under terms of the GPL or of the BSD |
| 10 | // license, whichever you choose. The full license notices are |
| 11 | // contained in the files COPYING.GPL and COPYING.BSD, which you |
| 12 | // should have received. If not, contact one of the xosview |
| 13 | // authors for a copy. |
| 14 | // |
| 15 | |
| 16 | #ifndef _FIELDMETERDECAY_H_ |
| 17 | #define _FIELDMETERDECAY_H_ |
| 18 | |
| 19 | #define FIELDMETERDECAY_H_CVSID "$Id: fieldmeterdecay.h,v 1.1.1.1 2008/05/04 15:53:48 emasson Exp $" |
| 20 | |
| 21 | #include "meter.h" |
| 22 | #include "fieldmeter.h" |
| 23 | |
| 24 | class FieldMeterDecay : public FieldMeter { |
| 25 | public: |
| 26 | FieldMeterDecay( XOSView *parent, int numfields, |
| 27 | const char *title = "", const char *legend = "", |
| 28 | int docaptions = 0, int dolegends = 0, int dousedlegends = 0 ); |
| 29 | virtual ~FieldMeterDecay( void ); |
| 30 | |
| 31 | virtual void drawfields( int manditory = 0 ); |
| 32 | |
| 33 | protected: |
| 34 | int dodecay_; |
| 35 | int firsttime_; // Used to set up decaying fields right the first time. |
| 36 | float *decay_; |
| 37 | float *lastDecayval_; |
| 38 | private: |
| 39 | }; |
| 40 | |
| 41 | #endif |
Note: See TracBrowser
for help on using the browser.
