00001 /* === S Y N F I G ========================================================= */ 00022 /* ========================================================================= */ 00023 00024 /* === S T A R T =========================================================== */ 00025 00026 #ifndef __SYNFIG_VALUENODE_TIMEDSWAP_H 00027 #define __SYNFIG_VALUENODE_TIMEDSWAP_H 00028 00029 /* === H E A D E R S ======================================================= */ 00030 00031 #include "valuenode.h" 00032 00033 /* === M A C R O S ========================================================= */ 00034 00035 /* === C L A S S E S & S T R U C T S ======================================= */ 00036 00037 namespace synfig { 00038 00039 struct ValueNode_TimedSwap : public LinkableValueNode 00040 { 00041 typedef etl::handle<ValueNode_TimedSwap> Handle; 00042 typedef etl::handle<const ValueNode_TimedSwap> ConstHandle; 00043 00044 private: 00045 00046 ValueNode::RHandle before; 00047 ValueNode::RHandle after; 00048 ValueNode::RHandle swap_time; 00049 ValueNode::RHandle swap_length; 00050 00051 ValueNode_TimedSwap(const ValueBase &value); 00052 00053 public: 00054 00055 // static Handle create(ValueBase::Type id); 00056 00057 virtual ~ValueNode_TimedSwap(); 00058 00059 virtual bool set_link_vfunc(int i,ValueNode::Handle x); 00060 virtual ValueNode::LooseHandle get_link_vfunc(int i)const; 00061 virtual int link_count()const; 00062 virtual String link_local_name(int i)const; 00063 virtual String link_name(int i)const; 00064 virtual int get_link_index_from_name(const String &name)const; 00065 00066 virtual ValueBase operator()(Time t)const; 00067 00068 virtual String get_name()const; 00069 virtual String get_local_name()const; 00070 // static bool check_type(const ValueBase::Type &type); 00071 00072 protected: 00073 00074 virtual LinkableValueNode* create_new()const; 00075 00076 public: 00077 using synfig::LinkableValueNode::get_link_vfunc; 00078 using synfig::LinkableValueNode::set_link_vfunc; 00079 static bool check_type(ValueBase::Type type); 00080 static ValueNode_TimedSwap* create(const ValueBase &x); 00081 }; // END of class ValueNode_TimedSwap 00082 00083 }; // END of namespace synfig 00084 00085 /* === E N D =============================================================== */ 00086 00087 #endif