lpe-bspline.cpp revision 1921b929dbf1c1ff579f5eaa93b324a66669d445
/*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtkmm.h>
#include "live_effects/lpe-bspline.h"
#include "helper/geom-curves.h"
#include "sp-path.h"
#include "preferences.h"
// TODO due to internal breakage in glibmm headers, this must be last:
namespace Inkscape {
namespace LivePathEffect {
const double HANDLE_CUBIC_GAP = 0.001;
const double NO_POWER = 0.0;
const double DEFAULT_START_POWER = 0.3334;
const double DEFAULT_END_POWER = 0.6667;
ignore_cusp(_("Ignore cusp nodes"), _("Change ignoring cusp nodes"), "ignore_cusp", &wr, this, true),
only_selected(_("Change only selected nodes"), _("Change only selected nodes"), "only_selected", &wr, this, false),
weight(_("Change weight:"), _("Change weight of the effect"), "weight", &wr, this, DEFAULT_START_POWER)
{
}
LPEBSpline::~LPEBSpline() {}
{
}
}
{
if (!SP_IS_SHAPE(lpeitem)) {
g_warning("LPE BSpline can only be applied to shapes (not groups).");
item->removeCurrentPathEffect(false);
}
}
void
LPEBSpline::addCanvasIndicators(SPLPEItem const */*lpeitem*/, std::vector<Geom::PathVector> &hp_vec)
{
}
{
// use manage here, because after deletion of Effect object, others might
// still be pointing to this widget.
if ((*it)->widget_is_visible) {
}
if (widg) {
}
}
}
}
if (widg) {
if (tip) {
} else {
widg->set_has_tooltip(false);
}
}
}
++it;
}
}
void LPEBSpline::toDefaultWeight()
{
}
void LPEBSpline::toMakeCusp()
{
}
void LPEBSpline::toWeight()
{
}
{
if(path) {
}
}
{
}
{
return;
}
continue;
}
}
while (curve_it1 != curve_endit) {
if (cubic) {
} else {
}
} else {
}
} else {
}
delete in;
if ( curve_it2 != curve_endit ) {
if (cubic) {
} else {
}
} else {
}
delete out;
}
if (cubic) {
} else {
}
delete start;
if (cubic) {
} else {
}
delete end;
line_helper->reset();
delete line_helper;
} else if ( curve_it2 == curve_endit) {
} else {
line_helper->reset();
delete line_helper;
previousNode = node;
if((cubic && are_near((*cubic)[0],(*cubic)[1])) || (cubic2 && are_near((*cubic2)[2],(*cubic2)[3]))) {
}
}
}
++curve_it1;
++curve_it2;
}
}
delete curve_n;
}
if(helper_size > 0.0) {
}
}
{
char const * svgd = "M 1,0.5 A 0.5,0.5 0 0 1 0.5,1 0.5,0.5 0 0 1 0,0.5 0.5,0.5 0 0 1 0.5,0 0.5,0.5 0 0 1 1,0.5 Z";
}
{
using Geom::X;
using Geom::Y;
return;
// Make copy of old path as it is changed during processing
continue;
}
while (curve_it1 != curve_endit) {
if (!only_selected) {
if (cubic) {
if (weight_ammount != NO_POWER) {
}
} else {
}
if (weight_ammount != NO_POWER) {
}
} else {
}
} else {
if (weight_ammount != NO_POWER) {
}
if (weight_ammount != NO_POWER) {
}
} else {
}
}
} else {
if (cubic) {
if (isNodePointSelected(point_at0)) {
if (weight_ammount != NO_POWER) {
}
} else {
}
} else {
}
if (isNodePointSelected(point_at3)) {
if (weight_ammount != NO_POWER) {
}
} else {
}
} else {
}
} else {
if (isNodePointSelected(point_at0)) {
} else {
}
if (isNodePointSelected(point_at3)) {
} else {
}
} else {
}
}
}
delete in;
++curve_it1;
++curve_it2;
}
} else {
}
}
delete curve_n;
}
}
}; //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 :