Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
path-cairo.h File Reference

Go to the source code of this file.

Typedefs

typedef struct _cairo cairo_t
 

Functions

void cairo_curve (cairo_t *cr, Geom::Curve const &c)
 
void cairo_rectangle (cairo_t *cr, Geom::Rect const &r)
 
void cairo_convex_hull (cairo_t *cr, Geom::ConvexHull const &r)
 
void cairo_path (cairo_t *cr, Geom::Path const &p)
 
void cairo_path (cairo_t *cr, Geom::PathVector const &p)
 
void cairo_path_stitches (cairo_t *cr, Geom::Path const &p)
 
void cairo_path_stitches (cairo_t *cr, Geom::PathVector const &p)
 
void cairo_d2_sb (cairo_t *cr, Geom::D2< Geom::SBasis > const &p)
 
void cairo_d2_sb_handles (cairo_t *cr, Geom::D2< Geom::SBasis > const &p)
 
void cairo_d2_sb2d (cairo_t *cr, Geom::D2< Geom::SBasis2d > const &sb2, Geom::Point dir, double width)
 
void cairo_sb2d (cairo_t *cr, Geom::SBasis2d const &sb2, Geom::Point dir, double width)
 
void cairo_d2_pw_sb (cairo_t *cr, Geom::D2< Geom::Piecewise< Geom::SBasis > > const &p)
 
void cairo_pw_d2_sb (cairo_t *cr, Geom::Piecewise< Geom::D2< Geom::SBasis > > const &p)
 
void draw_line (cairo_t *cr, const Geom::Line &l, const Geom::Rect &r)
 
void draw_line (cairo_t *cr, Geom::Point n, double d, Geom::Rect r)
 
void draw_line (cairo_t *cr, Geom::Point a, Geom::Point b, Geom::Rect r)
 
void draw_line_seg (cairo_t *cr, Geom::Point a, Geom::Point b)
 
void draw_line_seg_with_arrow (cairo_t *cr, Geom::Point a, Geom::Point b, double dangle=15 *M_PI/180, double radius=20)
 
void draw_spot (cairo_t *cr, Geom::Point h)
 
void draw_handle (cairo_t *cr, Geom::Point h)
 
void draw_cross (cairo_t *cr, Geom::Point h)
 
void draw_circ (cairo_t *cr, Geom::Point h)
 
void draw_ray (cairo_t *cr, Geom::Point h, Geom::Point dir)
 
void draw_ray (cairo_t *cr, const Geom::Ray &ray, const Geom::Rect &r)
 
void draw_line_segment (cairo_t *cr, const Geom::LineSegment &ls, const Geom::Rect &r)
 
void cairo_move_to (cairo_t *cr, Geom::Point p1)
 
void cairo_line_to (cairo_t *cr, Geom::Point p1)
 
void cairo_curve_to (cairo_t *cr, Geom::Point p1, Geom::Point p2, Geom::Point p3)
 
void convertHSVtoRGB (const double H, const double S, const double V, double &R, double &G, double &B)
 

Typedef Documentation

◆ cairo_t

typedef struct _cairo cairo_t

Definition at line 16 of file path-cairo.h.

Function Documentation

◆ cairo_convex_hull()

void cairo_convex_hull ( cairo_t cr,
Geom::ConvexHull const &  r 
)

◆ cairo_curve()

void cairo_curve ( cairo_t cr,
Geom::Curve const &  c 
)

◆ cairo_curve_to()

◆ cairo_d2_pw_sb()

void cairo_d2_pw_sb ( cairo_t cr,
Geom::D2< Geom::Piecewise< Geom::SBasis > > const &  p 
)

Definition at line 127 of file cairo-helpers.cpp.

References cairo_pw_d2_sb(), and Geom::sectionize().

Referenced by plot(), plot(), plot_graph(), py_cairo_d2_pw_sb(), and smash_intersect().

◆ cairo_d2_sb()

◆ cairo_d2_sb2d()

