summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d6f6db)
raw | patch | inline | side by side (parent: 6d6f6db)
author | bryce <bryce@users.sourceforge.net> | |
Sun, 6 Jan 2008 22:30:35 +0000 (22:30 +0000) | ||
committer | bryce <bryce@users.sourceforge.net> | |
Sun, 6 Jan 2008 22:30:35 +0000 (22:30 +0000) |
Whitespace cleanup.
index bfbacc9f36c111b968453ed0d2e4746a5f007d14..7325543b152c9933f2ac767f2bba5f5538a62d35 100644 (file)
virtual int render(FilterSlot &slot, FilterUnits const &units);
void update_pixbuffer(FilterSlot &slot, IRect &area);
-
+
void set_baseFrequency(int axis, double freq);
void set_numOctaves(int num);
void set_seed(double s);
index 00709f66cb3c2f69a5e0940bb307153771cf85fa..699f2c83bb96c7b5dd43b4bb7d1a23482c67f410 100644 (file)
LPEGears::LPEGears(LivePathEffectObject *lpeobject) :
Effect(lpeobject),
teeth(_("Teeth"), _("The number of teeth"), "teeth", &wr, this, 10),
- phi(_("Phi"), _("???"), "phi", &wr, this, 5)
+ 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
+ * are 20 and 25 degrees. The pressure angle affects the force that tends to separate mating
+ * gears. A high pressure angle means that higher ratio of teeth not in contact. However, this
+ * allows the teeth to have higher capacity and also allows fewer teeth without undercutting.
+ */
+
teeth.param_make_integer();
teeth.param_set_range(3, NR_HUGE);
registerParameter( dynamic_cast<Parameter *>(&teeth) );
index effa66e5468aced40bbbeb2ee5e6222499eae554..a2fe2be8ac65bd330341d923c2a7d0da3f850d85 100644 (file)
spacing(_("Spacing"), _("Space between copies of the pattern"), "spacing", &wr, this, 0),
normal_offset(_("Normal offset"), "", "normal_offset", &wr, this, 0),
tang_offset(_("Tangential offset"), "", "tang_offset", &wr, this, 0),
- vertical_pattern(_("Pattern is vertical"), "", "vertical_pattern", &wr, this, false)
+ vertical_pattern(_("Pattern is vertical"), "Rotate pattern 90 deg before applying", "vertical_pattern", &wr, this, false)
{
registerParameter( dynamic_cast<Parameter *>(&pattern) );
registerParameter( dynamic_cast<Parameter *>(©type) );
index d95a921f1507577e807193beadaa1726a6df266c..5d351884cdcfb8c3f232d4aaa457da62e7125f52 100644 (file)
--- a/src/sp-feturbulence.cpp
+++ b/src/sp-feturbulence.cpp
double read_num;
bool read_bool;
NR::FilterTurbulenceType read_type;
-
+
switch(key) {
/*DEAL WITH SETTING ATTRIBUTES HERE*/
-
+
case SP_ATTR_BASEFREQUENCY:
feTurbulence->baseFrequency.set(value);
//From SVG spec: If two <number>s are provided, the first number represents a base frequency in the X direction and the second value represents a base frequency in the Y direction. If one number is provided, then that value is used for both X and Y.
read_bool = sp_feTurbulence_read_stitchTiles(value);
if (read_bool != feTurbulence->stitchTiles){
feTurbulence->stitchTiles = read_bool;
- feTurbulence->updated = false;
+ feTurbulence->updated = false;
object->parent->requestModified(SP_OBJECT_MODIFIED_FLAG);
}
break;
read_type = sp_feTurbulence_read_type(value);
if (read_type != feTurbulence->type){
feTurbulence->type = read_type;
- feTurbulence->updated = false;
+ feTurbulence->updated = false;
object->parent->requestModified(SP_OBJECT_MODIFIED_FLAG);
}
break;
index e84635881947578b74f84bd9663163bb4a47c879..4318b54eb3db4f9d65c8f1e9cb6ab9b111866975 100644 (file)
void FilterEffectsDialog::add_primitive()
{
SPFilter* filter = _filter_modifier.get_selected_filter();
-
+
if(filter) {
SPFilterPrimitive* prim = filter_add_primitive(filter, _add_primitive_type.get_active_data()->id);