diff options
| author | JF Barraud <jf.barraud@gmail.com> | 2008-11-26 20:56:08 +0000 |
|---|---|---|
| committer | jfbarraud <jfbarraud@users.sourceforge.net> | 2008-11-26 20:56:08 +0000 |
| commit | b6c8f998b13d55a71de0d7ce0a541fd5233fcf4f (patch) | |
| tree | 33881e87d4c1200530767fb06bfeaebaa3b07ec3 /src | |
| parent | Fix bug #299414: a return statement in unitTangentAt() got lost in rev. 20205! (diff) | |
| download | inkscape-b6c8f998b13d55a71de0d7ce0a541fd5233fcf4f.tar.gz inkscape-b6c8f998b13d55a71de0d7ce0a541fd5233fcf4f.zip | |
renamed lpe-hatches to lpe-rough-hatches.
(bzr r6905)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/live_effects/effect-enum.h | 2 | ||||
| -rw-r--r-- | src/live_effects/effect.cpp | 10 | ||||
| -rw-r--r-- | src/live_effects/lpe-rough-hatches.cpp (renamed from src/live_effects/lpe-hatches.cpp) | 22 | ||||
| -rw-r--r-- | src/live_effects/lpe-rough-hatches.h (renamed from src/live_effects/lpe-hatches.h) | 16 |
5 files changed, 26 insertions, 26 deletions
diff --git a/src/live_effects/CMakeLists.txt b/src/live_effects/CMakeLists.txt index 89b7b9e3a..72d955586 100644 --- a/src/live_effects/CMakeLists.txt +++ b/src/live_effects/CMakeLists.txt @@ -11,7 +11,7 @@ lpe-gears.cpp lpegroupbbox.cpp lpe-interpolate.cpp lpe-knot.cpp -lpe-hatches.cpp +lpe-rough-hatches.cpp lpe-lattice.cpp lpe-mirror_symmetry.cpp lpeobject.cpp diff --git a/src/live_effects/effect-enum.h b/src/live_effects/effect-enum.h index 1e82954f8..4c0d9389f 100644 --- a/src/live_effects/effect-enum.h +++ b/src/live_effects/effect-enum.h @@ -21,7 +21,7 @@ enum EffectType { PATTERN_ALONG_PATH, FREEHAND_SHAPE, SKETCH, - HATCHES, + ROUGH_HATCHES, VONKOCH, KNOT, #ifdef LPE_ENABLE_TEST_EFFECTS diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index bb5f0c554..2a316a0bb 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -42,7 +42,7 @@ #include "live_effects/lpe-sketch.h" #include "live_effects/lpe-vonkoch.h" #include "live_effects/lpe-knot.h" -#include "live_effects/lpe-hatches.h" +#include "live_effects/lpe-rough-hatches.h" #include "live_effects/lpe-test-doEffect-stack.h" #include "live_effects/lpe-gears.h" #include "live_effects/lpe-curvestitch.h" @@ -73,7 +73,7 @@ namespace Inkscape { namespace LivePathEffect { const Util::EnumData<EffectType> LPETypeData[] = { - // {constant defined in effect.h, N_("name of your effect"), "name of your effect in SVG"} + // {constant defined in effect-enum.h, N_("name of your effect"), "name of your effect in SVG"} {ANGLE_BISECTOR, N_("Angle bisector"), "angle_bisector"}, {BEND_PATH, N_("Bend"), "bend_path"}, {BOOLOPS, N_("Boolops"), "boolops"}, @@ -100,7 +100,7 @@ const Util::EnumData<EffectType> LPETypeData[] = { {COPY_ROTATE, N_("Rotate copies"), "copy_rotate"}, {RULER, N_("Ruler"), "ruler"}, {SKETCH, N_("Sketch"), "sketch"}, - {HATCHES, N_("Hatches"), "hatches"}, + {ROUGH_HATCHES, N_("Hatches (rough)"), "rough_hatches"}, {SPIRO, N_("Spiro spline"), "spiro"}, {CURVE_STITCH, N_("Stitch Sub-Paths"), "curvestitching"}, {TANGENT_TO_CURVE, N_("Tangent to curve"), "tangent_to_curve"}, @@ -139,8 +139,8 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case SKETCH: neweffect = static_cast<Effect*> ( new LPESketch(lpeobj) ); break; - case HATCHES: - neweffect = static_cast<Effect*> ( new LPEHatches(lpeobj) ); + case ROUGH_HATCHES: + neweffect = static_cast<Effect*> ( new LPERoughHatches(lpeobj) ); break; case VONKOCH: neweffect = static_cast<Effect*> ( new LPEVonKoch(lpeobj) ); diff --git a/src/live_effects/lpe-hatches.cpp b/src/live_effects/lpe-rough-hatches.cpp index 2205d91f3..94d9669aa 100644 --- a/src/live_effects/lpe-hatches.cpp +++ b/src/live_effects/lpe-rough-hatches.cpp @@ -1,4 +1,4 @@ -#define INKSCAPE_LPE_HATCHES_CPP
+#define INKSCAPE_LPE_ROUGH_HATCHES_CPP
/** \file
* LPE Curve Stitching implementation, used as an example for a base starting class
* when implementing new LivePathEffects.
@@ -13,7 +13,7 @@ * Released under GNU GPL, read the file 'COPYING' for more information
*/
-#include "live_effects/lpe-hatches.h"
+#include "live_effects/lpe-rough-hatches.h"
#include "sp-item.h"
#include "sp-path.h"
@@ -263,9 +263,9 @@ Piecewise<D2<SBasis> > bend(Piecewise<D2<SBasis> > const &f, Piecewise<SBasis> b }
//--------------------------------------------------------
-// The Hatches lpe.
+// The RoughHatches lpe.
//--------------------------------------------------------
-LPEHatches::LPEHatches(LivePathEffectObject *lpeobject) :
+LPERoughHatches::LPERoughHatches(LivePathEffectObject *lpeobject) :
Effect(lpeobject),
dist_rdm(_("Dist randomness"), _("Variation of dist between hatches, in %."), "dist_rdm", &wr, this, 75),
growth(_("Growth"), _("Growth of distance between hatches."), "growth", &wr, this, 0.),
@@ -321,13 +321,13 @@ LPEHatches::LPEHatches(LivePathEffectObject *lpeobject) : show_orig_path = true;
}
-LPEHatches::~LPEHatches()
+LPERoughHatches::~LPERoughHatches()
{
}
Geom::Piecewise<Geom::D2<Geom::SBasis> >
-LPEHatches::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in){
+LPERoughHatches::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in){
Piecewise<D2<SBasis> > result;
@@ -371,7 +371,7 @@ LPEHatches::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2 // Generate the levels with random, growth...
//------------------------------------------------
std::vector<double>
-LPEHatches::generateLevels(Interval const &domain){
+LPERoughHatches::generateLevels(Interval const &domain){
std::vector<double> result;
double x = domain.min() + double(hatch_dist)/2.;
double step = double(hatch_dist);
@@ -392,7 +392,7 @@ LPEHatches::generateLevels(Interval const &domain){ // Walk through the intersections to create linear hatches
//-------------------------------------------------------
std::vector<std::vector<Point> >
-LPEHatches::linearSnake(Piecewise<D2<SBasis> > const &f){
+LPERoughHatches::linearSnake(Piecewise<D2<SBasis> > const &f){
std::vector<std::vector<Point> > result;
@@ -451,7 +451,7 @@ LPEHatches::linearSnake(Piecewise<D2<SBasis> > const &f){ // Smooth the linear hatches according to params...
//-------------------------------------------------------
Piecewise<D2<SBasis> >
-LPEHatches::smoothSnake(std::vector<std::vector<Point> > const &linearSnake){
+LPERoughHatches::smoothSnake(std::vector<std::vector<Point> > const &linearSnake){
Piecewise<D2<SBasis> > result;
for (unsigned comp=0; comp<linearSnake.size(); comp++){
@@ -545,7 +545,7 @@ LPEHatches::smoothSnake(std::vector<std::vector<Point> > const &linearSnake){ }
void
-LPEHatches::doBeforeEffect (SPLPEItem */*lpeitem*/)
+LPERoughHatches::doBeforeEffect (SPLPEItem */*lpeitem*/)
{
using namespace Geom;
top_edge_variation.resetRandomizer();
@@ -561,7 +561,7 @@ LPEHatches::doBeforeEffect (SPLPEItem */*lpeitem*/) void
-LPEHatches::resetDefaults(SPItem * item)
+LPERoughHatches::resetDefaults(SPItem * item)
{
Geom::OptRect bbox = item->getBounds(Geom::identity(), SPItem::GEOMETRIC_BBOX);
Geom::Point origin(0.,0.);
diff --git a/src/live_effects/lpe-hatches.h b/src/live_effects/lpe-rough-hatches.h index 029847186..23b2a0966 100644 --- a/src/live_effects/lpe-hatches.h +++ b/src/live_effects/lpe-rough-hatches.h @@ -1,8 +1,8 @@ -#ifndef INKSCAPE_LPE_HATCHES_H
-#define INKSCAPE_LPE_HATCHES_H
+#ifndef INKSCAPE_LPE_ROUGH_HATCHES_H
+#define INKSCAPE_LPE_ROUGH_HATCHES_H
/** \file
- * Implementation of the curve stitch effect, see lpe-hatches.cpp
+ * Fills an area with rough hatches.
*/
/*
@@ -24,10 +24,10 @@ namespace Inkscape {
namespace LivePathEffect {
-class LPEHatches : public Effect {
+class LPERoughHatches : public Effect {
public:
- LPEHatches(LivePathEffectObject *lpeobject);
- virtual ~LPEHatches();
+ LPERoughHatches(LivePathEffectObject *lpeobject);
+ virtual ~LPERoughHatches();
virtual Geom::Piecewise<Geom::D2<Geom::SBasis> >
doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
@@ -67,8 +67,8 @@ private: PointParam bender;
VectorParam direction;
- LPEHatches(const LPEHatches&);
- LPEHatches& operator=(const LPEHatches&);
+ LPERoughHatches(const LPERoughHatches&);
+ LPERoughHatches& operator=(const LPERoughHatches&);
};
} //namespace LivePathEffect
|
