📄 graphexpview.h
字号:
// GraphExpView.h : interface of the CGraphExpView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_GRAPHEXPVIEW_H__EB86B8F1_06A2_418F_9004_01D91E1AA0C2__INCLUDED_)
#define AFX_GRAPHEXPVIEW_H__EB86B8F1_06A2_418F_9004_01D91E1AA0C2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "graphexpdoc.h"
#define POINTSNUM 100
class CGraphExpView : public CView
{
protected: // create from serialization only
int m_MenuTool;
int m_Drag;
int m_LineNum;
CPoint m_RngLU; //矩形框左上角
CPoint m_RngRD; //矩形框右下角
CPoint m_pntPrev; //标识首结点
CPoint m_pntOrigin; //标识尾结点
CPoint m_pntPrevB; //标识首结点
CPoint m_pntOriginB; //标识尾结点
HICON m_hCursor;
CPoint *m_Ploygon;
CGraphExpView();
DECLARE_DYNCREATE(CGraphExpView)
// Attributes
public:
CGraphExpDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGraphExpView)
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:
CPoint Rrecord;
CPoint Lrecord;
void ThreeDimChange();
int m_markRect3D;
CPoint m_pRect3De;
CPoint m_pRect3Ds;
CPoint m_temp2;
CPoint m_temp1;
CPoint m_temp;
int * polypoints;
float thx,thy,thz; //长方体旋转的参数
int x,y,z; //长方体平易参数
int m_nEdgeFill;
int m_numBezierN;
CPoint * m_Bezier;
int m_nLag;
CPoint * m_pLag;
int m_nB;
CPoint * m_pB;
void Lugrange(CPoint *aa,int k,int l_section);
CPoint m_ClipLine;
int m_numPloy;
CPoint mPointOld;
CPoint mPointOrign;
int m_slipPointNum;
float m_CircleR;
CPoint m_pntCircle;
virtual ~CGraphExpView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CGraphExpView)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnDrawLine();
afx_msg void OnDrawDda();
afx_msg void OnDrawBresenham();
afx_msg void OnDrawMidpointcircle();
afx_msg void OnDrawPnarc();
afx_msg void OnDrawPoint();
afx_msg void OnSlipPoint();
afx_msg void OnSlipCohen();
afx_msg void OnClipBarsky();
afx_msg void OnDrawPloygon();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnClipShlinel();
afx_msg void OnClipShliner();
afx_msg void OnClipShlineu();
afx_msg void OnClipShlined();
afx_msg void OnClipShrect();
afx_msg void OnCurveLugrange();
afx_msg void OnCurveB2();
afx_msg void OnCurveB3();
afx_msg void OnCurevBezier2();
afx_msg void OnCurevBezier3();
afx_msg void OnCurevBeziern();
afx_msg void OnFillEdge();
afx_msg void OnFillScan();
afx_msg void OnFillFlood();
afx_msg void OnMoveX();
afx_msg void OnMoveY();
afx_msg void OnTransX();
afx_msg void OnTransY();
afx_msg void OnTrans();
afx_msg void OnDrawCuboid();
afx_msg void OnTranCuboid();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in GraphExpView.cpp
inline CGraphExpDoc* CGraphExpView::GetDocument()
{ return (CGraphExpDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GRAPHEXPVIEW_H__EB86B8F1_06A2_418F_9004_01D91E1AA0C2__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -