Structure to hold cross hair information. More...
Data Fields | |
short | majorVersion |
short | minorVersion |
int | w |
int | h |
void * | privatedata |
void * | userdata |
void(* | drawLine )(CrossHairInfo *dt, int x1, int y1, int x2, int y2, int colorindex) |
void(* | drawLozenge )(CrossHairInfo *dt, int x, int y, int w, int h, int colorindex) |
void(* | getMouseState )(CrossHairInfo *dt, int *x, int *y, int *state) |
int | reserved1 |
int | reserved2 |
int | reserved3 |
int | reserved4 |
Structure to hold cross hair information.
Structure to hold cross hair information that are needed to draw the cross hair on camera images.
void(* drawLine) (CrossHairInfo *dt, int x1, int y1, int x2, int y2, int colorindex) |
drawLine should draw a line from (x1,y1) -> (x2,y2) with the given color
[in] | x1 |
void(* drawLozenge) (CrossHairInfo *dt, int x, int y, int w, int h, int colorindex) |
drawLozenge should draw circle if the width and height are equal. otherwise find the smallest width and draw semi-circles on the longest side at both ends and connect the semi circles with lines.
void(* getMouseState) (CrossHairInfo *dt, int *x, int *y, int *state) |
getMouseState should fill values for (x,y) with current mouse position and the state = 1 if pressed. the x and y values are respective to top left hand corner of the image
int h |
Display height of the camera image. This need not to match the size given at setup_image_display_hook
short majorVersion |
for the moment this should be set to 1.
short minorVersion |
for the moment this should be set to 0.
void* privatedata |
Private data used by internals of eyelink_draw_cross_hair. This pointer should not be touched externally
int reserved1 |
for future use
int reserved2 |
for future use
int reserved3 |
for future use
int reserved4 |
for future use
void* userdata |
Attribute to hold any user data. Any data set here untouched by eyelink_draw_cross_hair.
int w |
Display width of the camera image. This need not to match the size given at setup_image_display_hook