00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef ADJUST_H
00020 #define ADJUST_H
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026 typedef enum {
00027 AM_NONE, AM_VOR, AM_COMPRESS,
00028 AM_SCALE, AM_NSCALE, AM_SCALEXY, AM_PUSH, AM_PUSHPULL,
00029 AM_ORTHO, AM_ORTHO_YX, AM_ORTHOXY, AM_ORTHOYX,
00030 AM_PORTHO, AM_PORTHO_YX, AM_PORTHOXY, AM_PORTHOYX,
00031 AM_VPSC, AM_IPSEP
00032 } adjust_mode;
00033
00034 typedef struct {
00035 adjust_mode mode;
00036 char *attrib;
00037 char *print;
00038 } adjust_data;
00039
00040 extern double expFactor(graph_t * G);
00041 extern int adjustNodes(graph_t * G);
00042 extern void normalize(graph_t * g);
00043 extern int removeOverlap(graph_t * G);
00044 extern int removeOverlapAs(graph_t*, char*);
00045 extern int cAdjust(graph_t *, int);
00046 extern int scAdjust(graph_t *, int);
00047 extern adjust_data *graphAdjustMode(graph_t *G);
00048
00049 #ifdef __cplusplus
00050 }
00051 #endif
00052 #endif