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