Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
splinefont.h File Reference

Go to the source code of this file.

Classes

struct  basepoint
 
struct  ipoint
 
struct  splinepoint
 
struct  spline1d
 
struct  spline
 
struct  splinepointlist
 
struct  dbounds
 
struct  quartic
 
struct  linelist
 
struct  linearapprox
 

Typedefs

typedef double bigreal
 
typedef double extended
 
typedef int BOOL
 
typedef struct basepoint BasePoint
 
typedef struct ipoint IPoint
 
typedef struct splinepoint SplinePoint
 
typedef struct spline1d Spline1D
 
typedef struct spline Spline
 
typedef struct splinepointlist SplinePointList
 
typedef struct splinepointlist SplineSet
 
typedef struct dbounds DBounds
 
typedef struct quartic Quartic
 
typedef struct linelist LineList
 
typedef struct linearapprox LinearApprox
 

Enumerations

enum  pointtype { pt_curve , pt_corner , pt_tangent , pt_hvcurve }
 
enum  linelist_flags { cvli_onscreen =0x1 , cvli_clipped =0x2 }
 
enum  pconvert_flags {
  pconvert_flag_none = 0x01 , pconvert_flag_all = 0x02 , pconvert_flag_smooth = 0x04 , pconvert_flag_incompat = 0x08 ,
  pconvert_flag_by_geom = 0x100 , pconvert_flag_force_type = 0x200 , pconvert_flag_downgrade = 0x400 , pconvert_flag_check_compat = 0x0800 ,
  pconvert_flag_hvcurve = 0x4000
}
 

Functions

int RealWithin (real a, real b, real fudge)
 
BOOL RealNear (real a, real b)
 
SplineSplineMake (SplinePoint *from, SplinePoint *to, int order2)
 
SplineSplineMake2 (SplinePoint *from, SplinePoint *to)
 
SplineSplineMake3 (SplinePoint *from, SplinePoint *to)
 
SplinePointSplinePointCreate (real x, real y)
 
void SplineRefigure3 (Spline *spline)
 
void SplineRefigure (Spline *spline)
 
int SplineIsLinear (Spline *spline)
 
void SplineFindExtrema (const Spline1D *sp, extended *_t1, extended *_t2)
 
bigreal SplineMinDistanceToPoint (Spline *s, BasePoint *p)
 
void SplinePointFree (SplinePoint *sp)
 
void SplineFree (Spline *spline)
 
void SplinePointListFree (SplinePointList *spl)
 
bigreal BPDot (BasePoint v1, BasePoint v2)
 
bigreal BPCross (BasePoint v1, BasePoint v2)
 
BasePoint BPRev (BasePoint v)
 
int _CubicSolve (const Spline1D *sp, bigreal sought, extended ts[3])
 
int _QuarticSolve (Quartic *q, extended ts[4])
 
int IntersectLines (BasePoint *inter, BasePoint *line1_1, BasePoint *line1_2, BasePoint *line2_1, BasePoint *line2_2)
 
void LinearApproxFree (LinearApprox *la)
 
int Within16RoundingErrors (bigreal v1, bigreal v2)
 
void SplinesRemoveBetween (SplinePoint *from, SplinePoint *to, int type)
 

Variables

G_BEGIN_DECLS typedef double real
 

Typedef Documentation

◆ BasePoint

typedef struct basepoint BasePoint

◆ bigreal

typedef double bigreal

Definition at line 11 of file splinefont.h.

◆ BOOL

typedef int BOOL

Definition at line 13 of file splinefont.h.

◆ DBounds

typedef struct dbounds DBounds

◆ extended

typedef double extended

Definition at line 12 of file splinefont.h.

◆ IPoint

typedef struct ipoint IPoint

◆ LinearApprox

typedef struct linearapprox LinearApprox

◆ LineList

typedef struct linelist LineList

◆ Quartic

typedef struct quartic Quartic

◆ Spline

typedef struct spline Spline

◆ Spline1D

typedef struct spline1d Spline1D

◆ SplinePoint

typedef struct splinepoint SplinePoint

◆ SplinePointList

◆ SplineSet

typedef struct splinepointlist SplineSet

Enumeration Type Documentation

◆ linelist_flags

Enumerator
cvli_onscreen 
cvli_clipped 

Definition at line 148 of file splinefont.h.

◆ pconvert_flags

Enumerator
pconvert_flag_none 
pconvert_flag_all 
pconvert_flag_smooth 
pconvert_flag_incompat 
pconvert_flag_by_geom 
pconvert_flag_force_type 
pconvert_flag_downgrade 
pconvert_flag_check_compat 
pconvert_flag_hvcurve 

Definition at line 176 of file splinefont.h.

◆ pointtype

enum pointtype
Enumerator
pt_curve 
pt_corner 
pt_tangent 
pt_hvcurve 

Definition at line 28 of file splinefont.h.

Function Documentation

◆ _CubicSolve()

int _CubicSolve ( const Spline1D sp,
bigreal  sought,
extended  ts[3] 
)

◆ _QuarticSolve()

int _QuarticSolve ( Quartic q,
extended  ts[4] 
)

◆ BPCross()

bigreal BPCross ( BasePoint  v1,
BasePoint  v2 
)

◆ BPDot()

bigreal BPDot ( BasePoint  v1,
BasePoint  v2 
)

◆ BPRev()

BasePoint BPRev ( BasePoint  v)

◆ IntersectLines()

int IntersectLines ( BasePoint inter,
BasePoint line1_1,
BasePoint line1_2,
BasePoint line2_1,
BasePoint line2_2 
)

◆ LinearApproxFree()

void LinearApproxFree ( LinearApprox la)

◆ RealNear()

BOOL RealNear ( real  a,
real  b 
)

◆ RealWithin()

int RealWithin ( real  a,
real  b,
real  fudge 
)

◆ SplineFindExtrema()

void SplineFindExtrema ( const Spline1D sp,
extended _t1,
extended _t2 
)

◆ SplineFree()

void SplineFree ( Spline spline)

◆ SplineIsLinear()

int SplineIsLinear ( Spline spline)

◆ SplineMake()

Spline * SplineMake ( SplinePoint from,
SplinePoint to,
int  order2 
)

Referenced by bezier_fit().

◆ SplineMake2()

Spline * SplineMake2 ( SplinePoint from,
SplinePoint to 
)

◆ SplineMake3()

Spline * SplineMake3 ( SplinePoint from,
SplinePoint to 
)

◆ SplineMinDistanceToPoint()

bigreal SplineMinDistanceToPoint ( Spline s,
BasePoint p 
)

◆ SplinePointCreate()

SplinePoint * SplinePointCreate ( real  x,
real  y 
)

Referenced by bezier_fit().

◆ SplinePointFree()

void SplinePointFree ( SplinePoint sp)

◆ SplinePointListFree()

void SplinePointListFree ( SplinePointList spl)

Referenced by bezier_fit().

◆ SplineRefigure()

void SplineRefigure ( Spline spline)

◆ SplineRefigure3()

void SplineRefigure3 ( Spline spline)

◆ SplinesRemoveBetween()

void SplinesRemoveBetween ( SplinePoint from,
SplinePoint to,
int  type 
)

◆ Within16RoundingErrors()

int Within16RoundingErrors ( bigreal  v1,
bigreal  v2 
)

Variable Documentation

◆ real

G_BEGIN_DECLS typedef double real

Definition at line 10 of file splinefont.h.

Referenced by Inkscape::Filters::calcFilter().