Author: Carlos Lopez <[email protected]>
Date:   Wed Aug 10 20:37:08 2011 +0200

Add dassh member to widthpoints. Dash=true means that the widthpoint is used 
for dashed segments. False by default

---

 synfig-core/src/synfig/widthpoint.cpp |   16 +++++++++++++++-
 synfig-core/src/synfig/widthpoint.h   |    3 +++
 2 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/synfig-core/src/synfig/widthpoint.cpp 
b/synfig-core/src/synfig/widthpoint.cpp
index 139c616..7dc15d0 100644
--- a/synfig-core/src/synfig/widthpoint.cpp
+++ b/synfig-core/src/synfig/widthpoint.cpp
@@ -50,7 +50,8 @@ using namespace synfig;
 
 WidthPoint::WidthPoint():
        position_(0.0),
-       width_(0.01)
+       width_(0.01),
+       dash_(false)
 {
        side_type_[0] = side_type_[1] = TYPE_INTERPOLATE;
 }
@@ -132,6 +133,19 @@ WidthPoint::get_side_type(int i)const
        return i>0? side_type_[1]: side_type_[0];
 }
 
+void
+WidthPoint::set_dash(bool l)
+{
+       dash_=l;
+}
+
+bool
+WidthPoint::get_dash()const
+{
+       return dash_;
+}
+
+
 bool
 WidthPoint::operator<(const WidthPoint& rhs)
 {
diff --git a/synfig-core/src/synfig/widthpoint.h 
b/synfig-core/src/synfig/widthpoint.h
index 78c0a56..095f715 100644
--- a/synfig-core/src/synfig/widthpoint.h
+++ b/synfig-core/src/synfig/widthpoint.h
@@ -46,6 +46,7 @@ private:
        Real position_;
        Real width_;
        int side_type_[2]; // Before [0] and After[1] side types
+       bool dash_; // if true, widthpoint is used for dashed outlines
 
 public:
 
@@ -75,6 +76,8 @@ public:
        int get_side_type_after()const;
        void set_side_type_after(int sideafter);
        int get_side_type(int i)const;
+       bool get_dash()const;
+       void set_dash(bool l);
        bool operator < (const WidthPoint& rhs);
        bool operator == (const WidthPoint& rhs);
 


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to