"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/fieldmetergraph.h" (11 Jul 2020, 1189 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "fieldmetergraph.h" see the Fossies "Dox" file reference documentation.

    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 #include "fieldmeterdecay.h"
   16 #include "xosview.h"
   17 
   18 
   19 class FieldMeterGraph : public FieldMeterDecay {
   20 public:
   21   FieldMeterGraph( XOSView *parent, int numfields,
   22               const char *title = "", const char *legend = "",
   23               int docaptions = 0, int dolegends = 0, int dousedlegends = 0 );
   24   virtual ~FieldMeterGraph( void );
   25 
   26   virtual void drawfields( int mandatory = 0 );
   27 
   28   virtual void checkResources( void );
   29 
   30 protected:
   31   void setNumCols( int n );
   32 
   33   int useGraph_;
   34   int graphNumCols_;
   35   int graphpos_;
   36   /*  There's some sort of corruption going on -- we can't have
   37    *  variables after the heightfield_ below, otherwise they get
   38    *  corrupted???  */
   39   double *heightfield_;
   40 private:
   41   void drawBar( int i );
   42   enum XOSView::windowVisibilityState lastWinState;
   43 };
   44 
   45 #endif