void cairo_d2_sb2d ( cairo_t cr,
Geom::D2< Geom::SBasis2d > const &  sb2,
Geom::Point  dir,
double  width 
)

Definition at line 113 of file path-cairo.cpp.

References cairo_d2_sb(), Geom::extract_u(), Geom::extract_v(), and width.

◆ cairo_d2_sb_handles()

void cairo_d2_sb_handles ( cairo_t cr,
Geom::D2< Geom::SBasis > const &  p 
)

◆ cairo_line_to()

◆ cairo_move_to()

◆ cairo_path() [1/2]

◆ cairo_path() [2/2]

void cairo_path ( cairo_t cr,
Geom::PathVector const &  p 
)

◆ cairo_path_stitches() [1/2]

void cairo_path_stitches ( cairo_t cr,
Geom::Path const &  p 
)

◆ cairo_path_stitches() [2/2]

void cairo_path_stitches ( cairo_t cr,
Geom::PathVector const &  p 
)

◆ cairo_pw_d2_sb()

void cairo_pw_d2_sb ( cairo_t cr,
Geom::Piecewise< Geom::D2< Geom::SBasis > > const &  p 
)

Definition at line 131 of file cairo-helpers.cpp.

References cairo_d2_sb().

Referenced by dot_plot(), and py_cairo_pw_d2_sb().

◆ cairo_rectangle()

◆ cairo_sb2d()

void cairo_sb2d ( cairo_t cr,
Geom::SBasis2d const &  sb2,
Geom::Point  dir,
double  width 
)

Definition at line 135 of file path-cairo.cpp.

References cairo_d2_sb(), Geom::extract_u(), Geom::extract_v(), and width.

◆ convertHSVtoRGB()

void convertHSVtoRGB ( const double  H,
const double  S,
const double  V,
double &  R,
double &  G,
double &  B 
)

Definition at line 240 of file path-cairo.cpp.

References floor(), and R.

◆ draw_circ()

void draw_circ ( cairo_t cr,
Geom::Point  h 
)

Definition at line 195 of file path-cairo.cpp.

References Geom::X, and Geom::Y.

Referenced by PointHandle::draw(), PointSetHandle::draw(), and RectHandle::draw().

◆ draw_cross()

void draw_cross ( cairo_t cr,
Geom::Point  h 
)

◆ draw_handle()

◆ draw_line() [1/3]

void draw_line ( cairo_t cr,
const Geom::Line l,
const Geom::Rect r 
)

Definition at line 268 of file path-cairo.cpp.

References Geom::Line::coefficients(), and draw_line().

◆ draw_line() [2/3]

void draw_line ( cairo_t cr,
Geom::Point  a,
Geom::Point  b,
Geom::Rect  r 
)

◆ draw_line() [3/3]

void draw_line ( cairo_t cr,
Geom::Point  n,
double  d,
Geom::Rect  r 
)

Definition at line 275 of file path-cairo.cpp.

References draw_line().

◆ draw_line_seg()

◆ draw_line_seg_with_arrow()

void draw_line_seg_with_arrow ( cairo_t cr,
Geom::Point  a,
Geom::Point  b,
double  dangle = 15 *M_PI/180,
double  radius = 20 
)

Definition at line 317 of file path-cairo.cpp.

References Geom::atan2(), cairo_line_to(), and cairo_move_to().

◆ draw_line_segment()

void draw_line_segment ( cairo_t cr,
const Geom::LineSegment ls,
const Geom::Rect r 
)

◆ draw_ray() [1/2]

◆ draw_ray() [2/2]

void draw_ray ( cairo_t cr,
Geom::Point  h,
Geom::Point  dir 
)

Definition at line 203 of file path-cairo.cpp.

References draw_line_seg(), Geom::rot90(), and Geom::unit_vector().

Referenced by draw_line_segment().

◆ draw_spot()

void draw_spot ( cairo_t cr,
Geom::Point  h 
)

Definition at line 173 of file path-cairo.cpp.

References draw_line_seg().