| 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 | #include <stdio.h> | 
|---|
| 15 | #include <vis.h> | 
|---|
| 16 | typedef Ppoint_t point; | 
|---|
| 17 |  | 
|---|
| 18 |  | 
|---|
| 19 | void printvis(vconfig_t * cp) | 
|---|
| 20 | { | 
|---|
| 21 | int i, j; | 
|---|
| 22 | int *next, *prev; | 
|---|
| 23 | point *pts; | 
|---|
| 24 | array2 arr; | 
|---|
| 25 |  | 
|---|
| 26 | next = cp->next; | 
|---|
| 27 | prev = cp->prev; | 
|---|
| 28 | pts = cp->P; | 
|---|
| 29 | arr = cp->vis; | 
|---|
| 30 |  | 
|---|
| 31 | printf( "this next prev point\n"); | 
|---|
| 32 | for (i = 0; i < cp->N; i++) | 
|---|
| 33 | printf( "%3d  %3d  %3d    (%f,%f)\n", i, next[i], prev[i], | 
|---|
| 34 | (double) pts[i].x, (double) pts[i].y); | 
|---|
| 35 |  | 
|---|
| 36 | printf( "\n\n"); | 
|---|
| 37 |  | 
|---|
| 38 | for (i = 0; i < cp->N; i++) { | 
|---|
| 39 | for (j = 0; j < cp->N; j++) | 
|---|
| 40 | printf( "%4.1f ", arr[i][j]); | 
|---|
| 41 | printf( "\n"); | 
|---|
| 42 | } | 
|---|
| 43 | } | 
|---|
| 44 |  | 
|---|