# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

animation_dlg.h

Go to the documentation of this file.
00001 
00007 /* Copyright, 2000 Nevrax Ltd.
00008  *
00009  * This file is part of NEVRAX NEL.
00010  * NEVRAX NEL is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2, or (at your option)
00013  * any later version.
00014 
00015  * NEVRAX NEL is distributed in the hope that it will be useful, but
00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00018  * General Public License for more details.
00019 
00020  * You should have received a copy of the GNU General Public License
00021  * along with NEVRAX NEL; see the file COPYING. If not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00023  * MA 02111-1307, USA.
00024  */
00025 
00026 #if !defined(AFX_ANIMATION_DLG_H__A9ECE123_1C51_11D5_9CD4_0050DAC3A412__INCLUDED_)
00027 #define AFX_ANIMATION_DLG_H__A9ECE123_1C51_11D5_9CD4_0050DAC3A412__INCLUDED_
00028 
00029 #if _MSC_VER > 1000
00030 #pragma once
00031 #endif // _MSC_VER > 1000
00032 // animation_dlg.h : header file
00033 //
00034 
00036 // CAnimationDlg dialog
00037 
00038 class CAnimationDlg : public CDialog
00039 {
00040 // Construction
00041 public:
00042         CAnimationDlg(class CObjectViewer* main, CWnd* pParent = NULL);   // standard constructor
00043 
00044 // Dialog Data
00045         //{{AFX_DATA(CAnimationDlg)
00046         enum { IDD = IDD_ANIMATION };
00047         CButton FRWCtrl;
00048         CButton FFWCtrl;
00049         CSliderCtrl     TimeLineCtrl;
00050         CButton PlayCtrl;
00051         CButton StopCtrl;
00052         float   End;
00053         float   Speed;
00054         float   Start;
00055         BOOL    Loop;
00056         int             UICurrentFrame;
00057         //}}AFX_DATA
00058 
00059         bool                                    Playing;
00060         uint64                                  LastTime;
00061         CObjectViewer*                  Main;
00062         float                                   CurrentFrame;
00063 
00064         void handle ();
00065         void setAnimTime (float animStart, float animEnd);
00066         void updateBar ();
00067         NL3D::CAnimationTime getTime ();
00068 
00069 // Overrides
00070         // ClassWizard generated virtual function overrides
00071         //{{AFX_VIRTUAL(CAnimationDlg)
00072         protected:
00073         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00074         //}}AFX_VIRTUAL
00075 
00076 // Implementation
00077 protected:
00078 
00079         // Generated message map functions
00080         //{{AFX_MSG(CAnimationDlg)
00081         afx_msg void OnEnd();
00082         afx_msg void OnPlay();
00083         afx_msg void OnStop();
00084         afx_msg void OnChangeCurrentFrame();
00085         afx_msg void OnChangeEndEdit();
00086         afx_msg void OnChangeSpeed();
00087         afx_msg void OnStart();
00088         afx_msg void OnChangeStartEdit();
00089         afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00090         virtual BOOL OnInitDialog();
00091         afx_msg void OnDestroy();
00092         //}}AFX_MSG
00093         DECLARE_MESSAGE_MAP()
00094 };
00095 
00096 //{{AFX_INSERT_LOCATION}}
00097 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00098 
00099 #endif // !defined(AFX_ANIMATION_DLG_H__A9ECE123_1C51_11D5_9CD4_0050DAC3A412__INCLUDED_)