draw.cpp

来自「实现波形的显示,可以作为示波器的一个模块」· C++ 代码 · 共 90 行

CPP
90
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?