/** SLKinect.h by Fumi.Iseki (c) */ #pragma once #ifndef __AFXWIN_H__ #error "PCH に対してこのファイルをインクルードする前に 'stdafx.h' をインクルードしてください" #endif #include "resource.h" // メイン シンボル #include "NITools/NiDevice.h" #include "MainFrm.h" #include "Vector.h" #include "Rotation.h" #include "WinBaseLib.h" #include "GnMFCLib.h" #include "MFCLib.h" #include "LogWndFrame.h" #include "ParameterSet.h" #include "NITools/NiSMemory.h" #include "NITools/NiNetwork.h" #include "NITools/NiJoints.h" extern CSLKinectApp theApp; #ifdef WIN64 #define SLKINECT_VERSION "SLKinect2 2.1Dev (x64)" #else #define SLKINECT_VERSION "SLKinect2 2.1Dev (x86)" #endif #define SLKINECT_LOCK_FILE ".SLKinect.lock" #define SLKINECT_CONFIG_FILE "SLKinect.cfg" #define SLKINECT_BVH_TEMPLATE "bvh_template.data" // 初期ウィンドウサイズ #define SLKINECT_WND_XSIZE 800 #define SLKINECT_WND_YSIZE 650 using namespace jbxl; using namespace jbxwl; //////////////////////////////////////////////////////////////////////////////////// // // CSLKinectApp: // class CSLKinectApp : public CWinApp, public CAppCallBack { public: CSLKinectApp(); ~CSLKinectApp(); public: CMainFrame* pMainFrame; CLogWndFrame* pLogFrame; CLogWndDoc* pLogDoc; CDxDirectView* pSensorView; CDx3DDirectView* pModelView; CNiJoints* niJoints; CNiDevice* niDevice; CNiNetwork* niNetwork; CNiSMemory* sharedMem; CParameterSet appParam; public: CMultiDocTemplate* pDocTemplLOG; CMultiDocTemplate* pDocTemplSNR; CMultiDocTemplate* pDocTemplMDL; public: BOOL isLoggedIn; BOOL isRecvData; BOOL dataSaving; BOOL savedData; BOOL loadedData; // BOOL createdLockF; int cameraScale; int motorTilt; public: BOOL InitNiDevice(void); void SensorWndOpen(void); void MakeCameraImage(void); public: // void readConfigFile(char* fn); void writeConfigFile(char* fn); void updateStatusBar(BOOL init=FALSE); void updateMenu(CMenu* menu = NULL); void enableSensorWndMenu(CMenu* menu, BOOL enable); void enableLoadedWndMenu(CMenu* menu, BOOL enable); Buffer lockFilePath; Buffer makeLockFile(void); void deleteLockFile(void); public: virtual BOOL InitInstance(); virtual void ViewDistructor(CExView* view); virtual void ViewDistructor(CExTextView* view); virtual void FrameDistructor(CExTextFrame* frm); afx_msg void OnAppAbout(); DECLARE_MESSAGE_MAP() afx_msg void OnModelingWndOpen(); afx_msg void OnLogWndOpen(); afx_msg void OnSnsrWndOpen_x1(); afx_msg void OnSnsrWndOpen_x2(); afx_msg void OnSnsrWndOpen_x3(); afx_msg void OnSnsrWndOpen_x4(); afx_msg void OnLddWndOpen_x1(); afx_msg void OnLddWndOpen_x2(); afx_msg void OnLddWndOpen_x3(); afx_msg void OnLddWndOpen_x4(); afx_msg void OnSettingLogingMode(); afx_msg void OnSettingViewMode(); afx_msg void OnSettingOutSMemory(); afx_msg void OnSettingNetwork(); afx_msg void OnSettingAnimation(); afx_msg void OnSettingDataSave(); afx_msg void OnSettingDevice(); afx_msg void OnSettingMotion(); afx_msg void OnAppLogin(); afx_msg void OnAppLogout(); afx_msg void OnAppDataLoad(); afx_msg void OnAppDataSave(); afx_msg void OnAppDataRecv(); afx_msg void OnAppReboot(); };