Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / slot_dlg.h
blobd53fada52bc5ea75d95742be941437a11354482c
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_SLOT_DLG_H__9B22CB8B_1929_11D5_9CD4_0050DAC3A412__INCLUDED_)
18 #define AFX_SLOT_DLG_H__9B22CB8B_1929_11D5_9CD4_0050DAC3A412__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
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 /////////////////////////////////////////////////////////////////////////////
31 // CSlotDlg dialog
33 class CSlotDlg : public CDialog
35 // Construction
36 public:
37 CSlotDlg(CWnd* pParent = NULL); // standard constructor
39 void init (uint id, class CObjectViewer* mainDlg);
41 bool isEmpty();
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 ();
54 void validateTime ();
55 void updateScrollBar ();
56 void setAnimTime (float animStart, float animEnd);
57 float getTimeIncrement ();
58 float getStartTime ();
59 float getEndTime ();
60 void computeLength ();
62 void RefreshData ();
64 // A CBlendWnd
65 uint Id;
66 CBlendWnd Blend;
67 CObjectViewer* MainDlg;
69 // Dialog Data
70 //{{AFX_DATA(CSlotDlg)
71 enum { IDD = IDD_SLOT };
72 CButton InvertSkeletonWeightCtrl;
73 CButton AlignBlendCtrl;
74 CButton ClampCtrl;
75 CScrollBar ScrollBarCtrl;
76 CSpinButtonCtrl OffsetSpinCtrl;
77 CEdit OffsetCtrl;
78 CSpinButtonCtrl StartTimeSpinCtrl;
79 CSpinButtonCtrl StartBlendSpinCtrl;
80 CSpinButtonCtrl SpeedFactorSpinCtrl;
81 CSpinButtonCtrl SmoothnessSpinCtrl;
82 CSpinButtonCtrl EndTimeSpinCtrl;
83 CSpinButtonCtrl EndBlendSpinCtrl;
84 CEdit StartTimeCtrl;
85 CEdit StartBlendCtrl;
86 CEdit SpeddFactorCtrl;
87 CEdit SmoothnessCtrl;
88 CEdit EndTimeCtrl;
89 CEdit EndBlendCtrl;
90 float EndBlend;
91 float Smoothness;
92 float SpeedFactor;
93 float StartBlend;
94 int ClampMode;
95 BOOL SkeletonWeightInverted;
96 int Offset;
97 int StartTime;
98 int EndTime;
99 BOOL enable;
100 //}}AFX_DATA
102 float StartAnimTime;
103 float EndAnimTime;
104 float AnimationLength;
106 void refresh (BOOL update);
108 // Overrides
109 // ClassWizard generated virtual function overrides
110 //{{AFX_VIRTUAL(CSlotDlg)
111 protected:
112 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
113 //}}AFX_VIRTUAL
115 // Implementation
116 protected:
118 bool _Empty;
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();
148 //}}AFX_MSG
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_)