Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
tree_map.c File Reference
#include <common/render.h>
#include <math.h>
#include <patchwork/tree_map.h>
#include <util/alloc.h>
#include <util/prisize_t.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: