Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Typedefs | |
typedef struct _cairo | cairo_t |
typedef struct _cairo cairo_t |
Definition at line 16 of file path-cairo.h.
void cairo_convex_hull | ( | cairo_t * | cr, |
Geom::ConvexHull const & | r | ||
) |
Definition at line 35 of file cairo-helpers.cpp.
References Geom::ConvexHull::back(), cairo_line_to(), cairo_move_to(), Geom::ConvexHull::empty(), and Geom::ConvexHull::size().
Referenced by fill_line_in_rect(), and py_cairo_convex_hull().
void cairo_curve | ( | cairo_t * | cr, |
Geom::Curve const & | c | ||
) |
Definition at line 43 of file cairo-helpers.cpp.
References Geom::Path::begin(), c, cairo_curve(), cairo_curve_to(), cairo_line_to(), Geom::cubicbezierpath_from_sbasis(), and Geom::Path::end().
Referenced by draw_ratquad(), and py_cairo_curve().
void cairo_curve_to | ( | cairo_t * | cr, |
Geom::Point | p1, | ||
Geom::Point | p2, | ||
Geom::Point | p3 | ||
) |
Definition at line 24 of file cairo-helpers.cpp.
References cairo_curve_to().
Referenced by Inkscape::DrawingContext::curveTo(), Geom::CairoPathSink::curveTo(), feed_curve_to_cairo(), Geom::CairoPathSink::quadTo(), and wrap_path().
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().
void cairo_d2_sb | ( | cairo_t * | cr, |
Geom::D2< Geom::SBasis > const & | p | ||
) |
Definition at line 123 of file cairo-helpers.cpp.
References cairo_path(), and Geom::path_from_sbasis().
Referenced by cairo_pw(), cairo_pw(), draw_axis(), plot(), plot(), plot(), plot(), plot3d(), plot3d(), py_cairo_d2_sb(), recursive_curvature_fitter(), sequential_curvature_fitter(), and smash_intersect().
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.
void cairo_d2_sb_handles | ( | cairo_t * | cr, |
Geom::D2< Geom::SBasis > const & | p | ||
) |
void cairo_line_to | ( | cairo_t * | cr, |
Geom::Point | p1 | ||
) |
Definition at line 19 of file cairo-helpers.cpp.
References cairo_line_to().
Referenced by Inkscape::UI::Widget::create_separator(), Toy::draw(), draw(), draw_box(), Inkscape::UI::Widget::draw_circle(), Inkscape::UI::Widget::ColorPreview::draw_func(), draw_hull(), draw_line(), draw_line_in_rect(), draw_rect(), draw_segment(), draw_slider_lines(), feed_curve_to_cairo(), feed_path_to_cairo(), Inkscape::DrawingContext::lineTo(), Geom::CairoPathSink::lineTo(), plot(), plot(), plot_bar(), plot_bar(), and wrap_path().
void cairo_move_to | ( | cairo_t * | cr, |
Geom::Point | p1 | ||
) |
Definition at line 14 of file cairo-helpers.cpp.
References cairo_move_to().
Referenced by cairo_horiz(), cairo_vert(), Inkscape::UI::Widget::create_separator(), Slider::draw(), Toy::draw(), draw(), draw_box(), draw_hull(), draw_line(), draw_line_in_rect(), draw_rect(), draw_segment(), draw_slider_lines(), Inkscape::UI::Widget::draw_text(), draw_text(), feed_curve_to_cairo(), feed_path_to_cairo(), feed_path_to_cairo(), Inkscape::DrawingContext::moveTo(), Geom::CairoPathSink::moveTo(), plot(), plot(), plot_bar(), plot_bar(), Inkscape::DrawingContext::revrectangle(), Inkscape::DrawingContext::revrectangle(), wrap_path(), and write_text().
void cairo_path | ( | cairo_t * | cr, |
Geom::Path const & | p | ||
) |
Definition at line 73 of file cairo-helpers.cpp.
References Geom::Path::begin(), cairo_curve(), cairo_line_to(), cairo_move_to(), Geom::Path::closed(), Geom::Path::end(), end, Geom::Path::finalPoint(), Geom::Path::initialPoint(), and Geom::Path::size().
Referenced by LPEToy::draw(), draw_cell(), plot(), py_cairo_path(), and py_cairo_path().
void cairo_path | ( | cairo_t * | cr, |
Geom::PathVector const & | p | ||
) |
Definition at line 108 of file cairo-helpers.cpp.
References Geom::PathVector::begin(), cairo_path(), and Geom::PathVector::end().
void cairo_path_stitches | ( | cairo_t * | cr, |
Geom::Path const & | p | ||
) |
Definition at line 90 of file cairo-helpers.cpp.
References Geom::Path::begin(), c, cairo_line_to(), cairo_move_to(), Geom::Path::end(), Geom::X, and Geom::Y.
Referenced by py_cairo_path_stitches(), and py_cairo_path_stitches().
void cairo_path_stitches | ( | cairo_t * | cr, |
Geom::PathVector const & | p | ||
) |
Definition at line 115 of file cairo-helpers.cpp.
References Geom::PathVector::begin(), cairo_path_stitches(), and Geom::PathVector::end().
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().
void cairo_rectangle | ( | cairo_t * | cr, |
Geom::Rect const & | r | ||
) |
Definition at line 31 of file cairo-helpers.cpp.
References cairo_rectangle(), Geom::GenericRect< C >::height(), Geom::GenericRect< C >::left(), Geom::GenericRect< C >::top(), and Geom::GenericRect< C >::width().
Referenced by Inkscape::Extension::Internal::CairoRenderContext::_finishSurfaceSetup(), Inkscape::Extension::Internal::CairoRenderContext::addClippingRect(), Toggle::draw(), RectHandle::draw(), draw_callback(), ink_cairo_pattern_create_checkerboard(), plot_bar(), Inkscape::Extension::Internal::CairoRenderContext::popLayer(), py_cairo_rectangle(), Inkscape::DrawingContext::rectangle(), Inkscape::DrawingContext::rectangle(), Inkscape::Filters::FilterFlood::render_cairo(), Inkscape::Extension::Internal::CairoRenderContext::renderImage(), and sp_gradstop_to_pixbuf_ref().
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.
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.
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().
void draw_cross | ( | cairo_t * | cr, |
Geom::Point | h | ||
) |
Definition at line 186 of file path-cairo.cpp.
References cairo_line_to(), cairo_move_to(), Geom::X, and Geom::Y.
Referenced by create_bezier(), create_bezier_again(), create_bezier_along_curve(), mark_verts(), plot(), plot(), and plot3d().
void draw_handle | ( | cairo_t * | cr, |
Geom::Point | h | ||
) |
Definition at line 177 of file path-cairo.cpp.
References cairo_line_to(), cairo_move_to(), Geom::X, and Geom::Y.
Referenced by Geom::CLIPPER_CLASS::clip(), Geom::CLIPPER_CLASS::pairing(), plot(), plot_offset(), proj_image(), recursive_curvature_fitter(), and sequential_curvature_fitter().
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().
void draw_line | ( | cairo_t * | cr, |
Geom::Point | a, | ||
Geom::Point | b, | ||
Geom::Rect | r | ||
) |
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().
void draw_line_seg | ( | cairo_t * | cr, |
Geom::Point | a, | ||
Geom::Point | b | ||
) |
Definition at line 167 of file path-cairo.cpp.
References cairo_line_to(), and cairo_move_to().
Referenced by dot_plot(), dot_plot(), dot_plot(), draw_bounds(), draw_line_segment(), draw_ray(), draw_ray(), draw_spot(), and Geom::CLIPPER_CLASS::pairing().
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().
void draw_line_segment | ( | cairo_t * | cr, |
const Geom::LineSegment & | ls, | ||
const Geom::Rect & | r | ||
) |
Definition at line 298 of file path-cairo.cpp.
References Geom::GenericRect< C >::contains(), draw_line(), draw_line_seg(), and draw_ray().
void draw_ray | ( | cairo_t * | cr, |
const Geom::Ray & | ray, | ||
const Geom::Rect & | r | ||
) |
Definition at line 280 of file path-cairo.cpp.
References Geom::GenericRect< C >::corner(), draw_line_seg(), Geom::intersection(), Geom::Ray::origin(), Geom::Ray::pointAt(), Geom::BezierCurve::setFinal(), and Geom::BezierCurve::setInitial().
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().
void draw_spot | ( | cairo_t * | cr, |
Geom::Point | h | ||
) |
Definition at line 173 of file path-cairo.cpp.
References draw_line_seg().