Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / precomputed_rotations_dlg.h
blobefc36684739b36e8d7df3edc7220cc0e5501cba6
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #if !defined(AFX_PRECOMPUTED_ROTATIONS_DLG_H__D7F383B7_AE48_4BFF_9E3E_AA41A8BE76A5__INCLUDED_)
18 #define AFX_PRECOMPUTED_ROTATIONS_DLG_H__D7F383B7_AE48_4BFF_9E3E_AA41A8BE76A5__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif
24 #include "particle_workspace.h"
26 namespace NL3D
28 struct CPSHintParticleRotateTheSame ;
29 } ;
33 /////////////////////////////////////////////////////////////////////////////
34 // CPrecomputedRotationsDlg dialog
36 class CPrecomputedRotationsDlg : public CDialog
39 public:
40 /** ctor
41 * \param prts the particle being edited
42 * \param toDisable a window that is disabled when precomputed rotation are activated (null = none)
44 CPrecomputedRotationsDlg(CParticleWorkspace::CNode *ownerNode, NL3D::CPSHintParticleRotateTheSame *prts, class CAttribDlg *toDisable = NULL); // standard constructor
45 void init(CWnd *pParent, sint x, sint y) ;
47 // Dialog Data
48 //{{AFX_DATA(CPrecomputedRotationsDlg)
49 enum { IDD = IDD_HINT_ROTATE_THE_SAME };
50 CEdit m_RotSpeedMinCtrl;
51 CEdit m_NbModelsCtrl;
52 CEdit m_RotSpeedMaxCtrl;
53 CString m_RotSpeedMax;
54 BOOL m_PrecomputedRotations;
55 CString m_RotSpeedMin;
56 CString m_NbModels;
57 //}}AFX_DATA
60 // Overrides
61 // ClassWizard generated virtual function overrides
62 //{{AFX_VIRTUAL(CPrecomputedRotationsDlg)
63 protected:
64 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
65 //}}AFX_VIRTUAL
67 // Implementation
68 protected:
70 // anable / disable the controls for the tuning of the number of prerotated models
71 void enablePrecompRotationControl(void) ;
72 // update the control value from the particle being edited
73 void updateFromReader(void);
74 void updateModifiedFlag() { if (_Node) _Node->setModified(true); }
76 CParticleWorkspace::CNode *_Node;
77 // the particle being edited
78 NL3D::CPSHintParticleRotateTheSame *_RotatedParticle ;
80 CAttribDlg *_WndToDisable ;
82 // Generated message map functions
83 //{{AFX_MSG(CPrecomputedRotationsDlg)
84 afx_msg void OnUpdateMinRotSpeed();
85 afx_msg void OnUpdateMaxRotSpeed();
86 afx_msg void OnUpdateNbModels();
87 afx_msg void OnHintPrecomputedRotations();
88 //}}AFX_MSG
89 DECLARE_MESSAGE_MAP()
92 //{{AFX_INSERT_LOCATION}}
93 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
95 #endif // !defined(AFX_PRECOMPUTED_ROTATIONS_DLG_H__D7F383B7_AE48_4BFF_9E3E_AA41A8BE76A5__INCLUDED_)