00001 /* === S Y N F I G ========================================================= */ 00023 /* ========================================================================= */ 00024 00025 /* === S T A R T =========================================================== */ 00026 00027 #ifndef __SYNFIG_VALUENODE_POW_H 00028 #define __SYNFIG_VALUENODE_POW_H 00029 00030 /* === H E A D E R S ======================================================= */ 00031 00032 #include "valuenode.h" 00033 00034 /* === M A C R O S ========================================================= */ 00035 00036 /* === C L A S S E S & S T R U C T S ======================================= */ 00037 00038 namespace synfig { 00039 00040 class ValueNode_Pow : public LinkableValueNode 00041 { 00042 ValueNode::RHandle base_; 00043 ValueNode::RHandle power_; 00044 ValueNode::RHandle epsilon_; 00045 ValueNode::RHandle infinite_; 00046 00047 public: 00048 typedef etl::handle<ValueNode_Pow> Handle; 00049 typedef etl::handle<const ValueNode_Pow> ConstHandle; 00050 00051 ValueNode_Pow(const ValueBase &x); 00052 00053 virtual ValueBase operator()(Time t)const; 00054 00055 virtual ~ValueNode_Pow(); 00056 00057 virtual String get_name()const; 00058 virtual String get_local_name()const; 00059 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 00075 using synfig::LinkableValueNode::set_link_vfunc; 00076 static bool check_type(ValueBase::Type type); 00077 static ValueNode_Pow* create(const ValueBase &x); 00078 }; // END of class ValueNode_Pow 00079 00080 }; // END of namespace synfig 00081 00082 /* === E N D =============================================================== */ 00083 00084 #endif