3dobjectdialog.h
资源名称:gloop.zip [点击查看]
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:35k
源码类别:
OpenGL
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // 3dObjectDialog.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.
- //
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // Add external class definitions
- #include "3dPageHSpline.h"
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageCone dialog
- class AFX_EXT_CLASS C3dPageCone : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageCone);
- // Construction
- public:
- C3dPageCone();
- virtual ~C3dPageCone();
- // Attributes
- public:
- C3dObjectCone* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageCone)
- enum { IDD = IDD_PAGE_OBJECT_CONE };
- int m_iSolid;
- float m_fHeight;
- float m_fBaseRadius;
- CString m_szName;
- int m_iSegments;
- int m_iSmooth;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageCone)
- public:
- virtual void OnOK();
- virtual void OnRadioSolid();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageCone)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeBaseRadius();
- afx_msg void OnChangeHeight();
- afx_msg void OnChangeSegments();
- afx_msg void OnRadioSmooth();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageCSG dialog
- class AFX_EXT_CLASS C3dPageCSG : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageCSG);
- // Construction
- public:
- C3dPageCSG();
- virtual ~C3dPageCSG();
- // Attributes
- public:
- C3dObjectCSG* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageCSG)
- enum { IDD = IDD_PAGE_OBJECT_CSG };
- CString m_szName;
- int m_iCSGType;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(C3dPageCSG)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageCSG)
- virtual BOOL OnInitDialog();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnRadioOR();
- afx_msg void OnRadioAND();
- afx_msg void OnRadioSubAb();
- afx_msg void OnRadioSubBa();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageCube dialog
- class AFX_EXT_CLASS C3dPageCube : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageCube);
- // Construction
- public:
- C3dPageCube();
- virtual ~C3dPageCube();
- // Attributes
- public:
- C3dObjectCube* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageCube)
- enum { IDD = IDD_PAGE_OBJECT_CUBE };
- float m_fDepth;
- float m_fHeight;
- float m_fWidth;
- CString m_szName;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageCube)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageCube)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeDepth();
- afx_msg void OnChangeHeight();
- afx_msg void OnChangeWidth();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageCylinder dialog
- class AFX_EXT_CLASS C3dPageCylinder : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageCylinder);
- // Construction
- public:
- C3dPageCylinder();
- virtual ~C3dPageCylinder();
- // Attributes
- public:
- C3dObjectCylinder* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageCylinder)
- enum { IDD = IDD_PAGE_OBJECT_CYLINDER };
- int m_iSolid;
- float m_fHeight;
- float m_fTopRadius;
- float m_fBaseRadius;
- CString m_szName;
- int m_iSegments;
- int m_iSmooth;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageCylinder)
- public:
- virtual void OnOK();
- virtual void OnRadioSolid();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageCylinder)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeBaseRadius();
- afx_msg void OnChangeHeight();
- afx_msg void OnChangeTopRadius();
- afx_msg void OnChangeSegments();
- afx_msg void OnRadioSmooth();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageDisk dialog
- class AFX_EXT_CLASS C3dPageDisk : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageDisk);
- // Construction
- public:
- C3dPageDisk();
- virtual ~C3dPageDisk();
- // Attributes
- public:
- C3dObjectDisk* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageDisk)
- enum { IDD = IDD_PAGE_OBJECT_DISK };
- float m_fInnerRadius;
- float m_fOuterRadius;
- int m_iSegments;
- CString m_szName;
- float m_fSweepAngle;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageDisk)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageDisk)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeInnerRadius();
- afx_msg void OnChangeOuterRadius();
- afx_msg void OnChangeSegments();
- afx_msg void OnChangeSweepAngle();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageGrid dialog
- class AFX_EXT_CLASS C3dPageGrid : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageGrid);
- // Construction
- public:
- C3dPageGrid();
- virtual ~C3dPageGrid();
- // Attributes
- public:
- C3dObjectGrid* m_pObject;
- C3dColorList* m_pColorList;
- CWnd m_wndSelColor;
- // Dialog Data
- //{{AFX_DATA(C3dPageGrid)
- enum { IDD = IDD_PAGE_OBJECT_GRID };
- CComboBox m_ColorCombo;
- float m_fWidth;
- float m_fDepth;
- int m_iDivisionsX;
- int m_iDivisionsY;
- CString m_szName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageGrid)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd(C3dColor* pColor);
- // Generated message map functions
- //{{AFX_MSG(C3dPageGrid)
- virtual BOOL OnInitDialog();
- afx_msg void OnSelchangeColorCombo();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnButtonColorWnd();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageLathe dialog
- class AFX_EXT_CLASS C3dPageLathe : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageLathe);
- // Construction
- public:
- C3dPageLathe();
- virtual ~C3dPageLathe();
- // Attributes
- public:
- C3dObjectLathe* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageLathe)
- enum { IDD = IDD_PAGE_OBJECT_LATHE };
- float m_fSweepAngle;
- int m_iSegments;
- int m_iSmooth;
- float m_fMaxAngle;
- CString m_szName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageLathe)
- public:
- virtual void OnOK();
- virtual void OnRadioSmooth();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageLathe)
- virtual BOOL OnInitDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageNURB dialog
- class AFX_EXT_CLASS C3dPageNURB : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageNURB);
- // Construction
- public:
- C3dPageNURB();
- virtual ~C3dPageNURB();
- // Attributes
- public:
- C3dObjectNURB* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageNURB)
- enum { IDD = IDD_PAGE_OBJECT_NURB };
- float m_fDepth;
- float m_fWidth;
- CString m_szName;
- int m_iNumUCtrlPoints;
- int m_iNumVCtrlPoints;
- int m_iUSegments;
- int m_iVSegments;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageNURB)
- public:
- virtual void OnOK();
- virtual BOOL OnApply();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageNURB)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeDepth();
- afx_msg void OnChangeWidth();
- afx_msg void OnChangeGridPointsX();
- afx_msg void OnChangeGridPointsY();
- afx_msg void OnChangeSegmentsX();
- afx_msg void OnChangeSegmentsY();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPagePlane dialog
- class AFX_EXT_CLASS C3dPagePlane : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPagePlane);
- // Construction
- public:
- C3dPagePlane();
- virtual ~C3dPagePlane();
- // Attributes
- public:
- C3dObjectPlane* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPagePlane)
- enum { IDD = IDD_PAGE_OBJECT_PLANE };
- float m_fDepth;
- float m_fWidth;
- CString m_szName;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPagePlane)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPagePlane)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeDepth();
- afx_msg void OnChangeWidth();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageCloud dialog
- class AFX_EXT_CLASS C3dPageCloud : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageCloud);
- // Construction
- public:
- C3dPageCloud();
- virtual ~C3dPageCloud();
- // Attributes
- public:
- C3dObjectCloud* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageCloud)
- enum { IDD = IDD_PAGE_OBJECT_CLOUD };
- CSliderCtrl m_SliderHeight;
- CSliderCtrl m_SliderDensity;
- CString m_szName;
- float m_fDepth;
- int m_iHeightSeed;
- int m_iTile;
- float m_fWidth;
- BOOL m_bRandomSeed;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageCloud)
- public:
- virtual void OnOK();
- virtual BOOL OnApply();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageCloud)
- virtual BOOL OnInitDialog();
- afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnChangeHeightSeed();
- afx_msg void OnChangeDepth();
- afx_msg void OnChangeWidth();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- class CMyCloudWnd;
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageTerrainColor dialog
- class AFX_EXT_CLASS C3dPageCloudColor : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageCloudColor);
- // Construction
- public:
- C3dPageCloudColor();
- virtual ~C3dPageCloudColor();
- // Attributes
- public:
- C3dObjectCloud* m_pObject;
- C3dWorld* m_pWorld;
- CWnd m_wndHighlightButtonColor;
- CWnd m_wndEdgeButtonColor;
- CMyCloudWnd* m_pWndCloudPreview;
- // Dialog Data
- //{{AFX_DATA(C3dPageCloudColor)
- enum { IDD = IDD_PAGE_OBJECT_CLOUD_COLOR };
- CSliderCtrl m_SliderOpacity;
- CComboBox m_ComboGridSize;
- int m_iColorSelect;
- int m_iSolidColor;
- BOOL m_bReflect;
- int m_iTextureWrap;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageCloudColor)
- public:
- virtual void OnOK();
- virtual BOOL OnApply();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd(CWnd* pWnd, C3dColor* pColor);
- // Generated message map functions
- //{{AFX_MSG(C3dPageCloudColor)
- virtual BOOL OnInitDialog();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnEdgeButtonColorWnd();
- afx_msg void OnHighlightButtonColorWnd();
- afx_msg void OnSelchangeComboGridsize();
- afx_msg void OnChangeTextureWrap();
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageSphere dialog
- class AFX_EXT_CLASS C3dPageSphere : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageSphere);
- // Construction
- public:
- C3dPageSphere();
- virtual ~C3dPageSphere();
- // Attributes
- public:
- C3dObjectSphere* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageSphere)
- enum { IDD = IDD_PAGE_OBJECT_SPHERE };
- int m_iInside;
- float m_fRadius;
- int m_iMinorSeg;
- int m_iMajorSeg;
- CString m_szName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageSphere)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageSphere)
- virtual BOOL OnInitDialog();
- afx_msg void OnRadioInside();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageTerrain dialog
- class AFX_EXT_CLASS C3dPageTerrain : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageTerrain);
- // Construction
- public:
- C3dPageTerrain();
- virtual ~C3dPageTerrain();
- // Attributes
- public:
- C3dObjectTerrain* m_pObject;
- private:
- float m_fHeight;
- float m_fSeaLevel;
- // Dialog Data
- //{{AFX_DATA(C3dPageTerrain)
- enum { IDD = IDD_PAGE_OBJECT_TERRAIN };
- CSliderCtrl m_SliderSeaLevel;
- CSliderCtrl m_SliderHeight;
- CComboBox m_ComboGridSize;
- float m_fDepth;
- float m_fWidth;
- CString m_szName;
- int m_iTile;
- int m_iHeightSeed;
- BOOL m_bRandomSeed;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageTerrain)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageTerrain)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeDepth();
- afx_msg void OnChangeWidth();
- afx_msg void OnSelchangeComboGridsize();
- afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- afx_msg void OnChangeHeightSeed();
- afx_msg void OnRandomHeight();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageTorus dialog
- class AFX_EXT_CLASS C3dPageTorus : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageTorus);
- // Construction
- public:
- C3dPageTorus();
- virtual ~C3dPageTorus();
- // Attributes
- public:
- C3dObjectTorus* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageTorus)
- enum { IDD = IDD_PAGE_OBJECT_TORUS };
- float m_fMajorRadius;
- float m_fMinorRadius;
- int m_iMinorSeg;
- int m_iMajorSeg;
- CString m_szName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageTorus)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageTorus)
- virtual BOOL OnInitDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageTriangle dialog
- class AFX_EXT_CLASS C3dPageTriangle : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageTriangle);
- // Construction
- public:
- C3dPageTriangle();
- virtual ~C3dPageTriangle();
- // Attributes
- public:
- C3dObjectTriangle* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageTriangle)
- enum { IDD = IDD_PAGE_OBJECT_TRIANGLE };
- float m_fDepth;
- float m_fWidth;
- CString m_szName;
- //}}AFX_DATA
- protected:
- BOOL m_bInitVertices;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageTriangle)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageTriangle)
- virtual BOOL OnInitDialog();
- afx_msg void OnChangeDepth();
- afx_msg void OnChangeWidth();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageTTF dialog
- class AFX_EXT_CLASS C3dPageTTF : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageTTF);
- // Construction
- public:
- C3dPageTTF();
- virtual ~C3dPageTTF();
- // Attributes
- public:
- C3dObjectTTF* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageTTF)
- enum { IDD = IDD_PAGE_OBJECT_TTF };
- float m_fCharDepth;
- CString m_szName;
- CString m_szFontName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageTTF)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageTTF)
- virtual BOOL OnInitDialog();
- afx_msg void OnChooseFont();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageLight dialog
- class AFX_EXT_CLASS C3dPageLight : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageLight);
- // Construction
- public:
- C3dPageLight();
- virtual ~C3dPageLight();
- // Attributes
- public:
- C3dObjectLight* m_pLight;
- C3dWorld* m_pWorld;
- // Dialog Data
- //{{AFX_DATA(C3dPageLight)
- enum { IDD = IDD_PAGE_LIGHT };
- CComboBox m_ComboType;
- CComboBox m_ComboDisplayAs;
- CSliderCtrl m_SliderAttnFactor;
- CString m_szName;
- float m_fSpotAngle;
- float m_fRadius;
- int m_iAttnConstant;
- float m_fAttnFactor;
- int m_iDirectional;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageLight)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void SetWindowsState();
- // Generated message map functions
- //{{AFX_MSG(C3dPageLight)
- virtual BOOL OnInitDialog();
- afx_msg void OnSelchangeTypeCombo();
- afx_msg void OnSelchangeDisplayCombo();
- afx_msg void OnAttnConstant();
- afx_msg void OnAttnLinear();
- afx_msg void OnAttnQuadratic();
- afx_msg void OnKillfocusAttnFactor();
- afx_msg void OnWDirectional();
- afx_msg void OnWPositional();
- afx_msg void OnSetfocusSliderAttnFactor(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnReturnSliderAttnFactor(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageLightColor dialog
- class AFX_EXT_CLASS C3dPageLightColor : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageLightColor);
- // Construction
- public:
- C3dPageLightColor();
- virtual ~C3dPageLightColor();
- // Attributes
- public:
- C3dObjectLight* m_pLight;
- C3dWorld* m_pWorld;
- CWnd m_wndAmbButtonColor;
- CWnd m_wndDifButtonColor;
- CWnd m_wndSpcButtonColor;
- // Dialog Data
- //{{AFX_DATA(C3dPageLightColor)
- enum { IDD = IDD_PAGE_LIGHT_COLOR };
- CSliderCtrl m_SliderSpecHighlight;
- CComboBox m_ComboSpc;
- CComboBox m_ComboDif;
- CComboBox m_ComboAmb;
- float m_fSpotExp;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageLightColor)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd(CWnd* pWnd, C3dColor* pColor);
- // Generated message map functions
- //{{AFX_MSG(C3dPageLightColor)
- virtual BOOL OnInitDialog();
- afx_msg void OnButtonAmbColorWnd();
- afx_msg void OnButtonDifColorWnd();
- afx_msg void OnButtonSpcColorWnd();
- afx_msg void OnSelchangeColorAmbCombo();
- afx_msg void OnSelchangeColorDifCombo();
- afx_msg void OnSelchangeColorSpcCombo();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageOrigin dialog
- class AFX_EXT_CLASS C3dPageOrigin : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageOrigin);
- // Construction
- public:
- C3dPageOrigin();
- virtual ~C3dPageOrigin();
- // Attributes
- public:
- C3dObject* m_pObject;
- C3dCamera* m_pCamera;
- // Dialog Data
- //{{AFX_DATA(C3dPageOrigin)
- enum { IDD = IDD_PAGE_ORIGIN };
- float m_fOriginX;
- float m_fOriginY;
- float m_fOriginZ;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageOrigin)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageOrigin)
- virtual BOOL OnInitDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageRotate dialog
- class AFX_EXT_CLASS C3dPageRotate : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageRotate);
- // Construction
- public:
- C3dPageRotate();
- virtual ~C3dPageRotate();
- // Attributes
- public:
- C3dObject* m_pObject;
- C3dCamera* m_pCamera;
- // Dialog Data
- //{{AFX_DATA(C3dPageRotate)
- enum { IDD = IDD_PAGE_ROTATE };
- float m_fRotateX;
- float m_fRotateY;
- float m_fRotateZ;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageRotate)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageRotate)
- virtual BOOL OnInitDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageTranslate dialog
- class AFX_EXT_CLASS C3dPageTranslate : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageTranslate);
- // Construction
- public:
- C3dPageTranslate();
- virtual ~C3dPageTranslate();
- // Attributes
- public:
- C3dObject* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageTranslate)
- enum { IDD = IDD_PAGE_TRANSLATE };
- float m_fTranslateX;
- float m_fTranslateY;
- float m_fTranslateZ;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageTranslate)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageTranslate)
- virtual BOOL OnInitDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageScale dialog
- class AFX_EXT_CLASS C3dPageScale : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageScale);
- // Construction
- public:
- C3dPageScale();
- virtual ~C3dPageScale();
- // Attributes
- public:
- C3dObject* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageScale)
- enum { IDD = IDD_PAGE_SCALE };
- float m_fScaleX;
- float m_fScaleY;
- float m_fScaleZ;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageScale)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(C3dPageScale)
- virtual BOOL OnInitDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageColorMatl dialog
- class AFX_EXT_CLASS C3dPageColorMatl : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageColorMatl);
- // Construction
- public:
- C3dPageColorMatl();
- virtual ~C3dPageColorMatl();
- // Attributes
- public:
- C3dObject* m_pObject;
- C3dColorList* m_pColorList;
- C3dMaterialList* m_pMatlList;
- CWnd m_wndSelColor;
- // Dialog Data
- //{{AFX_DATA(C3dPageColorMatl)
- enum { IDD = IDD_PAGE_COLORMATL };
- CComboBox m_ColorCombo;
- CComboBox m_MatlCombo;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageColorMatl)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd();
- // Generated message map functions
- //{{AFX_MSG(C3dPageColorMatl)
- virtual BOOL OnInitDialog();
- afx_msg void OnSelchangeMatlCombo();
- afx_msg void OnButtonColorWnd();
- afx_msg void OnSelchangeColorCombo();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- class CMyTerrainWnd;
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageTerrainColor dialog
- class AFX_EXT_CLASS C3dPageTerrainColor : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageTerrainColor);
- // Construction
- public:
- C3dPageTerrainColor();
- virtual ~C3dPageTerrainColor();
- // Attributes
- public:
- C3dObjectTerrain* m_pObject;
- C3dWorld* m_pWorld;
- CWnd m_wndButtonColor;
- CMyTerrainWnd* m_pWndTerrainPreview;
- // Dialog Data
- //{{AFX_DATA(C3dPageTerrainColor)
- enum { IDD = IDD_PAGE_OBJECT_TERRAIN_COLOR };
- int m_iColorSelect;
- int m_iSolidColor;
- BOOL m_bReflect;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageTerrainColor)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd(CWnd* pWnd, C3dColor* pColor);
- // Generated message map functions
- //{{AFX_MSG(C3dPageTerrainColor)
- virtual BOOL OnInitDialog();
- afx_msg void OnButtonColorWnd();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnRadioColorGradient();
- afx_msg void OnRadioColorSolid();
- afx_msg void OnRadioGrass();
- afx_msg void OnRadioRock();
- afx_msg void OnRadioSnow();
- afx_msg void OnRadioWater();
- afx_msg void OnCheckReflect();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- class AFX_EXT_CLASS C3dPageTerrainTexture : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageTerrainTexture);
- // Construction
- public:
- C3dPageTerrainTexture();
- virtual ~C3dPageTerrainTexture();
- // Attributes
- public:
- C3dObjectTerrain* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageTerrainTexture)
- enum { IDD = IDD_PAGE_OBJECT_TERRAIN_TEXTURE };
- CString m_szTextureFileName;
- BOOL m_bMapSubGridTextures;
- int m_iApplyTextureToGrid;
- int m_iSubTextureType;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageTerrainTexture)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd();
- // Generated message map functions
- //{{AFX_MSG(C3dPageTerrainTexture)
- virtual BOOL OnInitDialog();
- afx_msg void OnTextureOpen();
- afx_msg void OnTextureEdit();
- afx_msg void OnTextureRemove();
- afx_msg void OnCheckSubgridtextures();
- afx_msg void OnRadioApplytogrid();
- afx_msg void OnRadioApplytosubgrid();
- afx_msg void OnRadioSnow();
- afx_msg void OnRadioRock();
- afx_msg void OnRadioGrass();
- afx_msg void OnRadioWater();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageTexture dialog
- class AFX_EXT_CLASS C3dPageTexture : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageTexture);
- // Construction
- public:
- C3dPageTexture();
- virtual ~C3dPageTexture();
- // Attributes
- public:
- C3dObject* m_pObject;
- // Dialog Data
- //{{AFX_DATA(C3dPageTexture)
- enum { IDD = IDD_PAGE_TEXTURE };
- CString m_szTextureFileName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageTexture)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd();
- // Generated message map functions
- //{{AFX_MSG(C3dPageTexture)
- virtual BOOL OnInitDialog();
- afx_msg void OnTextureOpen();
- afx_msg void OnTextureEdit();
- afx_msg void OnTextureRemove();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- class AFX_EXT_CLASS C3dPageAnimation : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageAnimation);
- // Construction
- public:
- C3dPageAnimation();
- virtual ~C3dPageAnimation();
- // Attributes
- public:
- C3dObject* m_pObject;
- C3dCamera* m_pCamera;
- C3dWorld* m_pWorld;
- CString m_szSelectedProcedure;
- CAnimation* m_pAnimation;
- // Dialog Data
- //{{AFX_DATA(C3dPageAnimation)
- enum { IDD = IDD_PAGE_ANIMATION };
- CListBox m_AnimationList;
- CListBox m_ProcedureList;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageAnimation)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void AddObjectProcedures();
- void AddCameraProcedures();
- void AddWorldProcedures();
- void DisplaySelectedProcedures();
- // Generated message map functions
- //{{AFX_MSG(C3dPageAnimation)
- virtual BOOL OnInitDialog();
- afx_msg void OnButtonAdd();
- afx_msg void OnButtonConfigure();
- afx_msg void OnButtonDelete();
- afx_msg void OnSelchangeProcedureList();
- afx_msg void OnSelchangeSelectedList();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dObjectPropSheet class
- class AFX_EXT_CLASS C3dObjectPropSheet : public CPropertySheet
- {
- public:
- DECLARE_DYNAMIC(C3dObjectPropSheet)
- C3dObjectPropSheet(LPSTR lpName, CWnd* pWndParent, C3dObject* pObject, C3dWorld* pWorld);
- // Attributes
- C3dPageCone m_ConePage;
- C3dPageCSG m_CSGPage;
- C3dPageCloud m_CloudPage;
- C3dPageCloudColor m_CloudColorPage;
- C3dPageCube m_CubePage;
- C3dPageCylinder m_CylinderPage;
- C3dPageDisk m_DiskPage;
- C3dPageGrid m_GridPage;
- C3dPageLathe m_LathePage;
- C3dPageNURB m_NURBPage;
- C3dPagePlane m_PlanePage;
- C3dPageSphere m_SpherePage;
- C3dPageTerrain m_TerrainPage;
- C3dPageTerrainColor m_TerrainColorPage;
- C3dPageTerrainTexture m_TerrainTexturePage;
- C3dPageTorus m_TorusPage;
- C3dPageTriangle m_TrianglePage;
- C3dPageTTF m_TTFPage;
- C3dPageHSpline m_HSplinePage;
- C3dPageLight m_LightPage;
- C3dPageLightColor m_LightColorPage;
- C3dPageOrigin m_OriginPage;
- C3dPageRotate m_RotatePage;
- C3dPageScale m_ScalePage;
- C3dPageTranslate m_TranslatePage;
- C3dPageColorMatl m_ColorMatlPage;
- C3dPageTexture m_TexturePage;
- C3dPageAnimation m_AnimationPage;
- // Operations
- // Overrides
- virtual void PostNcDestroy();
- // Message Handlers
- protected:
- //{{AFX_MSG(C3dObjectPropSheet)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////