#pragma once
|
|
#include "akGraph/akGraphBase.h"
|
#include "akGraph/akDataBasic3.h"
|
|
#include "akGraph/akRangeSettingNormalDlg.h"
|
#include "akGraph/akRangeSettingTimeDlg.h"
|
|
|
//class AFX_EXT_CLASS CakGraphType3 : public CakGraphULS
|
class AFX_EXT_CLASS CakGraphBasic3 : public CakGraphBase , public CakDataBasic3
|
{
|
public:
|
CakGraphBasic3(void);
|
virtual ~CakGraphBasic3(void);
|
|
|
DECLARE_MESSAGE_MAP()
|
public:
|
virtual BOOL CreateGraph(CWnd* pParent, CRect rect);
|
|
virtual void RenderGrid(Graphics* grfx, CDC* pDC);
|
virtual void RenderDataArea(Graphics* grfx, CDC* pDC); //µ¥ÀÌÅÍ ¿µ¿ª ±×¸®±â
|
virtual void RenderSeries(Graphics* grfx, CDC* pDC); //µ¥ÀÌÅÍ ¼±/¹Ù ±×¸®±â
|
virtual void RenderLegend(Graphics* grfx, CDC* pDC);
|
virtual void RenderAxis(Graphics* grfx, CDC* pDC); //Ãà ¿µ¿ª ±×¸®±â
|
virtual void RenderTitle(Graphics* grfx, CDC* pDC); //Á¦¸ñ ¿µ¿ª ±×¸®±â
|
virtual void RenderLabel(Graphics* grfx, CDC* pDC); //ÇØ´ç Ãà¿¡ ƽ±×¸®±â, µ¥ÀÌÅÍ ¿µ¿ª ¿Ü°¢¼± ±×¸®±â
|
virtual void RenderMouseMoveInfo(Graphics* grfx, CDC* pDC);//¸¶¿ì½º ¿òÁ÷À϶§ À§Ä¡°ª Ç¥½ÃÇϴºκÐ
|
virtual void RenderEnd(Graphics* grfx, CDC* pDC); //±×¸®´Â ºÎºÐ ¸¶Áö¸·¿¡ Ãß°¡(Redraw false ÇÒ¶§µµ ±×¸²)
|
|
|
|
virtual void OnKeyInput(int key, int mode); //mode 0==keyup, mode 1==keydown
|
virtual void OnMouseInput(akMouseEvent mouseevent, CPoint point);
|
virtual void MouseInput(CakMouseState mousestate);
|
|
//µ¥ÀÌÅÍ Å¬·¡½º µ¿±âÈ °´Ã¼ Ãß°¡
|
virtual void SetSeriesNum(int subsetNum); //±âÁ¸ µ¥ÀÌÅÍ ÃʱâÈ
|
virtual void SetSeriesAdd(int index = -1);
|
virtual bool SetSeriesDelete(int index);
|
virtual void SetDataNum(int nDataNum);
|
//virtual bool SetData(int index, double x, double y); <--¿ä³à¼®Àº ¾Ë¾Æ¼ µ¿±âÈ ½Ã۵µ·Ï.. ¼º´É!!
|
virtual void SetHidden(bool enable, int startIndex, int endIndex);
|
|
virtual void SetColorType(int nIndex);
|
|
inline int GetWindowPosX(double xvalue); //À§Ä¡ °ª¿¡ µû¸¥ À©µµ¿ì ÁÂÇ¥
|
inline int GetWindowPosY(double yvalue); //À§Ä¡ °ª¿¡ µû¸¥ À©µµ¿ì ÁÂÇ¥
|
inline double GetValuePosDataX(int xpos, bool dataArea = false); //À©µµ¿ì ÁÂÇ¥¿¡ µû¸¥ µ¥ÀÌÅÍ
|
inline double GetValuePosDataY(int ypos, bool dataArea = false); //À©µµ¿ì ÁÂÇ¥¿¡ µû¸¥ µ¥ÀÌÅÍ
|
|
void SetReverseModeX(bool flag); //xÃà ¿ª¹æÇâ Ç¥½Ã
|
bool GetReverseModeX(){return m_bReverseX;}; //xÃà ¿ª¹æÇâ Ç¥½Ã
|
void SetReverseModeY(bool flag); //yÃà ¿ª¹æÇâ Ç¥½Ã
|
bool GetReverseModeY(){return m_bReverseY;}; //yÃà ¿ª¹æÇâ Ç¥½Ã
|
|
|
void SetClossLinePos(double x, double y);
|
|
virtual void SetAutoScale();
|
|
double getValueY(int nSeriesIndex, double xpos);
|
int getDataIndex(int nSeriesIndex, double xpos);
|
|
LRESULT OnRangeSettingNormalUpdate(WPARAM wParam, LPARAM lParam);
|
LRESULT OnRangeSettingTimeUpdate(WPARAM wParam, LPARAM lParam);
|
|
|
protected:
|
|
bool m_bGrid;
|
bool m_bReverseX;
|
bool m_bReverseY;
|
|
public:
|
CakRangeSettingNormalDlg* m_pRangeYSettingDlg;
|
CakRangeSettingNormalDlg* m_pRangeXSettingDlg;
|
bool m_bRangeYSetting;
|
bool m_bRangeXSetting;
|
bool m_bFastDrawAlg;
|
afx_msg void OnDestroy();
|
afx_msg void OnKillFocus(CWnd* pNewWnd);
|
};
|
|
|
//XÃà °ªÀ» h/m/s/ms Ç¥ÇöÀÌ °¡´ÉÇϰÔ
|
class AFX_EXT_CLASS CakGraphType3Time : public CakGraphBasic3
|
{
|
public:
|
|
public:
|
CakGraphType3Time(void){};
|
virtual ~CakGraphType3Time(void){};
|
|
public:
|
virtual void RenderGrid(Graphics* grfx, CDC* pDC);
|
virtual void RenderLabel(Graphics* grfx, CDC* pDC); //ÇØ´ç Ãà¿¡ ƽ±×¸®±â, µ¥ÀÌÅÍ ¿µ¿ª ¿Ü°¢¼± ±×¸®±â
|
virtual void RenderMouseMoveInfo(Graphics* grfx, CDC* pDC);
|
|
void getTime(double timeval, int *hour, int *min, int *sec, float *msec);
|
};
|