valuenode_gradientrotate.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_GRADIENTROTATE_H
00026 #define __SYNFIG_VALUENODE_GRADIENTROTATE_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_GradientRotate : public LinkableValueNode
00039 {
00040     typedef etl::handle<ValueNode_GradientRotate> Handle;
00041     typedef etl::handle<const ValueNode_GradientRotate> ConstHandle;
00042 
00043 protected:
00044 
00045     ValueNode_GradientRotate();
00046 
00047 private:
00048 
00049     ValueNode::RHandle ref_gradient;
00050     ValueNode::RHandle ref_offset;
00051 
00052 public:
00053 
00054     virtual ~ValueNode_GradientRotate();
00055 
00056 //  static Handle create(ValueBase::Type id=ValueBase::TYPE_GRADIENT);
00057 
00059     bool set_gradient(ValueNode::Handle a);
00060 
00062     ValueNode::Handle get_gradient()const { return ref_gradient; }
00063 
00065     bool set_offset(ValueNode::Handle b);
00066 
00068     ValueNode::Handle get_offset()const { return ref_gradient; }
00069 
00070 
00071 
00072     virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
00073 
00074     virtual int link_count()const;
00075 
00076     virtual String link_local_name(int i)const;
00077     virtual String link_name(int i)const;
00078     virtual int get_link_index_from_name(const String &name)const;
00079 
00080     virtual ValueBase operator()(Time t)const;
00081 
00082     virtual String get_name()const;
00083     virtual String get_local_name()const;
00084 
00085 //  static bool check_type(const ValueBase::Type &type);
00086 protected:
00087     virtual bool set_link_vfunc(int i,ValueNode::Handle x);
00088 
00089     LinkableValueNode* create_new()const;
00090 
00091 public:
00092     using synfig::LinkableValueNode::get_link_vfunc;
00093 
00094     using synfig::LinkableValueNode::set_link_vfunc;
00095     static bool check_type(ValueBase::Type type);
00096     static ValueNode_GradientRotate* create(const ValueBase &x=ValueBase::TYPE_GRADIENT);
00097 }; // END of class ValueNode_GradientRotate
00098 
00099 }; // END of namespace synfig
00100 
00101 /* === E N D =============================================================== */
00102 
00103 #endif

Generated on Wed Aug 15 05:00:23 2007 for synfig by  doxygen 1.5.3