lpe-simplify.cpp revision 76addc201c409e81eaaa73fe27cc0f79c4db097c
/*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtkmm.h>
#include "live_effects/lpe-simplify.h"
#include "live_effects/parameter/parameter.h"
#include "splivarot.h"
#include "desktop.h"
#include "inkscape.h"
#include "ui/tools/node-tool.h"
#include "ui/icon-names.h"
namespace Inkscape {
namespace LivePathEffect {
smooth_angles(_("Smooth angles:"), _("Max degree difference on handles to preform a smooth"), "smooth_angles", &wr, this, 20.),
simplify_individual_paths(_("Paths separately"), _("Simplifying paths (separately)"), "simplify_individual_paths", &wr, this, false,
simplify_just_coalesce(_("Just coalesce"), _("Simplify just coalesce"), "simplify_just_coalesce", &wr, this, false,
{
radius_helper_nodes = 6.0;
}
LPESimplify::~LPESimplify() {}
void
{
}
}
{
// use manage here, because after deletion of Effect object, others might still be pointing to this widget.
vbox->set_homogeneous(false);
if ((*it)->widget_is_visible) {
if (widg) {
if (tip) {
} else {
widg->set_has_tooltip(false);
}
}
} else {
if (widg) {
if (tip) {
} else {
widg->set_has_tooltip(false);
}
}
}
}
++it;
}
}
void
{
//size /= Geom::Affine(0,0,0,0,0,0).descrim();
}
for (int unsigned i = 0; i < steps; i++) {
if ( simplify_just_coalesce ) {
} else {
}
}
Inkscape::UI::Tools::NodeTool *nt = static_cast<Inkscape::UI::Tools::NodeTool*>(desktop->event_context);
nt->update_helperpath();
}
}
void
{
if(steps < 1) {
return;
}
continue;
}
Geom::Path::iterator curve_endit = path_it->end_default(); // this determines when the loop has to stop
// if the path is closed, maybe we have to stop a bit earlier because the
// closing line segment has zerolength.
// Geom::LineSegment.
// closingline.isDegenerate() did not work, because it only checks for
// *exact* zero length, which goes wrong for relative coordinates and
// rounding errors...
// the closing line segment has zero-length. So stop before that one!
}
}
if(helper_size > 0) {
}
while (curve_it1 != curve_endit) {
if (cubic) {
}
}
}
if(curve_it2 != curve_endit) {
if (cubic) {
}
}
if((smooth_angles >= angle2 - angle1) && !are_near(point_at4,point_at3) && !are_near(point_at2,point_at3)) {
}
if (cubic) {
if(helper_size > 0) {
}
}
}
}
if(helper_size > 0) {
}
++curve_it1;
++curve_it2;
}
}
delete nCurve;
}
}
void
{
double r = radius_helper_nodes;
char const * svgd;
svgd = "M 0.55,0.5 A 0.05,0.05 0 0 1 0.5,0.55 0.05,0.05 0 0 1 0.45,0.5 0.05,0.05 0 0 1 0.5,0.45 0.05,0.05 0 0 1 0.55,0.5 Z M 0,0 1,0 1,1 0,1 Z";
}
void
{
double r = radius_helper_nodes;
char const * svgd;
svgd = "M 0.7,0.35 A 0.35,0.35 0 0 1 0.35,0.7 0.35,0.35 0 0 1 0,0.35 0.35,0.35 0 0 1 0.35,0 0.35,0.35 0 0 1 0.7,0.35 Z";
}
void
{
double diameter = radius_helper_nodes;
}
}
void
LPESimplify::addCanvasIndicators(SPLPEItem const */*lpeitem*/, std::vector<Geom::PathVector> &hp_vec)
{
}
}; //namespace LivePathEffect
}; /* namespace Inkscape */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :