root / SketchupMT Plugin / MultitouchSU / MtSuGlobals.h @ 38

View | Annotate | Download (2.1 KB)

1
/***
2
Spaced out for Comments and developer Credits and license info
3
*/
4
5
#ifndef MTSUGLOBALS_H_INCLUDED
6
#define MTSUGLOBALS_H_INCLUDED
7
// ----------------------------------------------------------------------------
8
//  Globals
9
// ----------------------------------------------------------------------------
10
extern  int     g_DllIsInitialized;                 //guard while initializing
11
extern  char*   g_lpszTitleToFind;                  //Title of window to find
12
extern  char*   g_lpszClassToFind;                  //Class of View window
13
extern  HWND    g_hWndSketchUp;                     //handle of SketchUp window
14
extern  HWND    g_hWndSketchUpView;                 //handle of SketchUp View subwindow
15
extern  HWND    g_hWndSketchUpStatusBar;            //handle of SketchUp StatusBar
16
extern  DWORD   g_dwCurrentProcessId;               //PID of SketchUp process
17
extern  LONG    OldWndProc;                         //Main windoww proc that we subclassed
18
//enum    {g_enumMtSuUserMsgNum = WM_USER+0x8001};    //MultiTouchSu WM_USER message id
19
extern  UINT    g_MtSuUserMsgNum;                   //variable of above
20
struct structMtSuTuioData
21
{
22
    int      sessionID;
23
    int      symbolID;
24
    float    positionX;
25
    float    positionY;
26
    //float    positionZ;
27
    float    angle;
28
    //float    angleA;
29
    //float    angleB;
30
    //float    angleC;
31
    //float    motionSpeedX;
32
    //float    motionSpeedY;
33
    //float    motionSpeedZ;
34
    float    motionSpeed;
35
    //float    rotatonSpeedA;
36
    //float    rotatonSpeedB;
37
    //float    rotatonSpeedC;
38
    float    rotationSpeed;
39
    float    motionAccel;
40
    float    rotationAccel;
41
    wxString packetMsg;
42
43
    void clear()
44
    {
45
        sessionID   = 0;
46
        symbolID    = 0;
47
        positionX   = 0;
48
        positionY   = 0;
49
        angle       = 0;
50
        motionSpeed = 0;
51
        rotationSpeed = 0;
52
        motionAccel   = 0;
53
        rotationAccel = 0;
54
        packetMsg = wxEmptyString;
55
    }
56
};
57
extern  structMtSuTuioData g_MtSuTuioData;
58
59
#define ZEROMEMORY(obj)   ::ZeroMemory(&obj, sizeof(obj))
60
61
#endif // MTSUGLOBALS_H_INCLUDED