| 16 | #include "CaptureThread.h" |
| 17 | |
| 18 | class DistanceToReferenceDialog: public wxDialog |
| 19 | { |
| 20 | public: |
| 21 | |
| 22 | DistanceToReferenceDialog(CaptureThread *captureThreadIn, wxWindow* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize); |
| 23 | virtual ~DistanceToReferenceDialog(); |
| 24 | |
| 25 | //(*Declarations(DistanceToReferenceDialog) |
| 26 | wxPanel* Panel1; |
| 27 | wxButton* butLaserCentered; |
| 28 | wxStaticText* lblOr; |
| 29 | wxStaticText* lblCoverLaser; |
| 30 | wxStaticText* StaticText1; |
| 31 | wxStaticLine* StaticLine1; |
| 32 | wxButton* butLaserCovered; |
| 33 | wxStaticText* lblCenterLaser; |
| 34 | wxStaticText* lblEnterDistance; |
| 35 | wxSpinCtrl* spinDistance; |
| 36 | wxButton* butDistanceEntered; |
| 37 | //*) |
| 38 | |
| 39 | float GetWallDistance() { return distance; } |
| 40 | IplImage* GetLaserCenteredImage() { return laserCentered; } |
| 41 | IplImage* GetNoLaserImage() { return noLaserImage; } |
| 42 | |
| 43 | virtual bool TransferDataFromWindow(); |
| 44 | |
| 45 | protected: |
| 46 | |
| 47 | //(*Identifiers(DistanceToReferenceDialog) |
| 48 | static const long ID_STATICTEXT1; |
| 49 | static const long ID_STATICLINE1; |
| 50 | static const long ID_STATICTEXT4; |
| 51 | static const long ID_BUTTON1; |
| 52 | static const long ID_STATICTEXT5; |
| 53 | static const long ID_BUTTON2; |
| 54 | static const long ID_STATICTEXT6; |
| 55 | static const long ID_STATICTEXT7; |
| 56 | static const long ID_SPINCTRL1; |
| 57 | static const long ID_PANEL1; |
| 58 | //*) |
| 59 | |
| 60 | private: |
| 61 | |
| 62 | //(*Handlers(DistanceToReferenceDialog) |
| 63 | void OnButLaserCenteredClick(wxCommandEvent& event); |
| 64 | void OnButLaserCoveredClick(wxCommandEvent& event); |
| 65 | //*) |
| 66 | |
| 67 | float distance; |
| 68 | IplImage *noLaserImage, *laserCentered; |
| 69 | CaptureThread *captureThread; |
| 70 | |
| 71 | DECLARE_EVENT_TABLE() |
| 72 | }; |
| 73 | |
| 74 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected