]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove unused 'fisheye_magnifier'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Dec 2022 05:46:22 +0000 (21:46 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Dec 2022 19:42:15 +0000 (11:42 -0800)
cmd/smyrna/smyrnadefs.h
cmd/smyrna/viewport.c

index a1c012ed6e42074ec8af07c6660c607a2848694d..1bc70607f4f5d1f4dee00afccbd6ec98d85e4354 100644 (file)
@@ -295,14 +295,6 @@ typedef struct
        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;
@@ -378,8 +370,6 @@ typedef struct
 
        /*rectangular magnifier object */
        magnifier mg;
-       /*fisheye magnifier object */
-       fisheye_magnifier fmg;
 
        viewport_camera **cameras;
        int camera_count;       //number of cameras
index 5321eb5206a33e9297ee73d00aadb80b137ae53a..529caf51ec6ed626c0f225ea905e908883e6b1c2 100644 (file)
@@ -174,12 +174,6 @@ void set_viewport_settings_from_template(ViewInfo *vi, Agraph_t *g) {
     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));
@@ -332,8 +326,6 @@ void init_viewport(ViewInfo * view)
     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));