17 #ifndef _umscalib_hpp_ 18 #define _umscalib_hpp_ 25 enum {POINT_COUNT = 4};
26 static const int CROSS_XYPOS;
27 static const int CROSS_SIZE;
28 static const float SCREEN_SIZE_PERCENT;
32 bool isCalibrationCompleted()
const;
33 void startCalibration(
const char* title);
34 void configureCalibrationWin(
int x,
int y,
int w,
int h);
35 void setCalibrationPoint(
double x,
double y);
36 void unsetLastCalibrationPoint();
37 void drawCalibrationPoint();
41 bool is_calibrating, is_completed;
45 int xp[POINT_COUNT],
yp[POINT_COUNT];
46 double xcm[POINT_COUNT],
ycm[POINT_COUNT];
48 unsigned long black_pixel, red_pixel;
double ycm[POINT_COUNT]
position of calpoints in source coords
Definition: calib.hpp:46
int curpoint
completed when == POINT_COUNT
Definition: calib.hpp:43
int height
coords of the calibration window (= its pos. on the screen)
Definition: calib.hpp:44
UMS server main class.
Definition: umserver.hpp:152
int yp[POINT_COUNT]
positions of calpoints in pixels on the screen
Definition: calib.hpp:45
settings of the calibration window (used for absolute positioning devices such as the MIMIO) ...
Definition: calib.hpp:24