nccodeparse.h

来自「用VC++开发了一个数控加工的三维仿真程序」· C头文件 代码 · 共 40 行

H
40
字号
#pragma once


// CNCCodeParse
// 插补类.

class CNCCodeParse : public CWnd
{
	DECLARE_DYNAMIC(CNCCodeParse)

public:
	CNCCodeParse();
	virtual ~CNCCodeParse();

private:
	int m_iGain;		//坐标增益系数.

	CString m_strFuncGroup[27];		//模态指令的分组状态存储,数组的第0项空出不用,其余的标志a-z 26组模态指令分组,分组方式参见的《数控技术基础》(化学工业出版社).
									//坐标默认为相对增量坐标G91
	double m_xBefore_absolute,m_yBefore_absolute,m_zBefore_absolute;		//该条语句执行前的绝对坐标.
	double m_xAfter_absolute,m_yAfter_absolute,m_zAfter_absolute;		//该条语句执行后的绝对坐标.

	double m_x_r,m_y_r,m_z_r;		//相对坐标.
	int m_iCoolingFluid;		//冷却液次数.
	int m_iChangeTools;	//换刀次数.
	double m_fScale;	//放大倍数.

public:
	bool CodeLineParse(CString strLine,bool willreturnabsolutecoordinate,CArray<CString,CString> &m_ArrayForwardDirection_CodeLineInterpolation);

protected:
	DECLARE_MESSAGE_MAP()
private:
	bool LineInterpolation(double xEnd_relative, double yEnd_relative, double zEnd_relative, CArray<CString,CString>& m_ArrayForwardDirection_CodeLineInterpolation);
	bool AnticlockwiseArcInterpolation(double xEnd_relative, double yEnd_relative, double zEnd_relative, double iStart_relative, double jStart_relative, double kStart_relative, CArray<CString,CString>& m_ArrayForwardDirection_CodeLineInterpolation);
	bool ClockwiseInterpolation(double xEnd_relative, double yEnd_relative, double zEnd_relative, double iStart_relative, double jStart_relative, double kStart_relative, CArray<CString,CString>& m_ArrayForwardDirection_CodeLineInterpolation);
};


⌨️ 快捷键说明

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