Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / nel / tools / 3d / object_viewer / ribbon_dlg.h
blobd18d58429ae3649d4745598ed5511c23f13cade7
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_RIBBON_DLG_H__6BE29749_979B_4066_9CA2_6EDDDBDADA9C__INCLUDED_)
18 #define AFX_RIBBON_DLG_H__6BE29749_979B_4066_9CA2_6EDDDBDADA9C__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif
24 #include "ps_wrapper.h"
26 namespace NL3D
28 class CPSRibbonBase;
31 #include "editable_range.h"
32 #include "particle_workspace.h"
34 class CRibbonDlg : public CDialog
36 // Construction
37 public:
38 CRibbonDlg(CParticleWorkspace::CNode *ownerNode, NL3D::CPSRibbonBase *ribbon, CWnd* pParent = NULL); // standard constructor
39 ~CRibbonDlg();
40 void init(CWnd *pParent, sint x, sint y);
42 // Dialog Data
43 //{{AFX_DATA(CRibbonDlg)
44 enum { IDD = IDD_RIBBON_DLG };
45 BOOL m_UseHermitteInterpolation;
46 BOOL m_ConstantLength;
47 //}}AFX_DATA
50 // Overrides
51 // ClassWizard generated virtual function overrides
52 //{{AFX_VIRTUAL(CRibbonDlg)
53 protected:
54 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
55 //}}AFX_VIRTUAL
57 // Implementation
58 protected:
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();
71 //}}AFX_MSG
72 DECLARE_MESSAGE_MAP()
74 struct CRibbonLengthWrapper : IPSWrapperFloat
76 NL3D::CPSRibbonBase *R;
77 float get() const;
78 void set(const float &v);
79 } _RibbonLengthWrapper;
82 struct CLODDegradationWrapper : IPSWrapperFloat
84 NL3D::CPSRibbonBase *R;
85 float get() const;
86 void set(const float &v);
87 } _LODDegradationWrapper;
89 void updateState();
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_)