int active;
} magnifier;
- typedef struct _fisheye_magnifier {
- float x, y; //center coords of active circle
- float distortion_factor; //distortion factor ,default 1
- int R; //radius of the magnifier
- int constantR; //radius of the magnifier referenced from windows
- int active;
- int fisheye_distortion_fac;
- } fisheye_magnifier;
typedef struct{
Agraph_t *def_attrs;
Agraph_t *attrs_widgets;
/*rectangular magnifier object */
magnifier mg;
- /*fisheye magnifier object */
- fisheye_magnifier fmg;
viewport_camera **cameras;
int camera_count; //number of cameras
vi->mg.kts =
(float) atof(get_attribute_value("defaultmagnifierkts", vi, g));
- vi->fmg.constantR =
- atoi(get_attribute_value
- ("defaultfisheyemagnifierradius", vi, g));
-
- vi->fmg.fisheye_distortion_fac = atoi(get_attribute_value
- ("defaultfisheyemagnifierdistort", vi, g));
vi->drawnodes = atoi(get_attribute_value("drawnodes", vi, g));
vi->drawedges = atoi(get_attribute_value("drawedges", vi, g));
vi->drawnodelabels=atoi(get_attribute_value("labelshownodes", vi, g));
view->mg.width = DEFAULT_MAGNIFIER_WIDTH;
view->mg.height = DEFAULT_MAGNIFIER_HEIGHT;
view->mg.kts = DEFAULT_MAGNIFIER_KTS;
- view->fmg.constantR = DEFAULT_FISHEYE_MAGNIFIER_RADIUS;
- view->fmg.active = 0;
view->mouse.down = 0;
view->activeGraph = -1;
view->Topview = gv_alloc(sizeof(topview));