valuenode_stripes.h

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

Generated on Fri Jun 23 15:20:50 2006 for synfig by  doxygen 1.4.6