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