Line | |
---|
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 |
|
---|
20 |
|
---|
21 | protected:
|
---|
22 |
|
---|
23 | void DrawGrid();
|
---|
24 | void DrawBackGround();
|
---|
25 | void DrawCurve();
|
---|
26 |
|
---|
27 | std::vector<float> mData;
|
---|
28 |
|
---|
29 | int mMaxData;
|
---|
30 | int mCurrentIdx;
|
---|
31 | };
|
---|
32 |
|
---|
33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.