3dCameraDialog.h
资源名称:gloop.zip [点击查看]
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:3k
源码类别:
OpenGL
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // 3dCameraDialog.h : Header file; Defines the class definitions
- //
- // glOOP (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1998
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- // This program is -not- in the public domain.
- //
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dCameraPage dialog
- class AFX_EXT_CLASS C3dCameraPage : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dCameraPage);
- // Construction
- public:
- C3dCameraPage();
- virtual ~C3dCameraPage();
- // Attributes
- public:
- C3dCamera* m_pCamera;
- // Dialog Data
- //{{AFX_DATA(C3dCameraPage)
- enum { IDD = IDD_PAGE_CAMERA };
- float m_fClipBottom;
- float m_fClipFar;
- float m_fClipLeft;
- float m_fClipNear;
- float m_fClipRight;
- float m_fClipTop;
- float m_fFieldOfView;
- int m_iPerspective;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dCameraPage)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void GetDialogData();
- void SetDialogData();
- // Generated message map functions
- //{{AFX_MSG(C3dCameraPage)
- virtual BOOL OnInitDialog();
- afx_msg void OnRadioOrthographic();
- afx_msg void OnRadioPerspective();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dCameraPropSheet class
- class AFX_EXT_CLASS C3dCameraPropSheet : public CPropertySheet
- {
- public:
- DECLARE_DYNAMIC(C3dCameraPropSheet)
- C3dCameraPropSheet(LPSTR lpName, CWnd* pWndParent, C3dCamera* pCamera, C3dWorld* pWorld);
- // Attributes
- C3dCameraPage m_3dCameraPage;
- C3dPageOrigin m_OriginPage;
- C3dPageRotate m_RotatePage;
- C3dPageAnimation m_AnimationPage;
- // Operations
- // Overrides
- virtual void PostNcDestroy();
- // Message Handlers
- protected:
- //{{AFX_MSG(C3dCameraPropSheet)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////