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

📄 clip_a_lineview.h

📁 杜哈梅积分求速度加速度位移杜哈梅积分求速度加速度位移杜哈梅积分求速度加速度位移
💻 H
字号:
// Clip_a_lineView.h : interface of the CClip_a_lineView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CLIP_A_LINEVIEW_H__E765E57A_3474_42E6_ABC7_E97FDE39503C__INCLUDED_)
#define AFX_CLIP_A_LINEVIEW_H__E765E57A_3474_42E6_ABC7_E97FDE39503C__INCLUDED_

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


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

// Attributes
public:
	CClip_a_lineDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClip_a_lineView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	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 yw_min;
	int yw_max;
	int xw_max;
	int xw_min;
	int y2;
	int x2;
	int y1;
	int x1;
	void clip_a_line(CDC *pDC,int x1,int y1,int x2,int y2,int xw_min,int xw_max,int yw_min,int yw_max );
	virtual ~CClip_a_lineView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	int swap_if_needed(int code1[],int code2[]);
	int reject(int code1[],int code2[]);
	int accept(int code1[],int code2[]);
	void encode(int x,int y,int code[],int xw_min,int xw_max,int yw_min,int yw_max);

// Generated message map functions
	
	//{{AFX_MSG(CClip_a_lineView)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Clip_a_lineView.cpp
inline CClip_a_lineDoc* CClip_a_lineView::GetDocument()
   { return (CClip_a_lineDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_CLIP_A_LINEVIEW_H__E765E57A_3474_42E6_ABC7_E97FDE39503C__INCLUDED_)

⌨️ 快捷键说明

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