index 816955e4d1050b4164efbf7b85cc205d0e334bdd..cbc3c3b26d9d19debeb7064d45daecd1eaa7b4ea 100644 (file)
-#ifndef INKSCAPE_LPE_ROUGH_HATCHES_H\r
-#define INKSCAPE_LPE_ROUGH_HATCHES_H\r
-\r
-/** \file\r
- * Fills an area with rough hatches.\r
- */\r
-\r
-/*\r
- * Authors:\r
- * JFBarraud\r
- *\r
- * Copyright (C) JF Barraud 2008.\r
- *\r
- * Released under GNU GPL, read the file 'COPYING' for more information\r
- */\r
-\r
-#include "live_effects/effect.h"\r
-#include "live_effects/parameter/point.h"\r
-#include "live_effects/parameter/parameter.h"\r
-#include "live_effects/parameter/bool.h"\r
-#include "live_effects/parameter/random.h"\r
-#include "live_effects/parameter/vector.h"\r
-\r
-namespace Inkscape {\r
-namespace LivePathEffect {\r
-\r
-class LPERoughHatches : public Effect {\r
-public:\r
- LPERoughHatches(LivePathEffectObject *lpeobject);\r
- virtual ~LPERoughHatches();\r
-\r
- virtual Geom::Piecewise<Geom::D2<Geom::SBasis> >\r
- doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);\r
-\r
- virtual void resetDefaults(SPItem * item);\r
-\r
- virtual void doBeforeEffect(SPLPEItem * item);\r
-\r
- std::vector<double>\r
- generateLevels(Geom::Interval const &domain, double x_org);\r
-\r
- std::vector<std::vector<Geom::Point> >\r
- linearSnake(Geom::Piecewise<Geom::D2<Geom::SBasis> > const &f, Geom::Point const &org);\r
-\r
- Geom::Piecewise<Geom::D2<Geom::SBasis> > \r
- smoothSnake(std::vector<std::vector<Geom::Point> > const &linearSnake);\r
- \r
-private:\r
- double hatch_dist;\r
- RandomParam dist_rdm;\r
- ScalarParam growth;\r
- //topfront,topback,bottomfront,bottomback handle scales.\r
- ScalarParam scale_tf, scale_tb, scale_bf, scale_bb;\r
-\r
- RandomParam top_edge_variation;\r
- RandomParam bot_edge_variation;\r
- RandomParam top_tgt_variation;\r
- RandomParam bot_tgt_variation;\r
- RandomParam top_smth_variation;\r
- RandomParam bot_smth_variation;\r
-\r
- BoolParam fat_output, do_bend;\r
- ScalarParam stroke_width_top;\r
- ScalarParam stroke_width_bot;\r
- ScalarParam front_thickness, back_thickness;\r
-\r
- //PointParam bender;\r
- VectorParam direction;\r
- VectorParam bender;\r
-\r
- LPERoughHatches(const LPERoughHatches&);\r
- LPERoughHatches& operator=(const LPERoughHatches&);\r
-};\r
-\r
-} //namespace LivePathEffect\r
-} //namespace Inkscape\r
-\r
-#endif\r
+#ifndef INKSCAPE_LPE_ROUGH_HATCHES_H
+#define INKSCAPE_LPE_ROUGH_HATCHES_H
+
+/** \file
+ * Fills an area with rough hatches.
+ */
+
+/*
+ * Authors:
+ * JFBarraud
+ *
+ * Copyright (C) JF Barraud 2008.
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include "live_effects/effect.h"
+#include "live_effects/parameter/point.h"
+#include "live_effects/parameter/parameter.h"
+#include "live_effects/parameter/bool.h"
+#include "live_effects/parameter/random.h"
+#include "live_effects/parameter/vector.h"
+
+namespace Inkscape {
+namespace LivePathEffect {
+
+class LPERoughHatches : public Effect {
+public:
+ LPERoughHatches(LivePathEffectObject *lpeobject);
+ virtual ~LPERoughHatches();
+
+ virtual Geom::Piecewise<Geom::D2<Geom::SBasis> >
+ doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
+
+ virtual void resetDefaults(SPItem * item);
+
+ virtual void doBeforeEffect(SPLPEItem * item);
+
+ std::vector<double>
+ generateLevels(Geom::Interval const &domain, double x_org);
+
+ std::vector<std::vector<Geom::Point> >
+ linearSnake(Geom::Piecewise<Geom::D2<Geom::SBasis> > const &f, Geom::Point const &org);
+
+ Geom::Piecewise<Geom::D2<Geom::SBasis> >
+ smoothSnake(std::vector<std::vector<Geom::Point> > const &linearSnake);
+
+private:
+ double hatch_dist;
+ RandomParam dist_rdm;
+ ScalarParam growth;
+ //topfront,topback,bottomfront,bottomback handle scales.
+ ScalarParam scale_tf, scale_tb, scale_bf, scale_bb;
+
+ RandomParam top_edge_variation;
+ RandomParam bot_edge_variation;
+ RandomParam top_tgt_variation;
+ RandomParam bot_tgt_variation;
+ RandomParam top_smth_variation;
+ RandomParam bot_smth_variation;
+
+ BoolParam fat_output, do_bend;
+ ScalarParam stroke_width_top;
+ ScalarParam stroke_width_bot;
+ ScalarParam front_thickness, back_thickness;
+
+ //PointParam bender;
+ VectorParam direction;
+ VectorParam bender;
+
+ LPERoughHatches(const LPERoughHatches&);
+ LPERoughHatches& operator=(const LPERoughHatches&);
+};
+
+} //namespace LivePathEffect
+} //namespace Inkscape
+
+#endif