diff options
author | joye <joye> | 2014-05-05 17:13:49 (GMT) |
---|---|---|
committer | joye <joye> | 2014-05-05 17:13:49 (GMT) |
commit | 087375001ab2d4534011ef295bedf70b89cc3986 (patch) | |
tree | 8ec440b9e1a6b1331b561080e1be11887d3bcba6 /src/bltGraphBar.h | |
parent | fefb3855ea88bea66eea1310084e38a8f6744502 (diff) | |
download | blt-087375001ab2d4534011ef295bedf70b89cc3986.zip blt-087375001ab2d4534011ef295bedf70b89cc3986.tar.gz blt-087375001ab2d4534011ef295bedf70b89cc3986.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGraphBar.h')
-rw-r--r-- | src/bltGraphBar.h | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/src/bltGraphBar.h b/src/bltGraphBar.h index a8816da..5fade66 100644 --- a/src/bltGraphBar.h +++ b/src/bltGraphBar.h @@ -34,30 +34,6 @@ #include "bltGraph.h" -class BarGroup { - public: - int nSegments; - Axis* xAxis; - Axis* yAxis; - float sum; - int count; - float lastY; - size_t index; - - public: - BarGroup(); -}; - -typedef struct { - float value; - Axis* xAxis; - Axis* yAxis; -} BarSetKey; - -typedef enum { - BARS_INFRONT, BARS_STACKED, BARS_ALIGNED, BARS_OVERLAP -} BarMode; - typedef struct { double aspect; Tk_3DBorder normalBg; @@ -87,13 +63,41 @@ typedef struct { int reqPlotHeight; // bar graph - BarMode barMode; + int barMode; double barWidth; double baseline; } BarGraphOptions; +class BarGroup { + public: + int nSegments; + Axis* xAxis; + Axis* yAxis; + float sum; + int count; + float lastY; + size_t index; + + public: + BarGroup(); +}; + +class BarSetKey { + public: + float value; + Axis* xAxis; + Axis* yAxis; + + public: + BarSetKey(); + BarSetKey(float, Axis*, Axis*); +}; + class BarGraph : public Graph { public: + enum BarMode {INFRONT, STACKED, ALIGNED, OVERLAP}; + + public: BarGroup* barGroups_; int nBarGroups_; Tcl_HashTable setTable_; @@ -114,7 +118,6 @@ class BarGraph : public Graph { void configure(); int createPen(const char*, int, Tcl_Obj* const []); int createElement(int, Tcl_Obj* const []); - }; #endif |