Rev | Line | |
---|
[2827] | 1 | #ifndef _PERFORMANCEGRAPH_H
|
---|
| 2 | #define _PERFORMANCEGRAPH_H
|
---|
| 3 |
|
---|
| 4 | #include <vector>
|
---|
| 5 |
|
---|
| 6 | /** Class for drawing a performance graph into the render window
|
---|
| 7 | */
|
---|
| 8 | class PerformanceGraph
|
---|
| 9 | {
|
---|
| 10 | public:
|
---|
| 11 |
|
---|
| 12 | PerformanceGraph(const int maxData);
|
---|
| 13 |
|
---|
| 14 | void Draw();
|
---|
| 15 |
|
---|
| 16 | void AddData(float data);
|
---|
| 17 |
|
---|
| 18 | void Reset();
|
---|
| 19 |
|
---|
[2828] | 20 | void SetGraphColor(float *col);
|
---|
[2827] | 21 |
|
---|
| 22 | protected:
|
---|
| 23 |
|
---|
| 24 | void DrawGrid();
|
---|
| 25 | void DrawBackGround();
|
---|
| 26 | void DrawCurve();
|
---|
| 27 |
|
---|
| 28 | std::vector<float> mData;
|
---|
| 29 |
|
---|
| 30 | int mMaxData;
|
---|
| 31 | int mCurrentIdx;
|
---|
[2828] | 32 | float mGraphColor[3];
|
---|
[2827] | 33 | };
|
---|
| 34 |
|
---|
| 35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.