📄 nccodeparse.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -