index 7dcd32fcce710b6d6703e1c8eb511fa7fbb97f5e..337beb5162a5a61ed94ae1972ab2533dc6ab23c1 100644 (file)
/*
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
+ * Copyright 2006 Michael G. Sloan <mgsloan@gmail.com>
+ * Copyright 2006 Aaron Spike <aaron@ekips.org>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <2geom/bezier-to-sbasis.h>
#include <2geom/path.h>
-#include "nodepath.h"
-
using std::vector;
using namespace Geom;
LPEGears::LPEGears(LivePathEffectObject *lpeobject) :
Effect(lpeobject),
- teeth(_("Teeth"), _("The number of teeth"), "teeth", &wr, this, 10),
- phi(_("Phi"), _("Tooth pressure angle (typically 20-25 deg). The ratio of teeth not in contact."), "phi", &wr, this, 5)
+ teeth(_("_Teeth:"), _("The number of teeth"), "teeth", &wr, this, 10),
+ phi(_("_Phi:"), _("Tooth pressure angle (typically 20-25 deg). The ratio of teeth not in contact."), "phi", &wr, this, 5)
{
/* Tooth pressure angle: The angle between the tooth profile and a perpendicular to the pitch
* circle, usually at the point where the pitch circle meets the tooth profile. Standard angles
*/
teeth.param_make_integer();
- teeth.param_set_range(3, NR_HUGE);
+ teeth.param_set_range(3, 1e10);
registerParameter( dynamic_cast<Parameter *>(&teeth) );
registerParameter( dynamic_cast<Parameter *>(&phi) );
}
return path_out;
}
-void
-LPEGears::setup_nodepath(Inkscape::NodePath::Path *np)
-{
- Effect::setup_nodepath(np);
- np->straight_path = true;
-}
-
} // namespace LivePathEffect
} /* namespace Inkscape */