forked from hills/xosview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fieldmetergraph.h
45 lines (36 loc) · 1.16 KB
/
fieldmetergraph.h
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
//
// Original FieldMeter class is Copyright (c) 1994, 2006 by Mike Romberg
// ( [email protected] )
//
// Modifications from FieldMeter class done in Oct. 1995
// by Brian Grayson ( [email protected] )
//
// Modifications from FieldMeterDecay class done in Oct. 1998
// by Scott McNab ( [email protected] )
//
#ifndef _FIELDMETERGRAPH_H_
#define _FIELDMETERGRAPH_H_
#include "fieldmeterdecay.h"
#include "xosview.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 mandatory = 0 );
virtual void checkResources( void );
protected:
void setNumCols( int n );
int useGraph_;
int graphNumCols_;
int graphpos_;
/* There's some sort of corruption going on -- we can't have
* variables after the heightfield_ below, otherwise they get
* corrupted??? */
double *heightfield_;
private:
void drawBar( int i );
enum XOSView::windowVisibilityState lastWinState;
};
#endif