// SingleViewModelingView.h : interface of the CSingleViewModelingView class
//
/////////////////////////////////////////////////////////////////////////////
#include "RC.h"
#if !defined(AFX_SINGLEVIEWMODELINGVIEW_H__FAFB81D0_873A_11D3_8A0E_005004CEACBF__INCLUDED_)
#define AFX_SINGLEVIEWMODELINGVIEW_H__FAFB81D0_873A_11D3_8A0E_005004CEACBF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "structure.h"
#include "LineEndPoints.h"
#include "SingleViewModelingDoc.h"
typedef CTypedPtrArray < CLineEndPoints > CVLinePoints;

class CSingleViewModelingView : public CView
{
private:
	CRC m_rcView;

	BOOL m_bLBDown;
	CPoint m_ptP0;
     
protected: // create from serialization only
	CSingleViewModelingView();
	DECLARE_DYNCREATE(CSingleViewModelingView)
public:
    int m_iOrigx, m_iOrigy;	
// Attributes
public:

	CSingleViewModelingDoc * GetDocument();

// Operations
public:
CVLinePoints m_VxPointsptr;
CVLinePoints m_VyPointsptr;
CVLinePoints m_VzPointsptr;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSingleViewModelingView)
	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:
	void Rendering();
	virtual ~CSingleViewModelingView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSingleViewModelingView)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLoadImagefile();
	afx_msg void OnInputVxLine();
	afx_msg void OnInputVyLine();
	afx_msg void OnInputVzLine();
	afx_msg void OnCaculateVanishPoints();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLoadData();
	afx_msg void OnSaveData();
	afx_msg void OnGetPar();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSaveVrml();
	afx_msg void OnQueryTexture();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SingleViewModelingView.cpp
inline CSingleViewModelingDoc* CSingleViewModelingView::GetDocument()
   { return (CSingleViewModelingDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SINGLEVIEWMODELINGVIEW_H__FAFB81D0_873A_11D3_8A0E_005004CEACBF__INCLUDED_)
