Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / auto_lod_dlg.h
blobdd4f54980529487cdd193df5defa17e8eaebbc68
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_AUTO_LOD_DLG_H__BCD6DB9A_FA8A_47AD_9E95_317A8B94047A__INCLUDED_)
18 #define AFX_AUTO_LOD_DLG_H__BCD6DB9A_FA8A_47AD_9E95_317A8B94047A__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif
24 #include "ps_wrapper.h"
25 #include "dialog_stack.h"
26 #include "nel/3d/particle_system.h"
27 #include "particle_workspace.h"
29 namespace NL3D
31 class CParticleSystem;
33 struct IPopupNotify;
35 class CAutoLODDlg : public CDialog, public CDialogStack
37 // Construction
38 public:
39 CAutoLODDlg(CParticleWorkspace::CNode *ownerNode, NL3D::CParticleSystem *ps, IPopupNotify *pn, CWnd* pParent = NULL); // standard constructor
41 void init(CWnd *pParent);
42 // Dialog Data
43 //{{AFX_DATA(CAutoLODDlg)
44 enum { IDD = IDD_AUTO_LOD };
45 // NOTE: the ClassWizard will add data members here
46 //}}AFX_DATA
49 // Overrides
50 // ClassWizard generated virtual function overrides
51 //{{AFX_VIRTUAL(CAutoLODDlg)
52 protected:
53 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
54 //}}AFX_VIRTUAL
56 // Implementation
57 protected:
58 CParticleWorkspace::CNode *_Node;
59 NL3D::CParticleSystem *_PS;
60 IPopupNotify *_PN;
64 struct CDistRatioWrapper : IPSWrapperFloat
66 NL3D::CParticleSystem *PS;
67 virtual float get() const { return PS->getAutoLODStartDistPercent(); }
68 virtual void set(const float &v) { PS->setupAutoLOD(v, PS->getAutoLODDegradationExponent()); }
69 } _DistRatioWrapper;
71 struct CMaxDistLODBiasWrapper : IPSWrapperFloat
73 NL3D::CParticleSystem *PS;
74 virtual float get() const { return PS->getMaxDistLODBias(); }
75 virtual void set(const float &v) { PS->setMaxDistLODBias(v); }
76 } _MaxDistLODBiasWrapper;
78 // Generated message map functions
79 //{{AFX_MSG(CAutoLODDlg)
80 afx_msg void OnClose();
81 virtual BOOL OnInitDialog();
82 afx_msg void OnSelchangeDegradationExponent();
83 afx_msg void OnSkipParticles();
84 //}}AFX_MSG
85 DECLARE_MESSAGE_MAP()
88 //{{AFX_INSERT_LOCATION}}
89 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
91 #endif // !defined(AFX_AUTO_LOD_DLG_H__BCD6DB9A_FA8A_47AD_9E95_317A8B94047A__INCLUDED_)