Graphviz  2.41.20171026.1811
adjust.h
Go to the documentation of this file.
1 /* $Id$ $Revision$ */
2 /* vim:set shiftwidth=4 ts=8: */
3 
4 /*************************************************************************
5  * Copyright (c) 2011 AT&T Intellectual Property
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors: See CVS logs. Details at http://www.graphviz.org/
12  *************************************************************************/
13 
14 
15 
16 #ifndef ADJUST_H
17 #define ADJUST_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include "geom.h"
24 #include "SparseMatrix.h"
25 
26 #define DFLT_MARGIN 4 /* 4 points */
27 
28 typedef enum {
34 } adjust_mode;
35 
36 typedef struct {
38  char *print;
39  int value;
40  double scaling;
41 } adjust_data;
42 
43 typedef struct {
44  float x, y;
45  boolean doAdd; /* if true, x and y are in points */
46 } expand_t;
47 
48  extern expand_t sepFactor(graph_t * G);
49  extern expand_t esepFactor(graph_t * G);
50  extern int adjustNodes(graph_t * G);
51  extern int normalize(graph_t * g);
52  extern int removeOverlapAs(graph_t*, char*);
53  extern int removeOverlapWith(graph_t*, adjust_data*);
54  extern int cAdjust(graph_t *, int);
55  extern int scAdjust(graph_t *, int);
56  extern adjust_data *graphAdjustMode(graph_t *G, adjust_data*, char* dflt);
57  extern double *getSizes(Agraph_t * g, pointf pad, int *n_elabels, int **elabels);
58  extern SparseMatrix makeMatrix(Agraph_t* g, int dim, SparseMatrix *D);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 #endif
boolean doAdd
Definition: adjust.h:45
Definition: adjust.h:30
adjust_mode mode
Definition: adjust.h:37
int value
Definition: adjust.h:39
expand_t sepFactor(graph_t *g)
Definition: adjust.c:1287
SparseMatrix makeMatrix(Agraph_t *g, int dim, SparseMatrix *D)
Definition: adjust.c:703
Definition: adjust.h:33
Definition: geom.h:28
int cAdjust(graph_t *, int)
Definition: constraint.c:635
int scAdjust(graph_t *, int)
Definition: constraint.c:870
double scaling
Definition: adjust.h:40
Definition: adjust.h:29
int removeOverlapAs(graph_t *G, char *flag)
Definition: adjust.c:1221
int normalize(graph_t *g)
Definition: adjust.c:922
Definition: adjust.h:29
adjust_data * graphAdjustMode(graph_t *G, adjust_data *dp, char *dflt)
Definition: adjust.c:1077
char * print
Definition: adjust.h:38
float y
Definition: adjust.h:44
int adjustNodes(graph_t *G)
Definition: adjust.c:1235
int removeOverlapWith(graph_t *G, adjust_data *am)
Definition: adjust.c:1118
expand_t esepFactor(graph_t *g)
Definition: adjust.c:1313
double * getSizes(Agraph_t *g, pointf pad, int *n_elabels, int **elabels)
Definition: adjust.c:670
adjust_mode
Definition: adjust.h:28