www.pudn.com > cad3d.zip > Cad3DView.h
// Cad3DView.h : interface of the CCad3DView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CAD3DVIEW_H__3600FE52_5F37_11D4_9520_B4FBF86C1308__INCLUDED_)
#define AFX_CAD3DVIEW_H__3600FE52_5F37_11D4_9520_B4FBF86C1308__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "defs.h"
#include "Helpers\Timer.h"
#include "GuiHandlers\GuiHandlerView.h"
class CCad3DDoc;
class CCad3DView : public CView,
public CGuiHandlerView
{
protected:
CClientDC* m_pDC;
CTimer m_timer;
HCURSOR m_hCursor;
#ifdef _MOTION
int m_nTimerId;
#endif;
protected: // create from serialization only
CCad3DView();
DECLARE_DYNCREATE(CCad3DView)
uint GetMainMenuState(uint nId);
CMenu& GetMainMenu();
void ToggleModTypeHiddenState(uint nId);
#ifdef _MOTION
virtual void ShowPtCoords(const C3DPoint& rPt);
virtual void SetCaption(const char* pcsCaption);
#endif
protected:
//CCagGuiHandlerView notifications
void OnFinishGuiHandler();
// Attributes
public:
// Operations
public:
CCad3DDoc* GetDocument();
// ICadView implementation
virtual CWinRect GetViewRect() const;
virtual CModel* GetModel();
virtual void InvalidateView();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCad3DView)
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);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CCad3DView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CCad3DView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnViewportAcsonometric();
afx_msg void OnViewportBack();
afx_msg void OnViewportBottom();
afx_msg void OnViewportFront();
afx_msg void OnViewportLeft();
afx_msg void OnViewportRight();
afx_msg void OnViewportTop();
afx_msg void OnObjects6pointsscheme();
afx_msg void OnObjectsPolyline();
afx_msg void OnEditSelect();
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnCancelMode();
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnDestroy();
afx_msg void OnViewportPerespective();
afx_msg void OnViewport0();
afx_msg void OnViewport1();
afx_msg void OnViewport2();
afx_msg void OnViewport3();
afx_msg void OnActionCancel();
afx_msg void OnActionFinish();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnViewportPan();
afx_msg void OnViewportZoom();
afx_msg void OnViewportRotate();
afx_msg void OnViewportToggle();
afx_msg void OnPaint();
afx_msg void OnObjects4pointsscheme();
afx_msg void OnObjectsBsplinescheme();
afx_msg void OnObjectsSphere();
afx_msg void OnObjectsPatch();
afx_msg void OnObjectsButterflyscheme();
afx_msg void OnObjectsCatmullclarkscheme();
afx_msg void OnObjectsDoosabinscheme();
afx_msg void OnObjectsLoopscheme();
afx_msg void OnObjectsBox();
afx_msg void OnEditModify();
afx_msg void OnUpdateEditModify(CCmdUI* pCmdUI);
afx_msg void OnEditDelete();
afx_msg void OnUpdateEditDelete(CCmdUI* pCmdUI);
afx_msg void OnEditRotate();
afx_msg void OnUpdateEditRotate(CCmdUI* pCmdUI);
afx_msg void OnEditHideunhideEdges();
afx_msg void OnEditHideunhideFaces();
afx_msg void OnEditHideunhideObjects();
afx_msg void OnEditHideunhideVertices();
afx_msg void OnEditTopologyEdges();
afx_msg void OnEditTopologyFaces();
afx_msg void OnEditTopologyVertices();
afx_msg void OnTopologySelectmesh();
afx_msg void OnUpdateTopologySelectmesh(CCmdUI* pCmdUI);
afx_msg void OnTopologyAddvertices();
afx_msg void OnUpdateTopologyAddvertices(CCmdUI* pCmdUI);
afx_msg void OnTopologyAddfaces();
afx_msg void OnUpdateTopologyAddfaces(CCmdUI* pCmdUI);
afx_msg void OnTopologyReversefaces();
afx_msg void OnUpdateTopologyReversefaces(CCmdUI* pCmdUI);
afx_msg void OnObjectsRevolutionsurface();
afx_msg void OnUpdateObjectsRevolutionsurface(CCmdUI* pCmdUI);
afx_msg void OnObjectsCylindricsurface();
afx_msg void OnUpdateObjectsCylindricsurface(CCmdUI* pCmdUI);
//}}AFX_MSG
afx_msg void OnUpdateSubDivide( CCmdUI* pCmdUI );
afx_msg void OnUpdateTopologyEdit( CCmdUI* pCmdUI );
afx_msg void OnUpdateTopologyHide( CCmdUI* pCmdUI );
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Cad3DView.cpp
inline CCad3DDoc* CCad3DView::GetDocument()
{ return (CCad3DDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CAD3DVIEW_H__3600FE52_5F37_11D4_9520_B4FBF86C1308__INCLUDED_)