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

📄 draw.cpp

📁 实现波形的显示,可以作为示波器的一个模块
💻 CPP
字号:
// Draw.cpp: implementation of the CDraw class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "virtualWave.h"
#include "Draw.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CDraw::CDraw(pos_t orign, pos_t xEnd , pos_t yEnd , unsigned int span, \
			 unsigned int maxHor, unsigned int maxVer){
	m_orign = orign;
	m_xEnd = xEnd;
	m_yEnd = yEnd;
	m_span = span;
	m_maxHor = maxHor;
	m_maxVer = maxVer;
}

CDraw::~CDraw(){

}

int CDraw::dot(pos_t dot){ /* draw the dot */

	return 0;
}

int CDraw::line(pos_t start, pos_t end){/* draw the line */

	return 0;
}

int CDraw::coordination(pos_t xEnd, pos_t yEnd){/* draw the coordination */

	return 0;
}
	
void CDraw::setSpan(unsigned int span){ /* set the span */


}

int CDraw::getSpan(void){ /* get the span */

	return 0;
}

void CDraw::setMaxHor(unsigned int maxHor){ /* set the maxHor */

}

int CDraw::getMaxHor(void){ /* get the maxHor */

	return 0;
}

void CDraw::setMaxVer(unsigned int maxVer){ /* set the maxVer */

}

int CDraw::getMaxVer(void){ /* get the maxVer */

	return 0;
}

void CDraw::multiScale(unsigned int multip){

}

/* private */
int CDraw::drawXcoordination(){ /* draw X coordination */

	return 0;
}

int CDraw::drawYcoordination(){ /* draw Y coordination */

	return 0;
}

⌨️ 快捷键说明

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