forked from andybarry/makerscanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
camview.h
65 lines (48 loc) · 1.08 KB
/
camview.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
////////////////////////////////////////////////////////////////////
// Name: camera view header
// File: camview.h
// Purpose: interface for the CCamView class.
//
// Created by: Larry Lart on 06-Jul-2006
// Updated by: Andrew Barry Jan 2010
//
////////////////////////////////////////////////////////////////////
#ifndef _CCAMVIEW_H
#define _CCAMVIEW_H
#include <wx/wx.h>
#include "cv.h"
#include "highgui.h"
class CCamView : public wxWindow
{
public:
CCamView( wxWindow *frame, const wxPoint& pos, const wxSize& size );
// Operations
public:
// Implementation
public:
virtual ~CCamView( );
bool IsCaptureEnabled( );
void CheckUpdate( );
// Draw method
void DrawCam( IplImage* pImg );
void Draw( wxDC& dc );
// Public data
public:
//CCamera *m_pCamera;
// Protected data
protected:
//CImage m_Canvas;
wxBitmap *m_pBitmap;
bool m_bDrawing;
bool m_bNewImage;
int m_nWidth;
int m_nHeight;
// private methods
private:
void OnPaint(wxPaintEvent& event);
void OnSize( wxSizeEvent& even );
// protected data
protected:
DECLARE_EVENT_TABLE()
};
#endif