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 | void SetGraphColor(float *col);
|
---|
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;
|
---|
32 | float mGraphColor[3];
|
---|
33 | };
|
---|
34 |
|
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.