This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
2007-02-23 18:10:32 +01:00
|
|
|
#ifndef _SETTINGS_H_
|
|
|
|
#define _SETTINGS_H_
|
|
|
|
|
|
|
|
struct point
|
|
|
|
{
|
|
|
|
int x, y;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum type
|
|
|
|
{
|
|
|
|
BLACK = 0, WHITE, BOARD ,
|
|
|
|
NUMVALS
|
|
|
|
};
|
|
|
|
|
|
|
|
class Settings
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
Settings( void );
|
2007-02-23 20:14:48 +01:00
|
|
|
point getUL( void );
|
|
|
|
point getUR( void );
|
|
|
|
point getBL( void );
|
|
|
|
point getBR( void );
|
|
|
|
int getWhiteTreshold( void );
|
|
|
|
int getBlackTreshold( void );
|
2007-02-23 18:10:32 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
//upper left, upper right etc...
|
|
|
|
point ul, ur, bl, br;
|
|
|
|
//threshold for white and black
|
|
|
|
int colorThreshold[2];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* ifndef _SETTINGS_H_ */
|