valuenode_timedswap.h

Go to the documentation of this file.
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     bool set_before(const ValueNode::Handle &a);
00060     ValueNode::Handle get_before()const;
00061     bool set_after(const ValueNode::Handle &a);
00062     ValueNode::Handle get_after()const;
00063 
00064     bool set_swap_time(const ValueNode::Handle &x);
00065     ValueNode::Handle get_swap_time()const;
00066 
00067     bool set_swap_length(const ValueNode::Handle &x);
00068     ValueNode::Handle get_swap_length()const;
00069 
00070 
00071     virtual bool set_link_vfunc(int i,ValueNode::Handle x);
00072     virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
00073     virtual int link_count()const;
00074     virtual String link_local_name(int i)const;
00075     virtual String link_name(int i)const;
00076     virtual int get_link_index_from_name(const String &name)const;
00077 
00078     virtual ValueBase operator()(Time t)const;
00079 
00080     virtual String get_name()const;
00081     virtual String get_local_name()const;
00082 //  static bool check_type(const ValueBase::Type &type);
00083 
00084 protected:
00085 
00086     virtual LinkableValueNode* create_new()const;
00087 
00088 public:
00089     using synfig::LinkableValueNode::get_link_vfunc;
00090     using synfig::LinkableValueNode::set_link_vfunc;
00091     static bool check_type(ValueBase::Type type);
00092     static ValueNode_TimedSwap* create(const ValueBase &x);
00093 }; // END of class ValueNode_TimedSwap
00094 
00095 }; // END of namespace synfig
00096 
00097 /* === E N D =============================================================== */
00098 
00099 #endif

Generated on Wed Dec 12 03:11:41 2007 for synfig by  doxygen 1.5.4