home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 8090 / ModelEdit.7z / DimensionsDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-03-08  |  1.9 KB  |  74 lines

  1. #if !defined(AFX_DIMENSIONSDLG_H__FDFC39C1_8E6D_11D1_99E4_0060970987C3__INCLUDED_)
  2. #define AFX_DIMENSIONSDLG_H__FDFC39C1_8E6D_11D1_99E4_0060970987C3__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // DimensionsDlg.h : header file
  8. //
  9.  
  10.  
  11. #include "model.h"
  12.  
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CDimensionsDlg dialog
  16.  
  17. class CDimensionsDlg : public CDialog
  18. {
  19. // Construction
  20. public:
  21.     CDimensionsDlg(CWnd* pParent = NULL);   // standard constructor
  22.  
  23. // Dialog Data
  24.     //{{AFX_DATA(CDimensionsDlg)
  25.     enum { IDD = IDD_DIMENSIONS };
  26.     CEdit    m_ZDim;
  27.     CEdit    m_YDim;
  28.     CEdit    m_XDim;
  29.     //}}AFX_DATA
  30.  
  31.  
  32.     // Set this before running the dialog.
  33.     Model *m_pModel;
  34.     int m_Anims[100];
  35.     int m_nAnims;
  36.  
  37.     // put the current dimensions into the edit controls
  38.     void UpdateControls();
  39.  
  40.     //given an animation and a keyframe, this will find the dims that encompass the
  41.     //model
  42.     static bool FindAnimDims(Model* pModel, uint32 nAnim, uint32 nKeyFrame, LTVector& vDims);
  43.  
  44. // Overrides
  45.     // ClassWizard generated virtual function overrides
  46.     //{{AFX_VIRTUAL(CDimensionsDlg)
  47.     protected:
  48.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  49.     virtual void PostNcDestroy();
  50.     //}}AFX_VIRTUAL
  51.  
  52. // Implementation
  53. protected:
  54.  
  55.     // Generated message map functions
  56.     //{{AFX_MSG(CDimensionsDlg)
  57.     virtual BOOL OnInitDialog();
  58.     afx_msg void OnApply();
  59.     afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  60.     afx_msg void OnDone();
  61.     afx_msg void OnUseCurAnim();
  62.     //}}AFX_MSG
  63.     DECLARE_MESSAGE_MAP()
  64.  
  65. private:
  66.     // modify the models dimensions based on values in the dialog
  67.     void SetDimensions();
  68. };
  69.  
  70. //{{AFX_INSERT_LOCATION}}
  71. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  72.  
  73. #endif // !defined(AFX_DIMENSIONSDLG_H__FDFC39C1_8E6D_11D1_99E4_0060970987C3__INCLUDED_)
  74.