Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
hier.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#include <topfish/hierarchy.h>
14
15 typedef struct {
17 int *foci_nodes; /* Nodes in real graph */
18 double *x_foci; /* Universal coordinates */
19 double *y_foci;
20 } focus_t;
21
22 typedef struct {
23 // All 5 must be set
24 int width; /* viewport width */
25 int height; /* viewport height */
26 double distortion; /* default of 1.0 */
28
29 void positionAllItems(Hierarchy * hp, focus_t * fs,
31 Hierarchy *makeHier(int nnodes, int nedges, v_data *, double *,
32 double *, hierparms_t *);
33
34 focus_t *initFocus(int ncnt);
void positionAllItems(Hierarchy *hp, focus_t *fs, reposition_t *parms)
Definition hier.c:18
Hierarchy * makeHier(int nnodes, int nedges, v_data *, double *, double *, hierparms_t *)
Definition hier.c:99
focus_t * initFocus(int ncnt)
Definition hier.c:130
static int nedges
total no. of edges used in routing
Definition routespl.c:31
Definition hier.h:15
int * foci_nodes
Definition hier.h:17
int num_foci
Definition hier.h:16
double * y_foci
Definition hier.h:19
double * x_foci
Definition hier.h:18
double distortion
Definition hier.h:26
int height
Definition hier.h:25
int width
Definition hier.h:24
static parms_t parms
Definition tlayout.c:80