Removed trailing whitespace.
[synfig.git] / synfig-core / trunk / src / synfig / waypoint.h
index 923955d..62416e9 100644 (file)
 
 /* === C L A S S E S & S T R U C T S ======================================= */
 
-namespace synfig { 
+namespace synfig {
 
 class ValueNode;
 class GUID;
-               
-       
+
+
 /*!    \class Waypoint
 **     \brief \writeme
 */
@@ -64,7 +64,7 @@ public:
        class Model
        {
                friend class Waypoint;
-                       
+
                int priority;
                Interpolation before;
                Interpolation after;
@@ -72,9 +72,9 @@ public:
                Real continuity;
                Real bias;
                Real temporal_tension;
-               
+
                bool priority_flag,before_flag,after_flag,tension_flag,continuity_flag,bias_flag,temporal_tension_flag;
-       
+
        public:
                Model():
                        priority_flag(false),
@@ -84,27 +84,27 @@ public:
                        continuity_flag(false),
                        bias_flag(false),
                        temporal_tension_flag(false) { }
-       
+
                Interpolation get_before()const { return before; }
                void set_before(Interpolation x) { before=x; before_flag=true;}
-       
+
                Interpolation get_after()const { return after; }
                void set_after(Interpolation x) { after=x; after_flag=true;}
-       
+
                const Real &get_tension()const { return tension; }
                void set_tension(const Real &x) { tension=x; tension_flag=true;}
-               
+
                const Real &get_continuity()const { return continuity; }
                void set_continuity(const Real &x) { continuity=x; continuity_flag=true;}
-       
+
                const Real &get_bias()const { return bias; }
                void set_bias(const Real &x) { bias=x; bias_flag=true;}
 
                const Real &get_temporal_tension()const { return temporal_tension; }
                void set_temporal_tension(const Real &x) { temporal_tension=x; temporal_tension_flag=true;}
-               
+
                int get_priority()const { return priority; }
-               void set_priority(int x) { priority=x; priority_flag=true;}     
+               void set_priority(int x) { priority=x; priority_flag=true;}
 
                #define FLAG_MACRO(x) bool get_##x##_flag()const { return x##_flag; } void set_##x##_flag(bool y) { x##_flag=y; }
                FLAG_MACRO(priority)
@@ -115,7 +115,7 @@ public:
                FLAG_MACRO(bias)
                FLAG_MACRO(temporal_tension)
                #undef FLAG_MACRO
-               
+
                void reset()
                {
                        priority_flag=false;
@@ -126,7 +126,7 @@ public:
                        bias_flag=false;
                        temporal_tension_flag=false;
                }
-               
+
                bool is_trivial()const
                {
                        return !(
@@ -140,22 +140,22 @@ public:
                        );
                }
        };
-       
+
        /*
  --    ** -- D A T A -------------------------------------------------------------
        */
-       
+
 private:
-       
+
        int priority_;
        etl::loose_handle<ValueNode> parent_;
 
        Interpolation before, after;
-       
+
        etl::rhandle<ValueNode> value_node;
 
        Time time;
-               
+
        // The following are for the INTERPOLATION_TCB type
        Real tension;
        Real continuity;
@@ -163,10 +163,10 @@ private:
 
        // The following are for the INTERPOLATION_MANUAL type
        ValueBase cpoint_before,cpoint_after;
-       
+
 
        float time_tension;
-       
+
        /*
  --    ** -- C O N S T R U C T O R S ---------------------------------------------
        */
@@ -175,7 +175,7 @@ public:
 
        Waypoint(ValueBase value, Time time);
        Waypoint(etl::handle<ValueNode> value_node, Time time);
-       
+
        Waypoint();
 
        /*
@@ -195,10 +195,10 @@ public:
        ValueBase get_value()const;
        ValueBase get_value(const Time &t)const;
        void set_value(const ValueBase &x);
-       
+
        const etl::rhandle<ValueNode> &get_value_node()const { return value_node; }
        void set_value_node(const etl::handle<ValueNode> &x);
-       
+
        const Real &get_tension()const { return tension; }
        void set_tension(const Real &x) { tension=x; }
 
@@ -216,27 +216,27 @@ public:
 
        const etl::loose_handle<ValueNode> &get_parent_value_node()const { return parent_; }
        void set_parent_value_node(const etl::loose_handle<ValueNode> &x) { parent_=x; }
-       
+
        bool is_static()const;
 
        float get_time_tension()const { return time_tension; }
        void set_time_tension(const float& x) { time_tension=x; }
        float get_temporal_tension()const { return time_tension; }
        void set_temporal_tension(const float& x) { time_tension=x; }
-       
+
        bool operator<(const Waypoint &rhs)const
        { return time<rhs.time; }
-       
+
        bool operator<(const Time &rhs)const
        { return time.is_less_than(rhs); }
        bool operator>(const Time &rhs)const
        { return time.is_more_than(rhs); }
-       
+
        bool operator==(const Time &rhs)const
        { return time.is_equal(rhs); }
        bool operator!=(const Time &rhs)const
        { return !time.is_equal(rhs); }
-       
+
        bool operator==(const UniqueID &rhs)const
        { return get_uid()==rhs.get_uid(); }
        bool operator!=(const UniqueID &rhs)const