ubit
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Calibration Struct Reference

settings of the calibration window (used for absolute positioning devices such as the MIMIO) More...

#include <calib.hpp>

Public Types

enum  { POINT_COUNT = 4 }
 

Public Member Functions

 Calibration (class UMServer *)
 
bool isCalibrationCompleted () const
 
void startCalibration (const char *title)
 
void configureCalibrationWin (int x, int y, int w, int h)
 
void setCalibrationPoint (double x, double y)
 
void unsetLastCalibrationPoint ()
 
void drawCalibrationPoint ()
 

Public Attributes

class UMServerums
 
WindowID calwin
 
bool is_calibrating
 
bool is_completed
 
GC calgc
 
int curpoint
 completed when == POINT_COUNT
 
int x
 
int y
 
int width
 
int height
 coords of the calibration window (= its pos. on the screen)
 
int xp [POINT_COUNT]
 
int yp [POINT_COUNT]
 positions of calpoints in pixels on the screen
 
double xcm [POINT_COUNT]
 
double ycm [POINT_COUNT]
 position of calpoints in source coords
 
int msg_x
 
int msg_y
 
unsigned long black_pixel
 
unsigned long red_pixel
 

Static Public Attributes

static const int CROSS_XYPOS = 50
 
static const int CROSS_SIZE = 300
 
static const float SCREEN_SIZE_PERCENT = 0.9
 

Detailed Description

settings of the calibration window (used for absolute positioning devices such as the MIMIO)


The documentation for this struct was generated from the following files: