Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
adjust.h File Reference
#include "geom.h"
#include <sparse/SparseMatrix.h>
#include <stdbool.h>
Include dependency graph for adjust.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  adjust_data
 
struct  expand_t
 

Macros

#define DFLT_MARGIN   4 /* 4 points */
 

Enumerations

enum  adjust_mode {
  AM_NONE , AM_VOR , AM_SCALE , AM_NSCALE ,
  AM_SCALEXY , AM_PUSH , AM_PUSHPULL , AM_ORTHO ,
  AM_ORTHO_YX , AM_ORTHOXY , AM_ORTHOYX , AM_PORTHO ,
  AM_PORTHO_YX , AM_PORTHOXY , AM_PORTHOYX , AM_COMPRESS ,
  AM_VPSC , AM_IPSEP , AM_PRISM
}
 

Functions

expand_t sepFactor (graph_t *G)
 
expand_t esepFactor (graph_t *G)
 
int adjustNodes (graph_t *G)
 
int normalize (graph_t *g)
 
int removeOverlapAs (graph_t *, char *)
 Use flag value to determine if and how to remove node overlaps.
 
int removeOverlapWith (graph_t *, adjust_data *)
 
int cAdjust (graph_t *, int)
 
int scAdjust (graph_t *, int)
 
void graphAdjustMode (graph_t *G, adjust_data *, char *dflt)
 
double * getSizes (Agraph_t *g, pointf pad, int *n_elabels, int **elabels)
 Set up array of half sizes in inches.
 
SparseMatrix makeMatrix (Agraph_t *g)
 

Macro Definition Documentation

◆ DFLT_MARGIN

#define DFLT_MARGIN   4 /* 4 points */

Definition at line 21 of file adjust.h.

Enumeration Type Documentation

◆ adjust_mode

Enumerator
AM_NONE 
AM_VOR 
AM_SCALE 
AM_NSCALE 
AM_SCALEXY 
AM_PUSH 
AM_PUSHPULL 
AM_ORTHO 
AM_ORTHO_YX 
AM_ORTHOXY 
AM_ORTHOYX 
AM_PORTHO 
AM_PORTHO_YX 
AM_PORTHOXY 
AM_PORTHOYX 
AM_COMPRESS 
AM_VPSC 
AM_IPSEP 
AM_PRISM 

Definition at line 23 of file adjust.h.

Function Documentation

◆ adjustNodes()

int adjustNodes ( graph_t G)
extern

Definition at line 1022 of file adjust.c.

References agget(), G, and removeOverlapAs().

Referenced by circoLayout(), init_nop(), and twopi_layout().

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

◆ cAdjust()

int cAdjust ( graph_t g,
int  mode 
)
extern

Definition at line 555 of file constraint.c.

References agfstnode(), agnnodes(), agnxtnode(), AM_ORTHO, AM_ORTHO_YX, AM_ORTHOXY, AM_ORTHOYX, AM_PORTHO, AM_PORTHO_YX, AM_PORTHOXY, AM_PORTHOYX, constrainX(), constrainY(), free(), gv_calloc(), initItem(), intersectX(), intersectX0(), intersectY(), intersectY0(), ND_pos, nitem::np, overlaps(), nitem::pos, PS2INCH, SCALE, sepFactor(), point::x, and point::y.

Referenced by removeOverlapWith().

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

◆ esepFactor()

expand_t esepFactor ( graph_t G)
extern

Definition at line 1094 of file adjust.c.

References agget(), DFLT_MARGIN, expand_t::doAdd, parseFactor(), SEPFACT, Verbose, expand_t::x, and expand_t::y.

Referenced by splineEdges().

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

◆ getSizes()

double * getSizes ( Agraph_t g,
pointf  pad,
int *  n_elabels,
int **  elabels 
)
extern

Definition at line 529 of file adjust.c.

References agfstnode(), agnnodes(), agnxtnode(), gv_calloc(), IS_LNODE, ND_height, ND_id, ND_width, Ndim, pointf_s::x, and pointf_s::y.

Referenced by sfdpLayout().

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

◆ graphAdjustMode()

void graphAdjustMode ( graph_t G,
adjust_data dp,
char *  dflt 
)
extern

Definition at line 880 of file adjust.c.

References agget(), G, and getAdjustMode().

Referenced by neato_layout(), and sfdp_layout().

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

◆ makeMatrix()

SparseMatrix makeMatrix ( Agraph_t g)
extern

Definition at line 559 of file adjust.c.

References A, agfindedgeattr, agfstnode(), agfstout(), aghead, agnedges(), agnnodes(), agnxtnode(), agnxtout(), agxget(), free(), gv_calloc(), I, MATRIX_TYPE_REAL, ND_id, nedges, NULL, row, and SparseMatrix_from_coordinate_arrays().

Referenced by sfdpLayout().

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

◆ normalize()

int normalize ( graph_t g)
extern

Definition at line 739 of file adjust.c.

References agfstnode(), agfstout(), aghead, agnxtnode(), agtail, angleSet(), ND_pos, NULL, pointf_s::x, and pointf_s::y.

Referenced by dot_splines_(), layout(), and removeOverlapWith().

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

◆ removeOverlapAs()

int removeOverlapAs ( graph_t G,
char *  flag 
)
extern

Definition at line 1009 of file adjust.c.

References agnnodes(), G, getAdjustMode(), and removeOverlapWith().

Referenced by adjustNodes(), and fdp_xLayout().

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

◆ removeOverlapWith()

int removeOverlapWith ( graph_t G,
adjust_data am 
)
extern

Definition at line 916 of file adjust.c.

References agnameof(), agnnodes(), agwarningf(), AM_COMPRESS, AM_IPSEP, AM_NONE, AM_NSCALE, AM_ORTHO, AM_ORTHO_YX, AM_ORTHOXY, AM_ORTHOYX, AM_PORTHO, AM_PORTHO_YX, AM_PORTHOXY, AM_PORTHOYX, AM_PRISM, AM_PUSH, AM_PUSHPULL, AM_SCALE, AM_SCALEXY, AM_VOR, AM_VPSC, cAdjust(), chkBoundBox(), fdpAdjust(), free(), freeNodes(), G, makeInfo(), adjust_data::mode, normalize(), adjust_data::print, sAdjust(), scAdjust(), simpleScale(), state_t::sites, updateGraph(), vAdjust(), and Verbose.

Referenced by neato_layout(), removeOverlapAs(), and sfdp_layout().

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

◆ scAdjust()

int scAdjust ( graph_t g,
int  equal 
)
extern

Definition at line 787 of file constraint.c.

References agfstnode(), agnnodes(), agnxtnode(), info::bb, compress(), computeScale(), computeScaleXY(), expand_t::doAdd, free(), gv_calloc(), info::ht2, boxf::LL, mkOverlapSet(), ND_height, ND_pos, ND_width, info::np, info::pos, PS2INCH, sepFactor(), boxf::UR, Verbose, info::wd2, pointf_s::x, expand_t::x, pointf_s::y, and expand_t::y.

Referenced by removeOverlapWith().

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

◆ sepFactor()

expand_t sepFactor ( graph_t G)
extern

Definition at line 1069 of file adjust.c.

References agget(), DFLT_MARGIN, expand_t::doAdd, parseFactor(), SEPFACT, Verbose, expand_t::x, and expand_t::y.

Referenced by cAdjust(), compoundEdges(), majorization(), makeInfo(), scAdjust(), sfdp_layout(), and x_layout().

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