Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Typedefs | |
typedef std::vector< Edge > | Edges |
Functions | |
Edges | edges (Path const &p, Crossings const &cr, unsigned ix) |
template<class T > | |
void | append (std::vector< T > &vec, std::vector< T > const &other) |
Edges | edges (PathVector const &ps, CrossingSet const &crs) |
PathVector | edges_to_paths (Edges const &es, PathVector const &ps) |
void | draw_cell (cairo_t *cr, Edges const &es, PathVector const &ps) |
double | ang (Point n1, Point n2) |
template<class T > | |
void | remove (std::vector< T > &vec, T const &val) |
std::vector< Edges > | cells (cairo_t *, PathVector const &ps) |
int | cellWinding (Edges const &, PathVector const &) |
int | main (int argc, char **argv) |
typedef std::vector<Edge> Edges |
Definition at line 34 of file sanitize.cpp.
Definition at line 89 of file sanitize.cpp.
References Geom::cross(), Geom::dot(), n1, and n2.
Referenced by cells(), SweepTree::InsertAt(), Inkscape::Extension::Internal::PrintEmf::pathv_to_rect(), Avoid::rotationalAngle(), and Shape::TesteIntersection().
void append | ( | std::vector< T > & | vec, |
std::vector< T > const & | other | ||
) |
Definition at line 55 of file sanitize.cpp.
Referenced by SPAttributeTable::create(), Inkscape::UI::Dialog::SvgFontsDialog::EntryWidget::EntryWidget(), and Path::LoadPath().
std::vector< Edges > cells | ( | cairo_t * | , |
PathVector const & | ps | ||
) |
Definition at line 103 of file sanitize.cpp.
References ang(), Geom::are_near(), Geom::crossings_among(), Geom::Point::cw(), edges(), es, remove(), and start.
Referenced by Inkscape::UI::Widget::ComboToolItem::populate_combobox().
int cellWinding | ( | Edges const & | , |
PathVector const & | |||
) |
Definition at line 159 of file sanitize.cpp.
void draw_cell | ( | cairo_t * | cr, |
Edges const & | es, | ||
PathVector const & | ps | ||
) |
Definition at line 76 of file sanitize.cpp.
References Geom::area(), cairo_path(), cairo_set_source_rgba(), Geom::centroid(), edges_to_paths(), es, paths, Geom::paths_to_pw(), and uniform().
Definition at line 36 of file sanitize.cpp.
References Geom::Path::pointAt().
Referenced by Tracer::Kopf2011::_remove_crossing_edges_unsafe(), Tracer::Kopf2011::_voronoi(), cells(), straightener::computeStressFromRoutes(), OutputFile::draw_curved_edges(), edges(), straightener::generateClusterBoundaries(), straightener::generateConstraints(), Inkscape::getBBoxPoints(), DFS::Graph::Graph(), main(), makeEdge(), makeEdge(), makeFeasible(), random_dag(), random_graph(), random_tree(), straightener::setEdgeLengths(), TEST(), TEST(), TEST(), and TEST().
Edges edges | ( | PathVector const & | ps, |
CrossingSet const & | crs | ||
) |
Definition at line 59 of file sanitize.cpp.
References Geom::append(), and edges().
PathVector edges_to_paths | ( | Edges const & | es, |
PathVector const & | ps | ||
) |
Definition at line 68 of file sanitize.cpp.
References es, and Geom::PathVector::push_back().
Referenced by draw_cell().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 201 of file sanitize.cpp.
References init().
void remove | ( | std::vector< T > & | vec, |
T const & | val | ||
) |
Definition at line 94 of file sanitize.cpp.
Referenced by Inkscape::UI::Widget::FontVariations::build_ui(), cells(), Inkscape::LivePathEffect::LPEMeasureSegments::createLine(), Inkscape::LivePathEffect::LPEMeasureSegments::createTextLabel(), Inkscape::LivePathEffect::LPEMeasureSegments::doBeforeEffect(), Inkscape::UI::Widget::Scalar::hide_label(), Inkscape::UI::Dialog::InkscapePreferences::InkscapePreferences(), Inkscape::UI::Dialog::DialogContainer::on_unrealize(), Inkscape::FontCollections::remove_collection(), Inkscape::UI::Widget::ScalarUnit::ScalarUnit(), sp_item_list_to_curves(), and Inkscape::UI::ShapeEditor::unset_item().