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_BASIS_EDIT_H__7EBC9DBD_5DDD_44F6_8C3D_6F8FB0A1FFCD__INCLUDED_)
18 #define AFX_BASIS_EDIT_H__7EBC9DBD_5DDD_44F6_8C3D_6F8FB0A1FFCD__INCLUDED_
24 #include "nel/3d/ps_plane_basis.h"
25 #include "ps_wrapper.h"
26 #include "edit_attrib_dlg.h"
31 /////////////////////////////////////////////////////////////////////////////
34 class CBasisEdit
: public CEditAttribDlg
38 CBasisEdit(CWnd
* pParent
= NULL
); // standard constructor
41 //{{AFX_DATA(CBasisEdit)
42 enum { IDD
= IDD_BASIS_EDIT
};
45 CScrollBar m_ThetaCtrl
;
53 // ClassWizard generated virtual function overrides
54 //{{AFX_VIRTUAL(CBasisEdit)
56 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
62 // set a wrapper to get the datas
63 void setWrapper(IPSWrapper
<NL3D::CPlaneBasis
> *wrapper
) { _Wrapper
= wrapper
; }
65 // create and init the dialog
66 void init(uint32 x
, uint32 y
, CWnd
*pParent
) ;
71 void updateAnglesFromReader(void) ;
74 IPSWrapper
<NL3D::CPlaneBasis
> *_Wrapper
;
76 // Generated message map functions
77 //{{AFX_MSG(CBasisEdit)
78 afx_msg
void OnPaint();
79 afx_msg
void OnHScroll(UINT nSBCode
, UINT nPos
, CScrollBar
* pScrollBar
);
85 void DrawBasisInDC(const CPoint
¢er
, float size
, const NLMISC::CMatrix
&m
, CDC
&dc
, NLMISC::CRGBA col
[3]) ;
88 //{{AFX_INSERT_LOCATION}}
89 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
91 #endif // !defined(AFX_BASIS_EDIT_H__7EBC9DBD_5DDD_44F6_8C3D_6F8FB0A1FFCD__INCLUDED_)