Graphviz
13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
ink.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 <
mingle/edge_bundling.h
>
14
#include <vector>
15
16
typedef
struct
{
17
double
x
, y;
18
}
point_t
;
19
20
/* given a list of edges, find the best ink bundling by making them meet at 2 points
21
\ /
22
-meet1 ---------- meet2 -
23
/ \
24
edges: list of edges
25
numEdges: number of edges
26
pick: if not NULL, consider edges pick[0], pick[1], ..., pick[numedges-1],
27
. othetwise consider edges 0, 1, ..., numEdge-1
28
ink0: ink needed if no bundling
29
meet1, meet2: meeting point
30
return: best ink needed if bundled.
31
*/
32
double
ink
(
const
std::vector<pedge> &edges,
int
numEdges,
int
*pick,
33
double
*ink0,
point_t
*meet1,
point_t
*meet2,
double
angle_param,
34
double
angle);
35
double
ink1
(
const
pedge
&e);
36
37
extern
double
ink_count
;
edge_bundling.h
ink
double ink(const std::vector< pedge > &edges, int numEdges, int *pick, double *ink0, point_t *meet1, point_t *meet2, double angle_param, double angle)
Definition
ink.cpp:226
ink_count
double ink_count
Definition
ink.cpp:20
ink1
double ink1(const pedge &e)
Definition
ink.cpp:307
pedge
Definition
edge_bundling.h:16
point_t
Definition
ink.h:16
point_t::x
double x
Definition
ink.h:17
lib
mingle
ink.h
Generated by
1.9.8