00001 /* === S Y N F I G ========================================================= */ 00022 /* ========================================================================= */ 00023 00024 /* === S T A R T =========================================================== */ 00025 00026 #ifndef __SYNFIG_VALUENODE_ADD_H 00027 #define __SYNFIG_VALUENODE_ADD_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_Add : public LinkableValueNode 00040 { 00041 typedef etl::handle<ValueNode_Add> Handle; 00042 typedef etl::handle<const ValueNode_Add> ConstHandle; 00043 00044 protected: 00045 ValueNode_Add(const ValueBase &value); 00046 00047 private: 00048 ValueNode::RHandle ref_a; 00049 ValueNode::RHandle ref_b; 00050 ValueNode::RHandle scalar; 00051 00052 public: 00053 LinkableValueNode* create_new()const; 00054 static ValueNode_Add* create(const ValueBase &value=ValueBase()); 00055 virtual ~ValueNode_Add(); 00056 virtual ValueBase operator()(Time t)const; 00057 virtual bool set_link_vfunc(int i,ValueNode::Handle x); 00058 virtual ValueNode::LooseHandle get_link_vfunc(int i)const; 00059 virtual int link_count()const; 00060 virtual String link_local_name(int i)const; 00061 virtual String link_name(int i)const; 00062 virtual int get_link_index_from_name(const String &name)const; 00063 virtual String get_name()const; 00064 virtual String get_local_name()const; 00065 static bool check_type(ValueBase::Type type); 00066 }; // END of class ValueNode_Add 00067 00068 }; // END of namespace synfig 00069 00070 /* === E N D =============================================================== */ 00071 00072 #endif