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_SLOT_DLG_H__9B22CB8B_1929_11D5_9CD4_0050DAC3A412__INCLUDED_)
18 #define AFX_SLOT_DLG_H__9B22CB8B_1929_11D5_9CD4_0050DAC3A412__INCLUDED_
22 #endif // _MSC_VER > 1000
23 // slot_dlg.h : header file
26 #include "blend_wnd.h"
27 #include <nel/3d/animation_set.h>
28 #include <nel/misc/debug.h>
30 /////////////////////////////////////////////////////////////////////////////
33 class CSlotDlg
: public CDialog
37 CSlotDlg(CWnd
* pParent
= NULL
); // standard constructor
39 void init (uint id
, class CObjectViewer
* mainDlg
);
43 const NL3D::CAnimation
*getAnimationPointer () const;
45 const NL3D::CSkeletonWeight
*getSkeletonPointer () const;
47 const NL3D::CAnimationSet
*getAnimationSetPointer () const;
49 class CSlotInfo
*getSlotInformation () const;
51 class CInstanceInfo
*getInstanceInformation () const;
53 void setWindowName ();
55 void updateScrollBar ();
56 void setAnimTime (float animStart
, float animEnd
);
57 float getTimeIncrement ();
58 float getStartTime ();
60 void computeLength ();
67 CObjectViewer
* MainDlg
;
70 //{{AFX_DATA(CSlotDlg)
71 enum { IDD
= IDD_SLOT
};
72 CButton InvertSkeletonWeightCtrl
;
73 CButton AlignBlendCtrl
;
75 CScrollBar ScrollBarCtrl
;
76 CSpinButtonCtrl OffsetSpinCtrl
;
78 CSpinButtonCtrl StartTimeSpinCtrl
;
79 CSpinButtonCtrl StartBlendSpinCtrl
;
80 CSpinButtonCtrl SpeedFactorSpinCtrl
;
81 CSpinButtonCtrl SmoothnessSpinCtrl
;
82 CSpinButtonCtrl EndTimeSpinCtrl
;
83 CSpinButtonCtrl EndBlendSpinCtrl
;
86 CEdit SpeddFactorCtrl
;
95 BOOL SkeletonWeightInverted
;
104 float AnimationLength
;
106 void refresh (BOOL update
);
109 // ClassWizard generated virtual function overrides
110 //{{AFX_VIRTUAL(CSlotDlg)
112 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
120 // Generated message map functions
121 //{{AFX_MSG(CSlotDlg)
122 virtual BOOL
OnInitDialog();
123 afx_msg
void OnPaint();
124 afx_msg
void OnDeltaposEndBlendSpin(NMHDR
* pNMHDR
, LRESULT
* pResult
);
125 afx_msg
void OnDeltaposEndTimeSpin(NMHDR
* pNMHDR
, LRESULT
* pResult
);
126 afx_msg
void OnDeltaposSmoothnessSpin(NMHDR
* pNMHDR
, LRESULT
* pResult
);
127 afx_msg
void OnDeltaposSpeedFactorSpin(NMHDR
* pNMHDR
, LRESULT
* pResult
);
128 afx_msg
void OnDeltaposStartBlendSpin(NMHDR
* pNMHDR
, LRESULT
* pResult
);
129 afx_msg
void OnDeltaposStartTimeSpin(NMHDR
* pNMHDR
, LRESULT
* pResult
);
130 afx_msg
void OnChangeEndBlend();
131 afx_msg
void OnChangeEndTime();
132 afx_msg
void OnChangeSmoothness();
133 afx_msg
void OnChangeSpeedFactor();
134 afx_msg
void OnChangeStartBlend();
135 afx_msg
void OnChangeStartTime();
136 afx_msg
void OnSetAnimation();
137 afx_msg
void OnSetSkeleton();
138 afx_msg
void OnChangeOffset();
139 afx_msg
void OnDeltaposOffsetSpin(NMHDR
* pNMHDR
, LRESULT
* pResult
);
140 afx_msg
void OnHScroll(UINT nSBCode
, UINT nPos
, CScrollBar
* pScrollBar
);
141 afx_msg
void OnClamp();
142 afx_msg
void OnRepeat();
143 afx_msg
void OnDisable();
144 afx_msg
void OnAlignBlend();
145 afx_msg
void OnDestroy();
146 afx_msg
void OnEnable();
147 afx_msg
void OnInvertSkeletonWeight();
149 DECLARE_MESSAGE_MAP()
152 //{{AFX_INSERT_LOCATION}}
153 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
155 #endif // !defined(AFX_SLOT_DLG_H__9B22CB8B_1929_11D5_9CD4_0050DAC3A412__INCLUDED_)