Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
tree_map.c File Reference
#include <cgraph/alloc.h>
#include <cgraph/prisize_t.h>
#include <common/render.h>
#include <math.h>
#include <patchwork/tree_map.h>
Include dependency graph for tree_map.c:

Go to the source code of this file.

Functions

static void squarify (size_t n, double *area, rectangle *recs, size_t nadded, double maxarea, double minarea, double totalarea, double asp, rectangle fillrec)
 
rectangletree_map (size_t n, double *area, rectangle fillrec)
 

Function Documentation

◆ squarify()

static void squarify ( size_t  n,
double *  area,
rectangle recs,
size_t  nadded,
double  maxarea,
double  minarea,
double  totalarea,
double  asp,
rectangle  fillrec 
)
static

Definition at line 17 of file tree_map.c.

References PRISIZE_T, rectangle::size, squarify(), Verbose, and rectangle::x.

Referenced by squarify(), and tree_map().

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

◆ tree_map()

rectangle * tree_map ( size_t  n,
double *  area,
rectangle  fillrec 
)

Definition at line 102 of file tree_map.c.

References gv_calloc(), NULL, rectangle::size, and squarify().

Referenced by layoutTree().

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