DDraceNetwork Docs
CGraph Class Reference

#include <graph.h>

Collaboration diagram for CGraph:
[legend]

Classes

struct  SEntry
 

Public Member Functions

 CGraph (int MaxEntries)
 
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 Attributes

SEntrym_pFirstScaled = nullptr
 
int64_t m_RenderedTotalTime = 0
 
float m_Min
 
float m_Max
 
float m_MinRange
 
float m_MaxRange
 
CDynamicRingBuffer< SEntrym_Entries
 

Constructor & Destructor Documentation

◆ CGraph()

CGraph::CGraph ( int  MaxEntries)

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 
)

◆ Scale()

void CGraph::Scale ( int64_t  WantedTotalTime)

◆ SetMax()

void CGraph::SetMax ( float  Max)

◆ SetMin()

void CGraph::SetMin ( float  Min)

Member Data Documentation

◆ m_Entries

CDynamicRingBuffer<SEntry> CGraph::m_Entries
private

◆ m_Max

float CGraph::m_Max
private

◆ m_MaxRange

float CGraph::m_MaxRange
private

◆ m_Min

float CGraph::m_Min
private

◆ m_MinRange

float CGraph::m_MinRange
private

◆ m_pFirstScaled

SEntry* CGraph::m_pFirstScaled = nullptr
private

◆ m_RenderedTotalTime

int64_t CGraph::m_RenderedTotalTime = 0
private

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