-
Notifications
You must be signed in to change notification settings - Fork 70
/
DistanceToReferenceDialog.h
74 lines (59 loc) · 1.86 KB
/
DistanceToReferenceDialog.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
65
66
67
68
69
70
71
72
73
74
#ifndef DISTANCETOREFERENCEDIALOG_H
#define DISTANCETOREFERENCEDIALOG_H
//(*Headers(DistanceToReferenceDialog)
#include <wx/spinctrl.h>
#include <wx/dialog.h>
#include <wx/sizer.h>
#include <wx/button.h>
#include <wx/panel.h>
#include <wx/statline.h>
#include <wx/stattext.h>
//*)
#define USER_CENTERED_LASER 999
#include "CaptureThread.h"
class DistanceToReferenceDialog: public wxDialog
{
public:
DistanceToReferenceDialog(CaptureThread *captureThreadIn, wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
virtual ~DistanceToReferenceDialog();
//(*Declarations(DistanceToReferenceDialog)
wxPanel* Panel1;
wxButton* butLaserCentered;
wxStaticText* lblOr;
wxStaticText* lblCoverLaser;
wxStaticText* StaticText1;
wxStaticLine* StaticLine1;
wxButton* butLaserCovered;
wxStaticText* lblCenterLaser;
wxStaticText* lblEnterDistance;
wxSpinCtrl* spinDistance;
wxButton* butDistanceEntered;
//*)
float GetWallDistance() { return distance; }
IplImage* GetLaserCenteredImage() { return laserCentered; }
IplImage* GetNoLaserImage() { return noLaserImage; }
virtual bool TransferDataFromWindow();
protected:
//(*Identifiers(DistanceToReferenceDialog)
static const long ID_STATICTEXT1;
static const long ID_STATICLINE1;
static const long ID_STATICTEXT4;
static const long ID_BUTTON1;
static const long ID_STATICTEXT5;
static const long ID_BUTTON2;
static const long ID_STATICTEXT6;
static const long ID_STATICTEXT7;
static const long ID_SPINCTRL1;
static const long ID_PANEL1;
//*)
private:
//(*Handlers(DistanceToReferenceDialog)
void OnButLaserCenteredClick(wxCommandEvent& event);
void OnButLaserCoveredClick(wxCommandEvent& event);
//*)
float distance;
IplImage *noLaserImage, *laserCentered;
CaptureThread *captureThread;
DECLARE_EVENT_TABLE()
};
#endif