Graphviz 13.0.0~dev.20241220.2304
|
#include "topfisheyeview.h"
#include <math.h>
#include "viewport.h"
#include "viewportcamera.h"
#include "draw.h"
#include "smyrna_utils.h"
#include <assert.h>
#include "hier.h"
#include <string.h>
#include <common/color.h>
#include <common/colorprocs.h>
#include <util/alloc.h>
Go to the source code of this file.
Functions | |
static int | get_temp_coords (topview *t, int level, int v, double *coord_x, double *coord_y) |
static void | color_interpolation (glCompColor srcColor, glCompColor tarColor, glCompColor *color, int levelcount, int level) |
static v_data * | makeGraph (Agraph_t *gg, int *nedges) |
static void | refresh_old_values (topview *t) |
void | prepare_topological_fisheye (Agraph_t *g, topview *t) |
static void | drawtopfishnodes (topview *t) |
static void | drawtopfishedges (topview *t) |
static int | get_active_frame (void) |
void | drawtopologicalfisheye (topview *t) |
static void | get_interpolated_coords (double x0, double y0, double x1, double y1, int fr, int total_fr, double *x, double *y) |
void | changetopfishfocus (topview *t, float *x, float *y, int num_foci) |
void changetopfishfocus | ( | topview * | t, |
float * | x, | ||
float * | y, | ||
int | num_foci | ||
) |
Definition at line 407 of file topfisheyeview.c.
References _ViewInfo::active_frame, _ViewInfo::activeGraph, agget(), topview::animate, glCompColor::B, _ViewInfo::bdxLeft, _ViewInfo::bdxRight, _ViewInfo::bdyBottom, _ViewInfo::bdyTop, levelparms_t::coarsening_rate, colorxlate(), hierparms_t::dist2_limit, reposition_t::distortion, find_closest_active_node(), topview::fisheyeParams, focus_t::foci_nodes, topview::fs, _ViewInfo::g, glCompColor::G, Hierarchy::geom_graphs, get_attribute_value(), topview::h, reposition_t::height, topview::hier, topview::level, levelparms_t::num_fine_nodes, focus_t::num_foci, positionAllItems(), glCompColor::R, refresh_old_values(), topview::repos, color_s::RGBA, RGBA_DOUBLE, set_active_levels(), topview::srcColor, topview::tarColor, _ViewInfo::timer, _ViewInfo::Topview, color_s::u, view, reposition_t::width, ex_vtx_data::x_coord, focus_t::x_foci, ex_vtx_data::y_coord, and focus_t::y_foci.
Referenced by apply_actions().
|
static |
Definition at line 28 of file topfisheyeview.c.
References glCompColor::B, color(), glCompColor::G, and glCompColor::R.
Referenced by drawtopfishedges(), and drawtopfishnodes().
|
static |
Definition at line 246 of file topfisheyeview.c.
References glCompColor::B, _ViewInfo::clipX1, _ViewInfo::clipX2, _ViewInfo::clipY1, _ViewInfo::clipY2, color(), color_interpolation(), _ViewInfo::defaultnodealpha, v_data::edges, find_active_ancestor_info(), topview::fisheyeParams, glCompColor::G, get_temp_coords(), Hierarchy::graphs, topview::h, v_data::nedges, Hierarchy::nlevels, Hierarchy::nvtxs, glCompColor::R, topview::srcColor, topview::tarColor, _ViewInfo::Topview, view, and _ViewInfo::zoom.
Referenced by drawtopologicalfisheye().
|
static |
Definition at line 202 of file topfisheyeview.c.
References glCompColor::B, _ViewInfo::clipX1, _ViewInfo::clipX2, _ViewInfo::clipY1, _ViewInfo::clipY2, color(), color_interpolation(), _ViewInfo::defaultnodealpha, topview::fisheyeParams, glCompColor::G, get_temp_coords(), topview::h, Hierarchy::nlevels, Hierarchy::nvtxs, glCompColor::R, topview::srcColor, topview::tarColor, _ViewInfo::Topview, view, and _ViewInfo::zoom.
Referenced by drawtopologicalfisheye().
void drawtopologicalfisheye | ( | topview * | t | ) |
Definition at line 335 of file topfisheyeview.c.
References drawtopfishedges(), drawtopfishnodes(), and get_active_frame().
Referenced by glexpose_drawgraph().
|
static |
Definition at line 314 of file topfisheyeview.c.
References _ViewInfo::active_frame, topview::animate, topview::fisheyeParams, NULL, _ViewInfo::timer, _ViewInfo::Topview, and view.
Referenced by drawtopologicalfisheye().
|
static |
Definition at line 342 of file topfisheyeview.c.
Referenced by get_temp_coords().
|
static |
Definition at line 349 of file topfisheyeview.c.
References _ViewInfo::active_frame, ex_vtx_data::active_level, topview::animate, find_old_physical_coords(), find_physical_coords(), topview::fisheyeParams, Hierarchy::geom_graphs, get_interpolated_coords(), topview::h, ex_vtx_data::old_active_level, _ViewInfo::total_frames, and view.
Referenced by drawtopfishedges(), and drawtopfishnodes().
Definition at line 47 of file topfisheyeview.c.
References agfstedge(), agfstnode(), aghead, agnedges(), agnnodes(), agnxtedge(), agnxtnode(), agraphof(), agtail, graph(), gv_calloc(), ND_TVref, nedges, and NULL.
Referenced by prepare_topological_fisheye().
Definition at line 122 of file topfisheyeview.c.
References _ViewInfo::activeGraph, agfstnode(), agget(), agnnodes(), agnxtnode(), topview::animate, glCompColor::B, _ViewInfo::bdxLeft, _ViewInfo::bdxRight, _ViewInfo::bdyBottom, _ViewInfo::bdyTop, levelparms_t::coarsening_rate, colorxlate(), hierparms_t::dist2_limit, reposition_t::distortion, topview::fisheyeParams, focus_t::foci_nodes, free(), freeGraph(), topview::fs, _ViewInfo::g, glCompColor::G, Hierarchy::geom_graphs, get_attribute_value(), graph(), gv_calloc(), topview::h, reposition_t::height, topview::hier, initFocus(), topview::level, makeGraph(), makeHier(), ND_A, topview::Nodecount, levelparms_t::num_fine_nodes, focus_t::num_foci, positionAllItems(), glCompColor::R, refresh_old_values(), topview::repos, color_s::RGBA, RGBA_DOUBLE, set_active_levels(), topview::srcColor, topview::tarColor, _ViewInfo::Topview, color_s::u, view, reposition_t::width, ex_vtx_data::x_coord, focus_t::x_foci, ex_vtx_data::y_coord, and focus_t::y_foci.
Referenced by menu_switch_to_fisheye().
|
static |
Definition at line 97 of file topfisheyeview.c.
References ex_vtx_data::active_level, topview::fisheyeParams, Hierarchy::geom_graphs, topview::h, Hierarchy::nlevels, Hierarchy::nvtxs, ex_vtx_data::old_active_level, ex_vtx_data::old_physical_x_coord, ex_vtx_data::old_physical_y_coord, ex_vtx_data::physical_x_coord, and ex_vtx_data::physical_y_coord.
Referenced by changetopfishfocus(), and prepare_topological_fisheye().