⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fms_simulationview.h

📁 一个自己编写的柔性制造的仿真软件,完全是自己编写的软件源码
💻 H
字号:
// FMS_SIMULATIONView.h : interface of the CFMS_SIMULATIONView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_FMS_SIMULATIONVIEW_H__D7FA8100_C3A4_48F2_9128_DF90A580D9D5__INCLUDED_)
#define AFX_FMS_SIMULATIONVIEW_H__D7FA8100_C3A4_48F2_9128_DF90A580D9D5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CFMS_SIMULATIONView : public CView
{
protected: // create from serialization only
	CFMS_SIMULATIONView();
	DECLARE_DYNCREATE(CFMS_SIMULATIONView)

// Attributes
public:
	CFMS_SIMULATIONDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFMS_SIMULATIONView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	int left_button_area(CPoint *p);
	int priority_storage();
	void storage_have_workpiece();
	int workpiece_manu_over();
	int task_over();
	int assem_procedure_num[11];		//放置各个任务当前的工序
	int storage_num;
	struct  task{
		int amount;
		int priority;
		int time;
		char working_procedure[30][10];
	};
	struct task plan[10],plan2[10];
	struct assem{
		int workpiece_manu;	//记录有无工件加工
		int status_manu; //记录加工有无完成 
		int task_num;		//记录当前加工的工件的任务号
		int procedure;	//记录当前加工的工序号
	};
	struct assem assem_every[12];	//其中0位置用来记录装卸站的工件有无
	struct storage_s{
		int task_num;
		int priority;
		int procedure;
	};
	struct storage_s storage[50];
	CRect rect_road;
	CRect rect_storage;
	CRect rect_load;
	CRect rect_assem[10];
	CRect rect_agv;
	CRect rect_line[2];
	CRect rect_agv_aim;
	CRect rect_workpiece;	//记录装运工件的坐标
	CRect rect_assem_workpiece[12];		//记录每个工位的工件位置,其中0位置用来记录装卸站的工件
	CRect rect_workpiece_aim;
	CRect rect_string;
	CRect rect_caption;
	CRect rect_manu_over_flag[10];
	void area_Initiant(CDC *pDC);
	virtual ~CFMS_SIMULATIONView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CFMS_SIMULATIONView)
	afx_msg void OnFileNew();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnStartTask();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnFileStop();
	afx_msg void OnLookTask();
	afx_msg void OnLookTongji();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in FMS_SIMULATIONView.cpp
inline CFMS_SIMULATIONDoc* CFMS_SIMULATIONView::GetDocument()
   { return (CFMS_SIMULATIONDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FMS_SIMULATIONVIEW_H__D7FA8100_C3A4_48F2_9128_DF90A580D9D5__INCLUDED_)





















⌨️ 快捷键说明

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