OpenClonk
C4Graph Class Referenceabstract

#include <C4Network2Stats.h>

Inheritance diagram for C4Graph:
[legend]

Public Types

typedef float ValueType
 
typedef int TimeType
 

Public Member Functions

 C4Graph ()
 
virtual ~C4Graph ()=default
 
void SetTitle (const char *szNewTitle)
 
void SetColorDw (DWORD dwClr)
 
virtual TimeType GetStartTime () const =0
 
virtual TimeType GetEndTime () const =0
 
virtual ValueType GetValue (TimeType iAtTime) const =0
 
virtual ValueType GetMedianValue (TimeType iStartTime, TimeType iEndTime) const =0
 
virtual ValueType GetMinValue () const =0
 
virtual ValueType GetMaxValue () const =0
 
virtual int GetSeriesCount () const =0
 
virtual const C4GraphGetSeries (int iIndex) const =0
 
DWORD GetColorDw () const
 
const char * GetTitle () const
 
virtual void Update () const
 
virtual void SetAverageTime (int iToTime)=0
 
virtual void SetMultiplier (ValueType fToVal)=0
 

Detailed Description

Definition at line 24 of file C4Network2Stats.h.

Member Typedef Documentation

◆ TimeType

typedef int C4Graph::TimeType

Definition at line 28 of file C4Network2Stats.h.

◆ ValueType

typedef float C4Graph::ValueType

Definition at line 27 of file C4Network2Stats.h.

Constructor & Destructor Documentation

◆ C4Graph()

C4Graph::C4Graph ( )

Definition at line 27 of file C4Network2Stats.cpp.

28  : szTitle(LoadResStr("IDS_NET_GRAPH"))
29 {
30 }
const char * LoadResStr(const char *id)
Definition: C4Language.h:83

◆ ~C4Graph()

virtual C4Graph::~C4Graph ( )
virtualdefault

Member Function Documentation

◆ GetColorDw()

DWORD C4Graph::GetColorDw ( ) const
inline

Definition at line 55 of file C4Network2Stats.h.

55 { return dwColor; }

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

◆ GetEndTime()

virtual TimeType C4Graph::GetEndTime ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

◆ GetMaxValue()

virtual ValueType C4Graph::GetMaxValue ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

◆ GetMedianValue()

virtual ValueType C4Graph::GetMedianValue ( TimeType  iStartTime,
TimeType  iEndTime 
) const
pure virtual

Implemented in C4TableGraph, and C4GraphCollection.

◆ GetMinValue()

virtual ValueType C4Graph::GetMinValue ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

◆ GetSeries()

virtual const C4Graph* C4Graph::GetSeries ( int  iIndex) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

◆ GetSeriesCount()

virtual int C4Graph::GetSeriesCount ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

◆ GetStartTime()

virtual TimeType C4Graph::GetStartTime ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

◆ GetTitle()

const char* C4Graph::GetTitle ( ) const
inline

Definition at line 56 of file C4Network2Stats.h.

56 { return szTitle.getData(); }
const char * getData() const
Definition: StdBuf.h:442

References StdStrBuf::getData().

Referenced by C4Chart::DrawElement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetValue()

virtual ValueType C4Graph::GetValue ( TimeType  iAtTime) const
pure virtual

Implemented in C4TableGraph, and C4GraphCollection.

◆ SetAverageTime()

virtual void C4Graph::SetAverageTime ( int  iToTime)
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4GraphCollection::AddGraph().

Here is the caller graph for this function:

◆ SetColorDw()

void C4Graph::SetColorDw ( DWORD  dwClr)
inline

Definition at line 39 of file C4Network2Stats.h.

39 { dwColor = dwClr; }

Referenced by C4Network2Stats::C4Network2Stats(), C4Network2Client::CreateGraphs(), and C4Player::CreateGraphs().

Here is the caller graph for this function:

◆ SetMultiplier()

virtual void C4Graph::SetMultiplier ( ValueType  fToVal)
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4GraphCollection::AddGraph().

Here is the caller graph for this function:

◆ SetTitle()

void C4Graph::SetTitle ( const char *  szNewTitle)
inline

Definition at line 38 of file C4Network2Stats.h.

38 { szTitle.Copy(szNewTitle); }
void Copy()
Definition: StdBuf.h:467

References StdStrBuf::Copy().

Referenced by C4Network2Stats::C4Network2Stats(), C4Network2Client::CreateGraphs(), and C4Player::CreateGraphs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Update()

virtual void C4Graph::Update ( ) const
inlinevirtual

Reimplemented in C4GraphCollection, and C4TableGraph.

Definition at line 59 of file C4Network2Stats.h.

59 {}

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

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