/********************************************************************** 文件名: VRAppView.h Copyright (c) 张晓东, 罗火灵. All rights reserved. 更多信息请访问: http://www.vtkchina.org (VTK中国) http://blog.csdn.net/www_doling_net (东灵工作室) **********************************************************************/ // VRAppView.h : interface of the CVRAppView class // #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class CVRAppView : public CView { protected: // create from serialization only CVRAppView(); DECLARE_DYNCREATE(CVRAppView) // Attributes public: CVRAppDoc* GetDocument() const; // Operations public: // Overrides 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); // Implementation public: virtual ~CVRAppView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: DECLARE_MESSAGE_MAP() public: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnSize(UINT nType, int cx, int cy); void SetInput(); void OnUpdateColor(); void OnUpdateOpacity(); vtkSmartPointer rayCastFun; vtkSmartPointer volumeMapper; vtkSmartPointer volume; vtkSmartPointer ren; vtkSmartPointer renWin; vtkSmartPointer iren; }; #ifndef _DEBUG // debug version in VRAppView.cpp inline CVRAppDoc* CVRAppView::GetDocument() const { return reinterpret_cast(m_pDocument); } #endif