root/foundation-apps/grosview-maxx/fieldmetergraph.h

Revision 2, 1.2 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
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#define FIELDMETERGRAPH_H_CVSID "$Id: fieldmetergraph.h,v 1.1.1.1 2008/05/04 15:53:48 emasson Exp $"
16
17#include "meter.h"
18#include "fieldmeterdecay.h"
19
20class FieldMeterGraph : public FieldMeterDecay {
21public:
22  FieldMeterGraph( XOSView *parent, int numfields,
23              const char *title = "", const char *legend = "",
24              int docaptions = 0, int dolegends = 0, int dousedlegends = 0 );
25  virtual ~FieldMeterGraph( void );
26
27  virtual void drawfields( int manditory = 0 );
28
29  virtual void checkResources( void );
30
31protected:
32  void setNumCols( int n );
33
34  int useGraph_;
35  int graphNumCols_;
36  int graphpos_;
37  int firstTimeDrawn_;
38  /*  There's some sort of corruption going on -- we can't have
39   *  variables after the heightfield_ below, otherwise they get
40   *  corrupted???  */
41  float *heightfield_;
42private:
43  void drawBar( int i );
44};
45
46#endif
Note: See TracBrowser for help on using the browser.