6 #ifndef _INC_GraphCoords_H_
7 #define _INC_GraphCoords_H_
11 #include "CGraphCfg.h"
26 m_capacity = get_DiffY() / get_DiffX();
46 static int GetExponent(
double value);
52 return left + (value - top) / m_capacity;
58 return top + (value - left)*m_capacity;
74 double CountGrid(
int NMax,
double mx1,
double mx2);
75 bool SetupDecimal(
int NMax);
76 bool SetupTime(
int NMax);
78 double GetScaledVal(
double val)
const;
79 double GetUnScaledVal(
double val)
const;
82 CGraphIntervals(
bool fTime,
int iNMax,
double _pix1,
double _pix2,
double _w1,
double _w2);
85 const TCHAR* GetTimeFormatStr()
const;
86 const TCHAR* GetTimeLabelStr()
const;
99 return((
int)(m_ScreenPts[i]));
104 return(m_WorldPts[i]);
109 return(GetMid(i) - (m_Delta / 2));
113 return(GetMid(i) + (m_Delta / 2));
#define GRAYGRAPH_LINK
Definition: GrayGraph.h:19
Definition: cGraphCoords.h:16
double CvtWtoX(double value) const
Definition: cGraphCoords.h:48
double m_capacity
Definition: cGraphCoords.h:20
CGraphCoords(double _pix1, double _pix2, double _w1, double _w2)
Definition: cGraphCoords.h:32
double CvtXtoW(double value) const
Definition: cGraphCoords.h:54
CGraphCoords(const CGraphCoords &coords)
Definition: cGraphCoords.h:37
Definition: cGraphCoords.h:63
ITERATE_t get_Count() const
Definition: cGraphCoords.h:92
double GetMidHi(ITERATE_t i) const
Definition: cGraphCoords.h:111
int get_MaxExp() const
Definition: cGraphCoords.h:87
int GetScreenPt(ITERATE_t i) const
Definition: cGraphCoords.h:96
double GetMidLo(ITERATE_t i) const
Definition: cGraphCoords.h:107
double GetMid(ITERATE_t i) const
Definition: cGraphCoords.h:101
TYPE bottom
Definition: cRectT.h:35
TYPE right
Definition: cRectT.h:35
TYPE left
Definition: cRectT.h:35
TYPE top
Definition: cRectT.h:35
ITERATE_t GetSize() const noexcept
Definition: cArray.h:137
Definition: GrayGraph.cpp:29
int ITERATE_t
like size_t but signed
Definition: Index.h:28