📄 baseview.h
字号:
// BaseView.h : interface of the CBaseView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_BASEVIEW_H__83B97929_8F6E_11D1_9D8B_D6F3FE4E493C__INCLUDED_)
#define AFX_BASEVIEW_H__83B97929_8F6E_11D1_9D8B_D6F3FE4E493C__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
enum{ZoomRatio=1000};
enum ManuMode{SINGLE, LAMINATEDMANU, MANUBASE, AUTOMANU, SIMULATION};
class CBaseView : public CView
{
protected: // create from serialization only
CBaseView();
DECLARE_DYNCREATE(CBaseView)
// Attributes
public:
CStlDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBaseView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
//系统参数
double m_scanSpeed; //扫描速度
double m_scanSpeedX; //X轴
double m_scanSpeedY; //Y轴
double m_zeroSpeed; //回零速度
double m_platformDown; //工作缸位移量
double m_powderUp; //粉桶位移量
double m_scanWidth; //烧结间距
double m_layerThickness; //单层厚度
double m_rotateAngle; //旋转角度
double m_laserPower; //激光功率
double m_laserPowerXDir;
double m_laserPowerYDir;
//实体参数
double m_centerPosX; //零件中心位置
double m_centerPosY;
double m_startHeight; //起始高度
double m_endHeight; //终止高度
//基底参数
double m_height; //基底高度
virtual ~CBaseView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
virtual void RandomRotation( void );
CString m_className;
void ManuManager(CStlDoc* pDoc);
ManuMode m_manuMode;
bool CreateBaseData(SCANPATH& pathData, int curLayerNum);
long WaitForTimeslice( void );
time_t m_curTime;
time_t m_prevTime;
void ShowCurManuInfo();
DWORD CalculateLaserPower(double val);
bool m_bStartup;
void SlsScheduler( void );
void MsgProcFunc( void );
bool QueryStopMsg( void );
void PathLayout( void );
bool m_bStop;
static int m_CurLayerNum;
CBitmap* m_pBitmap;
CDC* m_pMemDC;
CRect m_clientRect; //设备坐标
CPoint GetLogicCoordinate( const C2DPoint& pt ); //逻辑坐标
BOOL CreateNewWindow(CDocTemplate* pTemplate);
void InitializePathParam( void );
void ReadParamFromAppIniFile( void );
//{{AFX_MSG(CBaseView)
afx_msg void OnStop();
afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
afx_msg void OnViewTwin();
afx_msg void OnUpdateViewTwin(CCmdUI* pCmdUI);
afx_msg void OnViewSingle();
afx_msg void OnUpdateViewSingle(CCmdUI* pCmdUI);
afx_msg void OnManuOption();
afx_msg void OnManu();
afx_msg void OnUpdateManu(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in BaseView.cpp
inline CStlDoc* CBaseView::GetDocument()
{ return (CStlDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BASEVIEW_H__83B97929_8F6E_11D1_9D8B_D6F3FE4E493C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -