![]() |
DDNet documentation
|
#include <graph.h>
Classes | |
| class | CEntry |
Public Member Functions | |
| CGraph (int MaxEntries, int Precision, bool SummaryStats) | |
| void | Init (float Min, float Max) |
| void | SetMin (float Min) |
| void | SetMax (float Max) |
| void | Scale (int64_t WantedTotalTime) |
| void | Add (float Value, ColorRGBA Color=ColorRGBA(1.0f, 1.0f, 1.0f, 0.75f)) |
| void | InsertAt (int64_t Time, float Value, ColorRGBA Color=ColorRGBA(1.0f, 1.0f, 1.0f, 0.75f)) |
| void | Render (IGraphics *pGraphics, ITextRender *pTextRender, float x, float y, float w, float h, const char *pDescription) |
Private Member Functions | |
| void | RenderDataLines (IGraphics *pGraphics, float x, float y, float w, float h) |
Private Attributes | |
| CEntry * | m_pFirstScaled = nullptr |
| int64_t | m_RenderedTotalTime = 0 |
| float | m_Average |
| float | m_MinAxis |
| float | m_MaxAxis |
| float | m_MinValue |
| float | m_MaxValue |
| float | m_MinRange |
| float | m_MaxRange |
| CDynamicRingBuffer< CEntry > | m_Entries |
| int | m_Precision |
| bool | m_SummaryStats |
| CGraph::CGraph | ( | int | MaxEntries, |
| int | Precision, | ||
| bool | SummaryStats ) |
| void CGraph::Init | ( | float | Min, |
| float | Max ) |
| void CGraph::InsertAt | ( | int64_t | Time, |
| float | Value, | ||
| ColorRGBA | Color = ColorRGBA(1.0f, 1.0f, 1.0f, 0.75f) ) |
| void CGraph::Render | ( | IGraphics * | pGraphics, |
| ITextRender * | pTextRender, | ||
| float | x, | ||
| float | y, | ||
| float | w, | ||
| float | h, | ||
| const char * | pDescription ) |
|
private |
| void CGraph::Scale | ( | int64_t | WantedTotalTime | ) |
| void CGraph::SetMax | ( | float | Max | ) |
| void CGraph::SetMin | ( | float | Min | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |