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
14#include <vector>
15
16typedef 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*/
32double 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);
35double ink1(const pedge &e);
36
37extern double ink_count;
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
double ink_count
Definition ink.cpp:20
double ink1(const pedge &e)
Definition ink.cpp:307
Definition ink.h:16
double x
Definition ink.h:17