Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
topfisheyeview.c File Reference
#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>
Include dependency graph for topfisheyeview.c:

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_datamakeGraph (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)
 

Function Documentation

◆ changetopfishfocus()

◆ color_interpolation()

static void color_interpolation ( glCompColor  srcColor,
glCompColor  tarColor,
glCompColor color,
int  levelcount,
int  level 
)
static

Definition at line 28 of file topfisheyeview.c.

References glCompColor::B, color(), glCompColor::G, and glCompColor::R.

Referenced by drawtopfishedges(), and drawtopfishnodes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawtopfishedges()

static void drawtopfishedges ( topview t)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawtopfishnodes()

static void drawtopfishnodes ( topview t)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawtopologicalfisheye()

void drawtopologicalfisheye ( topview t)

Definition at line 335 of file topfisheyeview.c.

References drawtopfishedges(), drawtopfishnodes(), and get_active_frame().

Referenced by glexpose_drawgraph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_active_frame()

static int get_active_frame ( void  )
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().

Here is the caller graph for this function:

◆ get_interpolated_coords()

static void get_interpolated_coords ( double  x0,
double  y0,
double  x1,
double  y1,
int  fr,
int  total_fr,
double *  x,
double *  y 
)
static

Definition at line 342 of file topfisheyeview.c.

Referenced by get_temp_coords().

Here is the caller graph for this function:

◆ get_temp_coords()

static int get_temp_coords ( topview t,
int  level,
int  v,
double *  coord_x,
double *  coord_y 
)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeGraph()

static v_data * makeGraph ( Agraph_t gg,
int *  nedges 
)
static

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepare_topological_fisheye()

◆ refresh_old_values()

static void refresh_old_values ( topview t)
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().

Here is the caller graph for this function: