⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 surge_g.h

📁 winsail v2.0是用于DOS下的图形界面空间系统
💻 H
字号:
#ifndef _SURGE_GRAPH_H
#define _SURGE_GRAPH_H

class CGraph_Surge:public CGraphWave
{
private:
	int		m_nPole;
	int		m_nFrameV;
	int		m_nMaxFrameV;
	int     m_nFrameH;
	int     m_nMaxFrameH;

	int		m_nOscillatory;
	int		m_nDivideFreq;

	int     m_nPrecision;

	float   m_fSampleFreq;

	BOOL 	m_bsDisplay[MAX_SURGE_COUNT];
	BOOL    m_bRealTime;
public:
	void SetPrecision(BOOL bPrecision){m_nPrecision = bPrecision;}
	int  GetPrecision(){return(m_nPrecision);}

	void SetSampleFreq(float fSampleFreq) {m_fSampleFreq = fSampleFreq;}
	float GetSampleFreq(){return(m_fSampleFreq);};

	void SetDisplay(int nIndex, BOOL bDisplay){m_bsDisplay[nIndex] = bDisplay;}
	BOOL GetDisplay(int nIndex){return(m_bsDisplay[nIndex]);}

	void SetRealTime(BOOL bRealTime) {m_bRealTime = bRealTime;}
	int  GetRealTime(){return(m_bRealTime);}
public:
	void  SetPole(int nPole){m_nPole = nPole;}
	int   GetPole(){return(m_nPole);}

	void  SetOscillatory(int nOscillatory){m_nOscillatory = nOscillatory;}
	int	  GetOscillatory(){return(m_nOscillatory);}

	void  SetDivideFreq(int nDivideFreq){m_nDivideFreq = nDivideFreq;}
	int   GetDivideFreq(){return(m_nDivideFreq);}

	int  GetFrameV(){return(m_nFrameV);}
	int  GetMaxFrameV(){return(m_nMaxFrameV);}
	void  SetFrameV(int nV){m_nFrameV = nV;}
	void  SetMaxFrameV(int nMaxV){m_nMaxFrameV = nMaxV;}

	int  GetFrameH(){return(m_nFrameH);}
	int  GetMaxFrameH(){return(m_nMaxFrameH);}
	void  SetFrameH(int nCount){m_nFrameH = nCount;}
	void  SetMaxFrameH(int nMaxCount){m_nMaxFrameH = nMaxCount;}

	void AddFrame_Vert();
	void SubFrame_Vert();
	void ChangeFrameV(int nIndex);

	void AddFrame_Horz();
	void SubFrame_Horz();
	void ChangeFrameH(int nCount);

	void  ChangeWave(int nIndex, BOOL bDraw);
	void  DeleteWave (int nPole);
	void  DrawTest(int nXmsIndex, BOOL bDraw);
public:
    static void GetY(int nPrecision, int nMaxV, int nIndex,
           float *pfMin1, float *pfMax1, float *pfMin2, float *pfMax2 );

public:
	CGraph_Surge();
};


class CSurgeControl:public CLabel
{
private:
	   CGraph_Surge m_GraphSurge;
public:
	   CGraph_Surge*   GetGraphSurge();

	   HANDLE   CreateObject(int nX,int nY,int nWidth,int nHeight, const char far *pStr);
public:
	   BOOL Show();
public:
	   CSurgeControl(CObject* pObject);
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -