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