📄 baseclass.h
字号:
// BaseClass.h: interface for the CMyClass class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BaseCLASS_H__6250EB80_113B_11D4_81FF_D19FE195501C__INCLUDED_)
#define AFX_BaseCLASS_H__6250EB80_113B_11D4_81FF_D19FE195501C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define Scale 1.35
typedef double array2d[5][5];
typedef double array[24];
/***********************************************************
* 变量说明:Aux1, Aux2, Aux3, Aux4, Aux5, Aux6, Aux7, *
* Aux8是全局变量,用于存取计算用户坐标系点到观察坐标系点的 *
* 坐标值公式中的正余弦值。X, Y, Z, C, XP, YP, ZP, CP为一维 *
* 数组,存放立体顶点齐次坐标,XT, YT, ZT亦为一维数组,存放 *
* 立体顶点经变换后的坐标值。A, Ah, Aw二维数组用来接收轴测 *
* 图的变换矩阵与三视图的变换矩阵参数值。 *
***********************************************************/
class CBaseClass // 定义一个基类
{
public:
double x0, z0 ,Aux1,Aux2,Aux3,Aux4,Aux5,Aux6,Aux7,Aux8;
int Theta, theta_y, phi_x, xx, yy,nn,n,ps,ed,eh,od,hl;
array X, Y, Z, C, XT, YT, ZT,XP,YP,ZP,CP;
array2d A, A1,Ah, Aw;
double ax[9],ay[9],az[9];
double bx[9],by[9],bz[9];
public:
CBaseClass();
virtual ~CBaseClass();
void ReadWorkpiece();
void Read();
void Calculate(array2d B);
void MCalculate(array2d B);
void XCalculate(array2d B);
void TransformMatrice();
void DrawText();
void Display();
void Drawve();
void Drawvt();
void Drawse();
void DrawViewV(CDC* pdc,CRect rr);
void DrawViewH(CDC* pdc,CRect rr);
void DrawViewW(CDC* pdc,CRect rr);
void moveto(double x,double y,CDC* pdc);
void lineto(double x,double y,CDC* pdc);
void setpixel(double x,double y,CDC* pdc);
void Draw();
};
#endif // !defined(AFX_MYCLASS_H__6250EB80_113B_11D4_81FF_D19FE195501C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -