DDraceNetwork Documentation
Loading...
Searching...
No Matches
CGraph Class Reference

#include <graph.h>

Collaboration diagram for CGraph:
[legend]

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

CEntrym_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< CEntrym_Entries
int m_Precision
bool m_SummaryStats

Constructor & Destructor Documentation

◆ CGraph()

CGraph::CGraph ( int MaxEntries,
int Precision,
bool SummaryStats )

Member Function Documentation

◆ Add()

void CGraph::Add ( float Value,
ColorRGBA Color = ColorRGBA(1.0f, 1.0f, 1.0f, 0.75f) )

◆ Init()

void CGraph::Init ( float Min,
float Max )

◆ InsertAt()

void CGraph::InsertAt ( int64_t Time,
float Value,
ColorRGBA Color = ColorRGBA(1.0f, 1.0f, 1.0f, 0.75f) )

◆ Render()

void CGraph::Render ( IGraphics * pGraphics,
ITextRender * pTextRender,
float x,
float y,
float w,
float h,
const char * pDescription )

◆ RenderDataLines()

void CGraph::RenderDataLines ( IGraphics * pGraphics,
float x,
float y,
float w,
float h )
private

◆ Scale()

void CGraph::Scale ( int64_t WantedTotalTime)

◆ SetMax()

void CGraph::SetMax ( float Max)

◆ SetMin()

void CGraph::SetMin ( float Min)

Member Data Documentation

◆ m_Average

float CGraph::m_Average
private

◆ m_Entries

CDynamicRingBuffer<CEntry> CGraph::m_Entries
private

◆ m_MaxAxis

float CGraph::m_MaxAxis
private

◆ m_MaxRange

float CGraph::m_MaxRange
private

◆ m_MaxValue

float CGraph::m_MaxValue
private

◆ m_MinAxis

float CGraph::m_MinAxis
private

◆ m_MinRange

float CGraph::m_MinRange
private

◆ m_MinValue

float CGraph::m_MinValue
private

◆ m_pFirstScaled

CEntry* CGraph::m_pFirstScaled = nullptr
private

◆ m_Precision

int CGraph::m_Precision
private

◆ m_RenderedTotalTime

int64_t CGraph::m_RenderedTotalTime = 0
private

◆ m_SummaryStats

bool CGraph::m_SummaryStats
private

The documentation for this class was generated from the following files: