80 lines
1.8 KiB
C++
80 lines
1.8 KiB
C++
#if !defined(AFX_PATHVIDEODLG_H__9E875356_2D8D_4CA5_9E9B_CEBBB2011FDB__INCLUDED_)
|
|
#define AFX_PATHVIDEODLG_H__9E875356_2D8D_4CA5_9E9B_CEBBB2011FDB__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// PathVideoDlg.h : header file
|
|
|
|
#include "resource.h"
|
|
#include "writeavi.h"
|
|
|
|
|
|
class CPathVideoDlg : public GlwCAcUiDialog
|
|
{
|
|
public:
|
|
CPathVideoDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CPathVideoDlg)
|
|
enum { IDD = IDD_VIDEO_SETTING_SURROUND };
|
|
//}}AFX_DATA
|
|
static BOOL m_bRender;
|
|
static int m_nFrameNum;
|
|
static int m_nRate;
|
|
static int m_nColorNum;
|
|
|
|
XPoint m_ptCamera, m_ptTarget;
|
|
Entity m_id;
|
|
Entity m_ePathCam, m_ePathTar;
|
|
XPoly2D m_pathCamera, m_pathTarget;
|
|
int m_nCount;
|
|
BOOL m_bInit;
|
|
BOOL m_bTakePhoto;
|
|
BOOL m_bHasInitAvi;
|
|
BOOL m_bIsPathCam, m_bIsPathTar;
|
|
CAVIFile m_fileAvi;
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CPathVideoDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CPathVideoDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnCameraPath();
|
|
afx_msg void OnCameraPoint();
|
|
afx_msg void OnTargetPath();
|
|
afx_msg void OnTargetPoint();
|
|
virtual void OnOK();
|
|
afx_msg void OnPreview();
|
|
afx_msg void OnDestroy();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
public:
|
|
UINT GetColorNum();
|
|
|
|
protected:
|
|
void TakePhoto();
|
|
void HideDialog(BOOL Flag);
|
|
BOOL GetAviFile(CString& csAviFile);
|
|
BOOL SetRenderConfig();
|
|
BOOL Render();
|
|
|
|
protected:
|
|
XString m_sTGAFile;
|
|
XString m_sBMPFile;
|
|
CRect m_rectVP;
|
|
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_PATHVIDEODLG_H__9E875356_2D8D_4CA5_9E9B_CEBBB2011FDB__INCLUDED_)
|