OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

typedef int C4Graph::TimeType

Definition at line 28 of file C4Network2Stats.h.

typedef float C4Graph::ValueType

Definition at line 27 of file C4Network2Stats.h.

Constructor & Destructor Documentation

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
virtual C4Graph::~C4Graph ( )
virtualdefault

Member Function Documentation

DWORD C4Graph::GetColorDw ( ) const
inline

Definition at line 55 of file C4Network2Stats.h.

Referenced by C4Chart::DrawElement().

55 { return dwColor; }

Here is the caller graph for this function:

virtual TimeType C4Graph::GetEndTime ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

virtual ValueType C4Graph::GetMaxValue ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

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

Implemented in C4GraphCollection, and C4TableGraph.

virtual ValueType C4Graph::GetMinValue ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

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:

virtual int C4Graph::GetSeriesCount ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

virtual TimeType C4Graph::GetStartTime ( ) const
pure virtual

Implemented in C4GraphCollection, and C4TableGraph.

Referenced by C4Chart::DrawElement().

Here is the caller graph for this function:

const char* C4Graph::GetTitle ( ) const
inline

Definition at line 56 of file C4Network2Stats.h.

References StdStrBuf::getData().

Referenced by C4Chart::DrawElement().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implemented in C4GraphCollection, and C4TableGraph.

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:

void C4Graph::SetColorDw ( DWORD  dwClr)
inline

Definition at line 39 of file C4Network2Stats.h.

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

39 { dwColor = dwClr; }

Here is the caller graph for this function:

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:

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

Definition at line 38 of file C4Network2Stats.h.

References StdStrBuf::Copy().

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void C4Graph::Update ( ) const
inlinevirtual

Reimplemented in C4GraphCollection, and C4TableGraph.

Definition at line 59 of file C4Network2Stats.h.

Referenced by C4Chart::DrawElement().

59 {}

Here is the caller graph for this function:


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