1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
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.
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_RIBBON_DLG_H__6BE29749_979B_4066_9CA2_6EDDDBDADA9C__INCLUDED_)
18 #define AFX_RIBBON_DLG_H__6BE29749_979B_4066_9CA2_6EDDDBDADA9C__INCLUDED_
24 #include "ps_wrapper.h"
31 #include "editable_range.h"
32 #include "particle_workspace.h"
34 class CRibbonDlg
: public CDialog
38 CRibbonDlg(CParticleWorkspace::CNode
*ownerNode
, NL3D::CPSRibbonBase
*ribbon
, CWnd
* pParent
= NULL
); // standard constructor
40 void init(CWnd
*pParent
, sint x
, sint y
);
43 //{{AFX_DATA(CRibbonDlg)
44 enum { IDD
= IDD_RIBBON_DLG
};
45 BOOL m_UseHermitteInterpolation
;
46 BOOL m_ConstantLength
;
51 // ClassWizard generated virtual function overrides
52 //{{AFX_VIRTUAL(CRibbonDlg)
54 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
59 CParticleWorkspace::CNode
*_Node
;
60 NL3D::CPSRibbonBase
*_Ribbon
; // the ribbon being edited
61 CEditableRangeFloat
*_RibbonLengthDlg
;
62 CEditableRangeFloat
*_LODDegradationDlg
;
65 // Generated message map functions
66 //{{AFX_MSG(CRibbonDlg)
67 afx_msg
void OnUseHermitteInterpolation();
68 afx_msg
void OnConstantLength();
69 virtual BOOL
OnInitDialog();
70 afx_msg
void OnSelchangeTrailCoordSystem();
74 struct CRibbonLengthWrapper
: IPSWrapperFloat
76 NL3D::CPSRibbonBase
*R
;
78 void set(const float &v
);
79 } _RibbonLengthWrapper
;
82 struct CLODDegradationWrapper
: IPSWrapperFloat
84 NL3D::CPSRibbonBase
*R
;
86 void set(const float &v
);
87 } _LODDegradationWrapper
;
90 void updateModifiedFlag() { if (_Node
) _Node
->setModified(true); }
93 //{{AFX_INSERT_LOCATION}}
94 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
96 #endif // !defined(AFX_RIBBON_DLG_H__6BE29749_979B_4066_9CA2_6EDDDBDADA9C__INCLUDED_)