Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / basis_edit.h
bloba2ab763d7fff35d4cfb0f65b58357f400761b8c0
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_BASIS_EDIT_H__7EBC9DBD_5DDD_44F6_8C3D_6F8FB0A1FFCD__INCLUDED_)
18 #define AFX_BASIS_EDIT_H__7EBC9DBD_5DDD_44F6_8C3D_6F8FB0A1FFCD__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif
24 #include "nel/3d/ps_plane_basis.h"
25 #include "ps_wrapper.h"
26 #include "edit_attrib_dlg.h"
31 /////////////////////////////////////////////////////////////////////////////
32 // CBasisEdit dialog
34 class CBasisEdit : public CEditAttribDlg
36 // Construction
37 public:
38 CBasisEdit(CWnd* pParent = NULL); // standard constructor
40 // Dialog Data
41 //{{AFX_DATA(CBasisEdit)
42 enum { IDD = IDD_BASIS_EDIT };
43 CScrollBar m_PhiCtrl;
44 CScrollBar m_PsiCtrl;
45 CScrollBar m_ThetaCtrl;
46 UINT m_Psi;
47 UINT m_Theta;
48 UINT m_Phi;
49 //}}AFX_DATA
52 // Overrides
53 // ClassWizard generated virtual function overrides
54 //{{AFX_VIRTUAL(CBasisEdit)
55 protected:
56 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
57 //}}AFX_VIRTUAL
59 // Implementation
61 public:
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) ;
69 protected:
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);
80 //}}AFX_MSG
81 DECLARE_MESSAGE_MAP()
85 void DrawBasisInDC(const CPoint &center, 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_)