00001 /* === S Y N F I G ========================================================= */ 00022 /* ========================================================================= */ 00023 00024 /* === S T A R T =========================================================== */ 00025 00026 #ifndef __SYNFIG_VALUENODE_BLINECALCWIDTH_H 00027 #define __SYNFIG_VALUENODE_BLINECALCWIDTH_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 class ValueNode_BLineCalcWidth : public LinkableValueNode 00040 { 00041 ValueNode::RHandle bline_; 00042 ValueNode::RHandle loop_; 00043 ValueNode::RHandle amount_; 00044 ValueNode::RHandle scale_; 00045 00046 ValueNode_BLineCalcWidth(const ValueBase::Type &x=ValueBase::TYPE_REAL); 00047 00048 public: 00049 00050 typedef etl::handle<ValueNode_BLineCalcWidth> Handle; 00051 typedef etl::handle<const ValueNode_BLineCalcWidth> ConstHandle; 00052 00053 virtual ValueBase operator()(Time t, Real amount)const; 00054 virtual ValueBase operator()(Time t)const; 00055 00056 virtual ~ValueNode_BLineCalcWidth(); 00057 00058 virtual String get_name()const; 00059 virtual String get_local_name()const; 00060 00061 virtual ValueNode::LooseHandle get_link_vfunc(int i)const; 00062 virtual int link_count()const; 00063 virtual String link_name(int i)const; 00064 00065 virtual String link_local_name(int i)const; 00066 virtual int get_link_index_from_name(const String &name)const; 00067 00068 protected: 00069 LinkableValueNode* create_new()const; 00070 virtual bool set_link_vfunc(int i,ValueNode::Handle x); 00071 00072 public: 00073 using synfig::LinkableValueNode::get_link_vfunc; 00074 using synfig::LinkableValueNode::set_link_vfunc; 00075 static bool check_type(ValueBase::Type type); 00076 static ValueNode_BLineCalcWidth* create(const ValueBase &x=ValueBase::TYPE_REAL); 00077 }; // END of class ValueNode_BLineCalcWidth 00078 00079 }; // END of namespace synfig 00080 00081 /* === E N D =============================================================== */ 00082 00083 #endif