#include "config.h"
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <types.h>
#include <common/render.h>
#include <common/utils.h>
#include <util/agxbuf.h>
#include <util/alloc.h>
#include <util/list.h>
#include <util/prisize_t.h>
Go to the source code of this file.
|
| typedef double(* | radfunc_t) (double curlen, double totallen, double initwid) |
| |
|
| static void | addto (stroke_t *p, double x, double y) |
| |
| static double | myatan (double y, double x) |
| |
| static double | mymod (double original, double modulus) |
| |
| typedef | LIST (pathpoint) |
| |
| static void | printArr (vararr_t *arr, FILE *fp) |
| |
| static double | l2dist (pointf p0, pointf p1) |
| |
| static vararr_t | pathtolines (bezier *bez) |
| |
| static void | drawbevel (double x, double lineout, bool forward, double dir, double dir2, stroke_t *p) |
| |
| stroke_t | taper (bezier *bez, radfunc_t radfunc, double initwid) |
| |
◆ BEZIERSUBDIVISION
| #define BEZIERSUBDIVISION 20 |
◆ D2R
| #define D2R |
( |
|
d | ) |
(M_PI*(d)/180.0) |
◆ lineto
| #define lineto |
( |
|
p, |
|
|
|
x, |
|
|
|
y |
|
) |
| addto(p,x,y) |
◆ M_PI
| #define M_PI 3.14159265358979323846 |
◆ moveto
| #define moveto |
( |
|
p, |
|
|
|
x, |
|
|
|
y |
|
) |
| addto(p,x,y) |
◆ R2D
| #define R2D |
( |
|
r | ) |
(180.0*(r)/M_PI) |
◆ radfunc_t
| typedef double(* radfunc_t) (double curlen, double totallen, double initwid) |
◆ anonymous enum
◆ addto()
| static void addto |
( |
stroke_t * |
p, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
static |
◆ drawbevel()
| static void drawbevel |
( |
double |
x, |
|
|
double |
lineout, |
|
|
bool |
forward, |
|
|
double |
dir, |
|
|
double |
dir2, |
|
|
stroke_t * |
p |
|
) |
| |
|
static |
◆ l2dist()
◆ LIST()
◆ myatan()
| static double myatan |
( |
double |
y, |
|
|
double |
x |
|
) |
| |
|
static |
◆ mymod()
| static double mymod |
( |
double |
original, |
|
|
double |
modulus |
|
) |
| |
|
static |
◆ pathtolines()
| static vararr_t pathtolines |
( |
bezier * |
bez | ) |
|
|
static |
◆ printArr()
| static void printArr |
( |
vararr_t * |
arr, |
|
|
FILE * |
fp |
|
) |
| |
|
static |
◆ taper()
Definition at line 186 of file taper.c.
References pathpoint::bevel, currentmiterlimit, D2R, pathpoint::dir, pathpoint::dir2, dist(), drawbevel(), free(), pathpoint::lengthsofar, lineto, LIST_DETACH, pathpoint::lout, moveto, myatan(), mymod(), pathtolines(), SIZE_MAX, pathpoint::type, pathpoint::x, and pathpoint::y.
Referenced by emit_edge_graphics().
◆ currentmiterlimit
| double currentmiterlimit = 10.0 |
|
static |