home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 8090 / ModelEdit.7z / PieceLODGenDlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2006-03-08  |  967 b   |  39 lines

  1. #include "precompile.h"
  2. #include "modeledit.h"
  3. #include "PieceLODGenDlg.h"
  4.  
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10.  
  11.  
  12. BEGIN_MESSAGE_MAP( CPieceLODGenDlg, CDialog )
  13. END_MESSAGE_MAP()
  14.  
  15.  
  16. CPieceLODGenDlg::CPieceLODGenDlg( CWnd* parent /*=NULL*/ )
  17.     : CDialog( CPieceLODGenDlg::IDD, parent )
  18. {
  19.     m_Distance = 0.0f;
  20.     m_Percent = 0.0f;
  21.     m_MaxEdgeLen = 0.0f;
  22.     m_MinNumTris = 0;
  23. }
  24.  
  25.  
  26. void CPieceLODGenDlg::DoDataExchange( CDataExchange* pDX )
  27. {
  28.     CDialog::DoDataExchange( pDX );
  29.  
  30.     DDX_Text( pDX, IDC_DISTANCE, m_Distance );
  31.     DDV_MinMaxFloat( pDX, m_Distance, 0.0f, 10000000.0f );
  32.     DDX_Text( pDX, IDC_TRI_PERCENT, m_Percent );
  33.     DDV_MinMaxFloat( pDX, m_Percent, 0.0f, 100.0f );
  34.     DDX_Text( pDX, IDC_MAX_EDGE_LENGTH, m_MaxEdgeLen );
  35.     DDV_MinMaxFloat( pDX, m_MaxEdgeLen, 0.0f, 10000000.0f );
  36.     DDX_Text( pDX, IDC_TRI_MIN, m_MinNumTris );
  37.     DDV_MinMaxUInt( pDX, m_MinNumTris, 0, 100000000 );
  38. }
  39.