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