-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathccontrol.h
71 lines (56 loc) · 2.75 KB
/
ccontrol.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
/***************************************************************************
ccontrol.h - description
-------------------
begin : Tue Aug 3 1999
copyright : (C) 1999 by Thorsten Janke
email : [email protected]
: http://www.ktet.fh-muenster.de/ina
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef CCONTROL_H
#define CCONTROL_H
/**
*@author Thorsten Janke
*/
#include "noaddata.h"
#include "cgetlogo.h"
#include "cchecklogo.h"
class CControl
{
public:
CControl( noadData* data );
~CControl();
noadData* m_pData;
CGetLogo* m_pGetLogo0; // pointer to get logo object top left
CGetLogo* m_pGetLogo1; // pointer to get logo object top right
CGetLogo* m_pGetLogo2; // pointer to get logo object bottom right
CGetLogo* m_pGetLogo3; // pointer to get logo object bottom left
bool bCheckLogo0;
bool bCheckLogo1;
bool bCheckLogo2;
bool bCheckLogo3;
int m_nPictureCounter; // counter for sent out picture
testlines* m_testhook; // struct of detected logo informations
int m_nLogoCorner; // detected logo corner
bool m_bFound; // is set to true if logo has found
void newData(); // get new data and call newData() in cgetlogo objects
void forceCorner( int iNewCorner );
void foundLogo( struct testlines*, int iCornerID );
private:
void foundLogo0( struct testlines* ); // called if logo has found in corner top left
void foundLogo1( struct testlines* ); // called if logo has found in corner top right
void foundLogo2( struct testlines* ); // called if logo has found in corner bottom right
void foundLogo3( struct testlines* ); // called if logo has found in corner bottom left
void logo(); // slot called from checklogo if logo is available
void nologo(); // slot called from checklogo if there is no logo
void CtrlReset();
void stop();
};
#endif